PING: PATCH: PR backtrace/14646: [x32] backtrace doesn't work
Mon Oct 8 19:48:00 GMT 2012
> Date: Thu, 4 Oct 2012 06:57:22 -0700
> From: "H.J. Lu" <email@example.com>
> On Wed, Oct 3, 2012 at 11:57 PM, Mark Kettenis <firstname.lastname@example.org> 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
That probably means we need to set gdbarch_pc_regnum (and
gdbarch_sp_regnum) to -1 for x32.
More information about the Gdb-patches