mirror of
https://github.com/apache/nuttx.git
synced 2025-01-13 07:28:38 +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:
parent
7d2d38f899
commit
3ad53656b9
1 changed files with 3 additions and 1 deletions
|
@ -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
|
||||
|
|
Loading…
Reference in a new issue