mirror of
https://github.com/apache/nuttx.git
synced 2026-05-23 14:58:13 +08:00
tools/gdb: make it compatible with older gdb
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
+8
-3
@@ -123,9 +123,14 @@ def get_symbol_value(name, locspec="nx_start", cacheable=True):
|
||||
)
|
||||
g_symbol_cache = {}
|
||||
|
||||
suppressed = "is on" in gdb.execute(
|
||||
"show suppress-cli-notifications", to_string=True
|
||||
)
|
||||
try:
|
||||
suppressed = "is on" in gdb.execute(
|
||||
"show suppress-cli-notifications", to_string=True
|
||||
)
|
||||
except gdb.error:
|
||||
# Treat as suppressed if the command is not available
|
||||
suppressed = True
|
||||
|
||||
if not suppressed:
|
||||
# Disable notifications
|
||||
gdb.execute("set suppress-cli-notifications on")
|
||||
|
||||
Reference in New Issue
Block a user