This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
RE: [BUG] Quit and "(running)" problem
I can confirm that your patch fixed the simple
test case that I submitted in PR9747.
As such I of course
Reading the patch, I was wondering about the
utility of the old_chain cleanup in fetch_inferior_event
function. But this is probably due to my
lack of comprehension of the cleanup chain mechanisms.
Is it really possible to reach
do_cleanups (old_chain)
with something else that old_chain
as the top item on the cleanup list?
I thought that all the cleanups where stored
as local variables, so that all cleanups
that were set in functions called while running any
code called from within the fetch_inferior_event
would be invalid data anyhow at that point,
as the stack might have been overwritten by calls to other functions.
Pierre Muller
Pascal language support maintainer for GDB