This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH] Convert i386 target to generic dummy frames
- From: Mark Kettenis <kettenis at chello dot nl>
- To: eliz at is dot elta dot co dot il
- Cc: gdb-patches at sources dot redhat dot com
- Date: Thu, 4 Jul 2002 13:24:18 +0200 (CEST)
- Subject: Re: [PATCH] Convert i386 target to generic dummy frames
- References: <Pine.SUN.3.91.1020704130733.1495A-100000@is>
Date: Thu, 4 Jul 2002 13:08:06 +0300 (IDT)
From: Eli Zaretskii <eliz@is.elta.co.il>
On Thu, 4 Jul 2002, Mark Kettenis wrote:
> This patch converts the i386 target to use generic dummy frames.
> Since this is supposed to be a prerequisit for using the DWARF2 frame
> unwinding stuff, I'll try to figure out how I can use that stuff on
> the i386.
Does this change affect the non-DWARF2 targets in any way?
It shouldn't. The generic dummy frame change influences the way
functions are called from within GDB. We used to execute a bit of
code on the stack, but now GDB directly calls the function and makes
it return to the original entry point of your program where it places
a breakpoint. I noticed some fall out with respect to signal
handlers on FreeBSD and Linux but that should be fixed now. However
there is a change in the way GDB handles these function calls, so
there might be some other bugs that'll surface now.
Once I start messing with the DWARF2 frame stuff, I'll make sure that
when the necessary information isn't present, we fall back on the old
code. Perhaps I'll even add a command to let the user choose.
Mark