[PATCH] Fix heap-use-after-free because all_objfiles_removed triggers tui_display_main

Tom Tromey tom@tromey.com
Mon May 6 19:59:03 GMT 2024


>>>>> "Hannes" == Hannes Domani <ssbssa@yahoo.de> writes:

Hannes> So the fix is to simply remove the tui_all_objfiles_removed observer.

Hannes> The clearing of the source window (if symbols were removed by e.g. 'file'
Hannes> without arguments) still works, since this is done by the
Hannes> tui_before_prompt observer.

Hannes> Bug: https://sourceware.org/bugzilla/show_bug.cgi?id=31697

Thank you.  This is ok.
Approved-By: Tom Tromey <tom@tromey.com>

Tom


More information about the Gdb-patches mailing list