Skip to content
Snippets Groups Projects
Commit 91db419c authored by wadesong's avatar wadesong
Browse files

lrdp-v2: Gdbmi interface clean up

When LRDP-v2 starts to parse RAM dumps, it will initialize pipes
to gdb instance, but on exit, the same pipes are not closed due
to __del__ is not invoked in ramdump.py. This will cause the
python environment raising the following exception, which will
not be handled by LRDP-v2 after it's unloaded:

close failed in file object destructor:
sys.excepthook is missing
lost sys.stderr

Add explicit gdbmi closure when RamDump instance is not used any
more, to avoid the unhandled exception.

Change-Id: I7cebd1418440ba56f9d7c4374286a5b088d948dc
parent 8e99c255
No related branches found
No related tags found
No related merge requests found
...@@ -418,3 +418,5 @@ if __name__ == '__main__': ...@@ -418,3 +418,5 @@ if __name__ == '__main__':
if options.t32launcher or options.everything or options.minidump: if options.t32launcher or options.everything or options.minidump:
dump.create_t32_launcher() dump.create_t32_launcher()
dump.gdbmi.close()
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment