mirror of
https://github.com/apache/nuttx.git
synced 2026-08-11 07:25:13 +00:00
tools/gdb: make it compatible with older gdb
Signed-off-by: xuxingliang <xuxingliang@xiaomi.com>
This commit is contained in:
parent
f53869f86f
commit
0f1e2cc7dc
1 changed files with 8 additions and 3 deletions
|
|
@ -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")
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue