projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Probe catch syscall support
[deliverable/binutils-gdb.git]
/
gdb
/
i386nbsd-tdep.c
diff --git
a/gdb/i386nbsd-tdep.c
b/gdb/i386nbsd-tdep.c
index 75fc64c974dca3088e9565d0c63c7558d4d90f86..f73e5c1027452e561ac43d9de5bfa16f5c5fe059 100644
(file)
--- a/
gdb/i386nbsd-tdep.c
+++ b/
gdb/i386nbsd-tdep.c
@@
-1,7
+1,6
@@
/* Target-dependent code for NetBSD/i386.
/* Target-dependent code for NetBSD/i386.
- Copyright (C) 1988, 1989, 1991, 1992, 1994, 1996, 2000, 2001, 2002, 2003,
- 2004, 2007, 2008 Free Software Foundation, Inc.
+ Copyright (C) 1988-2016 Free Software Foundation, Inc.
This file is part of GDB.
This file is part of GDB.
@@
-29,9
+28,6
@@
#include "trad-frame.h"
#include "tramp-frame.h"
#include "trad-frame.h"
#include "tramp-frame.h"
-#include "gdb_assert.h"
-#include "gdb_string.h"
-
#include "i386-tdep.h"
#include "i387-tdep.h"
#include "nbsd-tdep.h"
#include "i386-tdep.h"
#include "i387-tdep.h"
#include "nbsd-tdep.h"
@@
-233,7
+229,7
@@
i386nbsd_sigtramp_cache_init (const struct tramp_frame *self,
CORE_ADDR func)
{
struct gdbarch *gdbarch = get_frame_arch (this_frame);
CORE_ADDR func)
{
struct gdbarch *gdbarch = get_frame_arch (this_frame);
-
struct gdbarch_tdep *tdep = gdbarch_tdep
(gdbarch);
+
enum bfd_endian byte_order = gdbarch_byte_order
(gdbarch);
CORE_ADDR sp = get_frame_register_unsigned (this_frame, I386_ESP_REGNUM);
CORE_ADDR base;
int *reg_offset;
CORE_ADDR sp = get_frame_register_unsigned (this_frame, I386_ESP_REGNUM);
CORE_ADDR base;
int *reg_offset;
@@
-245,16
+241,16
@@
i386nbsd_sigtramp_cache_init (const struct tramp_frame *self,
reg_offset = i386nbsd_sc_reg_offset;
num_regs = ARRAY_SIZE (i386nbsd_sc_reg_offset);
reg_offset = i386nbsd_sc_reg_offset;
num_regs = ARRAY_SIZE (i386nbsd_sc_reg_offset);
- /* Read in the sigcontext address */
- base = read_memory_unsigned_integer (sp + 8, 4);
+ /* Read in the sigcontext address
.
*/
+ base = read_memory_unsigned_integer (sp + 8, 4
, byte_order
);
}
else
{
reg_offset = i386nbsd_mc_reg_offset;
num_regs = ARRAY_SIZE (i386nbsd_mc_reg_offset);
}
else
{
reg_offset = i386nbsd_mc_reg_offset;
num_regs = ARRAY_SIZE (i386nbsd_mc_reg_offset);
- /* Read in the ucontext address */
- base = read_memory_unsigned_integer (sp + 8, 4);
+ /* Read in the ucontext address
.
*/
+ base = read_memory_unsigned_integer (sp + 8, 4
, byte_order
);
/* offsetof(ucontext_t, uc_mcontext) == 36 */
base += 36;
}
/* offsetof(ucontext_t, uc_mcontext) == 36 */
base += 36;
}
@@
-284,7
+280,7
@@
i386nbsd_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
/* NetBSD uses -freg-struct-return by default. */
tdep->struct_return = reg_struct_return;
/* NetBSD uses -freg-struct-return by default. */
tdep->struct_return = reg_struct_return;
- /* NetBSD uses tramp_frame sniffers for signal trampolines. */
+ /* NetBSD uses tramp_frame sniffers for signal trampolines.
*/
tdep->sigcontext_addr= 0;
tdep->sigtramp_start = 0;
tdep->sigtramp_end = 0;
tdep->sigcontext_addr= 0;
tdep->sigtramp_start = 0;
tdep->sigtramp_end = 0;
@@
-320,6
+316,9
@@
i386nbsdelf_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
tdep->struct_return = pcc_struct_return;
}
tdep->struct_return = pcc_struct_return;
}
+/* Provide a prototype to silence -Wmissing-prototypes. */
+extern initialize_file_ftype _initialize_i386nbsd_tdep;
+
void
_initialize_i386nbsd_tdep (void)
{
void
_initialize_i386nbsd_tdep (void)
{
This page took
0.026872 seconds
and
4
git commands to generate.