This is an automated email from the ASF dual-hosted git repository. xiaoxiang pushed a commit to branch master in repository https://gitbox.apache.org/repos/asf/nuttx.git
commit 6119a5ea6376a58165bee1b1fc8cb5189510c306 Author: xuxingliang <[email protected]> AuthorDate: Thu Nov 21 16:38:16 2024 +0800 gdb: print trace back when some modules failed to load Signed-off-by: xuxingliang <[email protected]> --- tools/gdb/nuttxgdb/__init__.py | 2 ++ 1 file changed, 2 insertions(+) diff --git a/tools/gdb/nuttxgdb/__init__.py b/tools/gdb/nuttxgdb/__init__.py index 339af63dd9..59a9850d27 100644 --- a/tools/gdb/nuttxgdb/__init__.py +++ b/tools/gdb/nuttxgdb/__init__.py @@ -21,6 +21,7 @@ ############################################################################ import importlib +import traceback from os import path import gdb @@ -53,6 +54,7 @@ def register_commands(event): module = importlib.import_module(f"{__package__}.{m}") except Exception as e: gdb.write(f"\x1b[31;1mIgnore module: {m}, error: {e}\n\x1b[m") + traceback.print_exc() return for c in module.__dict__.values():
