projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
write_pieced_value: Notify memory_changed observers
[deliverable/binutils-gdb.git]
/
gdb
/
i386-nto-tdep.c
diff --git
a/gdb/i386-nto-tdep.c
b/gdb/i386-nto-tdep.c
index 06fc555aaa397909bd505dd05c1a55dd22466544..3fe715f4ca00cc7dcd36075cfaf3d5e3db945ca4 100644
(file)
--- a/
gdb/i386-nto-tdep.c
+++ b/
gdb/i386-nto-tdep.c
@@
-1,7
+1,6
@@
/* Target-dependent code for QNX Neutrino x86.
/* Target-dependent code for QNX Neutrino x86.
- Copyright (C) 2003, 2004, 2007, 2008, 2009, 2010
- Free Software Foundation, Inc.
+ Copyright (C) 2003-2017 Free Software Foundation, Inc.
Contributed by QNX Software Systems Ltd.
Contributed by QNX Software Systems Ltd.
@@
-26,9
+25,6
@@
#include "regcache.h"
#include "target.h"
#include "regcache.h"
#include "target.h"
-#include "gdb_assert.h"
-#include "gdb_string.h"
-
#include "i386-tdep.h"
#include "i387-tdep.h"
#include "nto-tdep.h"
#include "i386-tdep.h"
#include "i387-tdep.h"
#include "nto-tdep.h"
@@
-83,13
+79,9
@@
i386nto_supply_gregset (struct regcache *regcache, char *gpregs)
struct gdbarch *gdbarch = get_regcache_arch (regcache);
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
struct gdbarch *gdbarch = get_regcache_arch (regcache);
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
- if(tdep->gregset == NULL)
- tdep->gregset = regset_alloc (gdbarch, i386_supply_gregset,
- i386_collect_gregset);
-
gdb_assert (tdep->gregset_reg_offset == i386nto_gregset_reg_offset);
gdb_assert (tdep->gregset_reg_offset == i386nto_gregset_reg_offset);
-
tdep->gregset->supply_regset (tdep->
gregset, regcache, -1,
-
gpregs, NUM_GPREGS * 4);
+
i386_gregset.supply_regset (&i386_
gregset, regcache, -1,
+ gpregs, NUM_GPREGS * 4);
}
static void
}
static void
@@
-122,7
+114,7
@@
i386nto_regset_id (int regno)
return NTO_REG_END;
else if (regno < I386_NUM_GREGS)
return NTO_REG_GENERAL;
return NTO_REG_END;
else if (regno < I386_NUM_GREGS)
return NTO_REG_GENERAL;
- else if (regno < I386_NUM_GREGS + I38
6_NUM_F
REGS)
+ else if (regno < I386_NUM_GREGS + I38
7_NUM_
REGS)
return NTO_REG_FLOAT;
else if (regno < I386_SSE_NUM_REGS)
return NTO_REG_FLOAT; /* We store xmm registers in fxsave_area. */
return NTO_REG_FLOAT;
else if (regno < I386_SSE_NUM_REGS)
return NTO_REG_FLOAT; /* We store xmm registers in fxsave_area. */
@@
-135,7
+127,6
@@
i386nto_register_area (struct gdbarch *gdbarch,
int regno, int regset, unsigned *off)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
int regno, int regset, unsigned *off)
{
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
- int len;
*off = 0;
if (regset == NTO_REG_GENERAL)
*off = 0;
if (regset == NTO_REG_GENERAL)
@@
-282,7
+273,7
@@
static int
i386nto_sigtramp_p (struct frame_info *this_frame)
{
CORE_ADDR pc = get_frame_pc (this_frame);
i386nto_sigtramp_p (struct frame_info *this_frame)
{
CORE_ADDR pc = get_frame_pc (this_frame);
- char *name;
+ c
onst c
har *name;
find_pc_partial_function (pc, &name, NULL, NULL);
return name && strcmp ("__signalstub", name) == 0;
find_pc_partial_function (pc, &name, NULL, NULL);
return name && strcmp ("__signalstub", name) == 0;
@@
-296,7
+287,7
@@
i386nto_sigcontext_addr (struct frame_info *this_frame)
{
struct gdbarch *gdbarch = get_frame_arch (this_frame);
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
{
struct gdbarch *gdbarch = get_frame_arch (this_frame);
enum bfd_endian byte_order = gdbarch_byte_order (gdbarch);
-
char
buf[4];
+
gdb_byte
buf[4];
CORE_ADDR ptrctx;
/* We store __ucontext_t addr in EDI register. */
CORE_ADDR ptrctx;
/* We store __ucontext_t addr in EDI register. */
@@
-371,6
+362,9
@@
i386nto_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch)
= nto_in_dynsym_resolve_code;
}
set_solib_ops (gdbarch, &nto_svr4_so_ops);
= nto_in_dynsym_resolve_code;
}
set_solib_ops (gdbarch, &nto_svr4_so_ops);
+
+ set_gdbarch_wchar_bit (gdbarch, 32);
+ set_gdbarch_wchar_signed (gdbarch, 0);
}
/* Provide a prototype to silence -Wmissing-prototypes. */
}
/* Provide a prototype to silence -Wmissing-prototypes. */
This page took
0.024815 seconds
and
4
git commands to generate.