* defs.h (extract_signed_integer, extract_unsigned_integer,
[deliverable/binutils-gdb.git] / gdb / amd64-linux-tdep.c
index bdc93f5ebd3ab3fa06edd749ecc458b56de87fab..92f52655d57c9cb7bf443cde0d224656057b010a 100644 (file)
@@ -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
This page took 0.02576 seconds and 4 git commands to generate.