mirror of
https://github.com/apache/nuttx.git
synced 2026-05-27 03:05:40 +08:00
tools/gdb: Fix gdbinit to unload all nuttxgdb related modules
There are many modules like nuttxgdb.* that we need to unload Signed-off-by: Zhe Weng <wengzhe@xiaomi.com>
This commit is contained in:
@@ -30,6 +30,8 @@ if __name__ == "__main__":
|
||||
sys.path.insert(0, here)
|
||||
|
||||
if "nuttxgdb" in sys.modules:
|
||||
del sys.modules["nuttxgdb"]
|
||||
for key in list(sys.modules.keys()):
|
||||
if key.startswith("nuttxgdb"):
|
||||
del sys.modules[key]
|
||||
|
||||
import nuttxgdb # noqa: F401
|
||||
|
||||
Reference in New Issue
Block a user