This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: Handle fork exit more gracefully in linux-fork.c


Daniel Jacobowitz wrote:
A cleanup I made while working on my next patch.  I was debugging
some checkpoint.exp failures by hand, and the most obvious thing for
me to do was to create a checkpoint, let the current one exit, and
then continue the previous checkpoint - but as soon as I did this
it crashed with corrupted register state.

We weren't restoring the saved registers in linux_fork_mourn_inferior.
And we were somehow clobbering the previous registers.  Moving
some bits from the explicit context-switch code into the restore-a-fork
routine fixed all that.

Answered my own questions. Yes, this looks fine.



By the way, when you include your .sig *before* the patch, thunderbird won't include the patch in the reply. ;-(





Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]