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:
xuxingliang 2024-08-12 10:31:09 +08:00 committed by Xiang Xiao
parent ad1be85be7
commit 715c3ab079

View file

@ -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")