projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
change delegation for to_read_description
[deliverable/binutils-gdb.git]
/
gdb
/
i386bsd-tdep.c
diff --git
a/gdb/i386bsd-tdep.c
b/gdb/i386bsd-tdep.c
index 992cb0598d8cc534aa4c716ca03de56e5f1190ba..fe40aae2d45d076a964b1571ad9d44bfcfb3c6a5 100644
(file)
--- a/
gdb/i386bsd-tdep.c
+++ b/
gdb/i386bsd-tdep.c
@@
-1,6
+1,6
@@
/* Target-dependent code for i386 BSD's.
/* Target-dependent code for i386 BSD's.
- Copyright (C) 2001
, 2002, 2003, 2004, 2007
Free Software Foundation, Inc.
+ Copyright (C) 2001
-2014
Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-24,25
+24,27
@@
#include "regcache.h"
#include "osabi.h"
#include "regcache.h"
#include "osabi.h"
-#include
"gdb_string.h"
+#include
<string.h>
#include "i386-tdep.h"
/* Support for signal handlers. */
#include "i386-tdep.h"
/* Support for signal handlers. */
-/* Assuming
NEXT_FRAME is for a frame following a BSD sigtramp
-
routine, return the
address of the associated sigcontext structure. */
+/* Assuming
THIS_FRAME is for a BSD sigtramp routine, return the
+ address of the associated sigcontext structure. */
static CORE_ADDR
static CORE_ADDR
-i386bsd_sigcontext_addr (struct frame_info *
next
_frame)
+i386bsd_sigcontext_addr (struct frame_info *
this
_frame)
{
{
+ struct gdbarch *gdbarch = get_frame_arch (this_frame);
+ enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
gdb_byte buf[4];
CORE_ADDR sp;
gdb_byte buf[4];
CORE_ADDR sp;
-
frame_unwind_register (next
_frame, I386_ESP_REGNUM, buf);
- sp = extract_unsigned_integer (buf, 4);
+
get_frame_register (this
_frame, I386_ESP_REGNUM, buf);
+ sp = extract_unsigned_integer (buf, 4
, byte_order
);
- return read_memory_unsigned_integer (sp + 8, 4);
+ return read_memory_unsigned_integer (sp + 8, 4
, byte_order
);
}
\f
}
\f
This page took
0.028566 seconds
and
4
git commands to generate.