projects
/
deliverable
/
binutils-gdb.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
Fix GDBserver build failure when $development is false
[deliverable/binutils-gdb.git]
/
gdb
/
i386-nto-tdep.c
diff --git
a/gdb/i386-nto-tdep.c
b/gdb/i386-nto-tdep.c
index c8fcc5fb9fda924bf4dddd472d0a400d1e699be4..83c05a29cd1e29dc89e09e7d9fb03b0c8addfe50 100644
(file)
--- a/
gdb/i386-nto-tdep.c
+++ b/
gdb/i386-nto-tdep.c
@@
-1,6
+1,6
@@
/* Target-dependent code for QNX Neutrino x86.
/* Target-dependent code for QNX Neutrino x86.
- Copyright (C) 2003-201
3
Free Software Foundation, Inc.
+ Copyright (C) 2003-201
8
Free Software Foundation, Inc.
Contributed by QNX Software Systems Ltd.
Contributed by QNX Software Systems Ltd.
@@
-25,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"
@@
-79,16
+76,12
@@
nto_reg_offset (int regnum)
static void
i386nto_supply_gregset (struct regcache *regcache, char *gpregs)
{
static void
i386nto_supply_gregset (struct regcache *regcache, char *gpregs)
{
- struct gdbarch *gdbarch =
get_regcache_arch (regcache
);
+ struct gdbarch *gdbarch =
regcache->arch (
);
struct gdbarch_tdep *tdep = gdbarch_tdep (gdbarch);
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
@@
-294,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. */
@@
-369,10
+362,10
@@
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);
-}
-/* Provide a prototype to silence -Wmissing-prototypes. */
-extern initialize_file_ftype _initialize_i386nto_tdep;
+ set_gdbarch_wchar_bit (gdbarch, 32);
+ set_gdbarch_wchar_signed (gdbarch, 0);
+}
void
_initialize_i386nto_tdep (void)
void
_initialize_i386nto_tdep (void)
This page took
0.025429 seconds
and
4
git commands to generate.