This is the mail archive of the
mailing list for the GDB project.
Re: [RFA] fix popping of dummy frame if inferior gets signal with unwindonsignal
On Mon, Nov 17, 2008 at 02:37:10PM -0800, Doug Evans wrote:
> On Mon, Nov 17, 2008 at 12:42 PM, Ulrich Weigand <firstname.lastname@example.org> wrote:
> > Daniel Jacobowitz wrote:
> >> On Mon, Nov 17, 2008 at 08:50:13PM +0100, Ulrich Weigand wrote:
> >> > I'm not sure what the point is of having two copies of the regcache
> >> > preserved across the full extent of the inferior call ...
> >> Maybe in case we get to somewhere we can not backtrace from?
> > OK, good point. The inf_status will always work ...
> I don't understand why two copies are needed.
> Can either of you elaborate?
Hypothetically, if you call a function which completely trashes the
registers but not the previous stack, we might not be able to find the
dummy frame to pop. So having it saved somewhere else seems
reasonable. I don't know how to structure that in a useful
least-surprising way though...