mirror of
https://github.com/apache/nuttx.git
synced 2026-05-29 20:56:47 +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)
|
sys.path.insert(0, here)
|
||||||
|
|
||||||
if "nuttxgdb" in sys.modules:
|
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
|
import nuttxgdb # noqa: F401
|
||||||
|
|||||||
Reference in New Issue
Block a user