X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Famd64-linux-tdep.c;h=92f52655d57c9cb7bf443cde0d224656057b010a;hb=e17a4113357102b55cfa5b80557d590a46a43300;hp=badc0b43e7739ab897e76a42d0bb0085d33af12a;hpb=4aa995e123f47a4aca553ae4ed4fdebe2d00e316;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c index badc0b43e7..92f52655d5 100644 --- a/gdb/amd64-linux-tdep.c +++ b/gdb/amd64-linux-tdep.c @@ -153,11 +153,13 @@ amd64_linux_sigtramp_p (struct frame_info *this_frame) static CORE_ADDR amd64_linux_sigcontext_addr (struct frame_info *this_frame) { + struct gdbarch *gdbarch = get_frame_arch (this_frame); + enum bfd_endian byte_order = gdbarch_byte_order (gdbarch); CORE_ADDR sp; gdb_byte buf[8]; get_frame_register (this_frame, AMD64_RSP_REGNUM, buf); - sp = extract_unsigned_integer (buf, 8); + sp = extract_unsigned_integer (buf, 8, byte_order); /* The sigcontext structure is part of the user context. A pointer to the user context is passed as the third argument to the signal @@ -218,7 +220,7 @@ static struct type * amd64_linux_register_type (struct gdbarch *gdbarch, int reg) { if (reg == AMD64_LINUX_ORIG_RAX_REGNUM) - return builtin_type_int64; + return builtin_type (gdbarch)->builtin_int64; return amd64_register_type (gdbarch, reg); }