This is the mail archive of the gdb-patches@sources.redhat.com 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: [PATCH] Convert i386 target to generic dummy frames


   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


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