This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA] dummy frame handling cleanup, plus inferior fun call signal handling improvement
- From: Pedro Alves <pedro at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Cc: Doug Evans <dje at google dot com>
- Date: Mon, 1 Dec 2008 21:21:59 +0000
- Subject: Re: [RFA] dummy frame handling cleanup, plus inferior fun call signal handling improvement
- References: <20081118125838.0613C412301@localhost> <e394668d0811200007o6473946elcd0bb2ff4a514e28@mail.gmail.com> <e394668d0812011251t3a062d78m1bcdb8340e93fd45@mail.gmail.com>
Hi Doug,
I'd like to bring a current GDB deficiency to your attention, in
case it affects anything related to this patch.
If GDB stops due to a signal instead of hitting the dummy frame
breakpoint, and you have set GDB to restore the state
automatically with "set unwindonsignal on", and the thread
that reported the signal (say a SIGSEGV) was *not* the same that was
doing the infcall, GDB will currently restore the old context to the
wrong thread (seen by inspection, having really tried it).
Not having studied the patch yet, I'm just wondering if your changes
would make it easier or harder to fix this, or if you could be
extending the problem by possibly restoring things in the wrong
thread as well.
--
Pedro Alves