tools/gdb: fix notification suppress not working
"on" string is always in the word 'notification'. Should use "is on" instead. Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
ad1be85be7
commit
715c3ab079
1 changed files with 3 additions and 1 deletions
|
@ -166,7 +166,9 @@ def get_symbol_value(name, locspec="nx_start", cacheable=True):
|
|||
)
|
||||
g_symbol_cache = {}
|
||||
|
||||
suppressed = "on" in gdb.execute("show suppress-cli-notifications", to_string=True)
|
||||
suppressed = "is on" in gdb.execute(
|
||||
"show suppress-cli-notifications", to_string=True
|
||||
)
|
||||
if not suppressed:
|
||||
# Disable notifications
|
||||
gdb.execute("set suppress-cli-notifications on")
|
||||
|
|
Loading…
Reference in a new issue