PING: PATCH: PR backtrace/14646: [x32] backtrace doesn't work

Mark Kettenis mark.kettenis@xs4all.nl
Mon Oct 8 19:48:00 GMT 2012


> Date: Thu, 4 Oct 2012 06:57:22 -0700
> From: "H.J. Lu" <hjl.tools@gmail.com>
> 
> On Wed, Oct 3, 2012 at 11:57 PM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
> >
> > Perhaps the user-regs.c mechanism can be used to establish eip -> pc
> > and esp -> sp mappings?
> 
> It doesn't help as long as gdbarch_pc_regnum/gdbarch_sp_regnum
> are used for both frame pc/sp value and unwind pc/sp value.  For x32,
> we want eip/esp for frame pc/sp value and rip/rsp for unwind pc/sp
> value.

That probably means we need to set gdbarch_pc_regnum (and
gdbarch_sp_regnum) to -1 for x32.



More information about the Gdb-patches mailing list