From 715c3ab0792dc40d4ff91cacceddcc5a7576bc07 Mon Sep 17 00:00:00 2001 From: xuxingliang Date: Mon, 12 Aug 2024 10:31:09 +0800 Subject: [PATCH] tools/gdb: fix notification suppress not working "on" string is always in the word 'notification'. Should use "is on" instead. Signed-off-by: xuxingliang --- tools/gdb/utils.py | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/tools/gdb/utils.py b/tools/gdb/utils.py index 22599d1f2b1..06b9c279994 100644 --- a/tools/gdb/utils.py +++ b/tools/gdb/utils.py @@ -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")