diff options
author | Aleksandar Ristovski <aristovski@qnx.com> | 2009-06-11 19:29:00 +0000 |
---|---|---|
committer | Aleksandar Ristovski <aristovski@qnx.com> | 2009-06-11 19:29:00 +0000 |
commit | 80b1849c68dcde61c3e2bf5e6a0cdb61336baea4 (patch) | |
tree | 273707760d14ee4ea371eaaaada97b0f707d3f31 /gdb/i386-nto-tdep.c | |
parent | 80c99de1bcdd04fdfd44d331de3746d4484f839a (diff) | |
download | gdb-80b1849c68dcde61c3e2bf5e6a0cdb61336baea4.zip gdb-80b1849c68dcde61c3e2bf5e6a0cdb61336baea4.tar.gz gdb-80b1849c68dcde61c3e2bf5e6a0cdb61336baea4.tar.bz2 |
* i386-nto-tdep.c (i386_nto_target): Remove definition.
(init_i386nto_ops): Use macros to set fields to global
current_nto_target directly.
(i386nto_init_abi): Remove unused nto_set_target call.
* nto-tdep.h (nto_set_target): Remove unused declaration.
* nto-tdep.c (nto_set_target): Remove unused function.
Diffstat (limited to 'gdb/i386-nto-tdep.c')
-rw-r--r-- | gdb/i386-nto-tdep.c | 21 |
1 files changed, 8 insertions, 13 deletions
diff --git a/gdb/i386-nto-tdep.c b/gdb/i386-nto-tdep.c index 248597f..cbe12e3 100644 --- a/gdb/i386-nto-tdep.c +++ b/gdb/i386-nto-tdep.c @@ -34,9 +34,6 @@ #include "solib.h" #include "solib-svr4.h" -/* Target vector for QNX NTO x86. */ -static struct nto_target_ops i386_nto_target; - #ifndef X86_CPU_FXSR #define X86_CPU_FXSR (1L << 12) #endif @@ -310,14 +307,14 @@ i386nto_sigcontext_addr (struct frame_info *this_frame) static void init_i386nto_ops (void) { - i386_nto_target.regset_id = i386nto_regset_id; - i386_nto_target.supply_gregset = i386nto_supply_gregset; - i386_nto_target.supply_fpregset = i386nto_supply_fpregset; - i386_nto_target.supply_altregset = nto_dummy_supply_regset; - i386_nto_target.supply_regset = i386nto_supply_regset; - i386_nto_target.register_area = i386nto_register_area; - i386_nto_target.regset_fill = i386nto_regset_fill; - i386_nto_target.fetch_link_map_offsets = + nto_regset_id = i386nto_regset_id; + nto_supply_gregset = i386nto_supply_gregset; + nto_supply_fpregset = i386nto_supply_fpregset; + nto_supply_altregset = nto_dummy_supply_regset; + nto_supply_regset = i386nto_supply_regset; + nto_register_area = i386nto_register_area; + nto_regset_fill = i386nto_regset_fill; + nto_fetch_link_map_offsets = svr4_ilp32_fetch_link_map_offsets; } @@ -371,8 +368,6 @@ i386nto_init_abi (struct gdbarch_info info, struct gdbarch *gdbarch) = nto_in_dynsym_resolve_code; } set_solib_ops (gdbarch, &nto_svr4_so_ops); - - nto_set_target (&i386_nto_target); } /* Provide a prototype to silence -Wmissing-prototypes. */ |