diff options
author | Mark Kettenis <kettenis@gnu.org> | 2004-12-24 14:45:32 +0000 |
---|---|---|
committer | Mark Kettenis <kettenis@gnu.org> | 2004-12-24 14:45:32 +0000 |
commit | 3d171c85e745078ae90f558ff156122855f458c1 (patch) | |
tree | 5eab1354183438893c244c7c49103c6ad6122b59 /gdb/nto-tdep.c | |
parent | b4c8d1433fcaf4c36d9e506e70ed0ac11b705ca3 (diff) | |
download | gdb-3d171c85e745078ae90f558ff156122855f458c1.zip gdb-3d171c85e745078ae90f558ff156122855f458c1.tar.gz gdb-3d171c85e745078ae90f558ff156122855f458c1.tar.bz2 |
* i386-tdep.h (i386_collect_gregset): New prototype.
* i386-nto-tdep.c (i386_nto_target): Move variable. Add comment.
(i386nto_gregset_reg_offset): Rename frame regmap.
(nto_reg_offset): Tweak comment. Use ARRAY_SIZE.
(i386nto_supply_gregset): Implement using register set support.
(i386nto_supply_regset): Remove redundant comment.
(i386nto_init_abi): Initialize TDEP->gregset_reg_offset,
TDEP->gregset_num_regs and TDEP->sizeof_gregset.
* nto-tdep.c (fetch_core_registers): Remove function.
(regset_core_fns): Remove structure.
(_initialize_nto_tdep): Don't call deprecated_add_core_fns.
Diffstat (limited to 'gdb/nto-tdep.c')
-rw-r--r-- | gdb/nto-tdep.c | 37 |
1 files changed, 2 insertions, 35 deletions
diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c index b882a22..7cc1218 100644 --- a/gdb/nto-tdep.c +++ b/gdb/nto-tdep.c @@ -66,7 +66,7 @@ nto_target (void) } void -nto_set_target(struct nto_target_ops *targ) +nto_set_target (struct nto_target_ops *targ) { nto_regset_id = targ->regset_id; nto_supply_gregset = targ->supply_gregset; @@ -345,41 +345,10 @@ enum gdb_osabi nto_elf_osabi_sniffer (bfd *abfd) { if (nto_is_nto_target) - return nto_is_nto_target (abfd); + return nto_is_nto_target (abfd); return GDB_OSABI_UNKNOWN; } -static void -fetch_core_registers (char *core_reg_sect, unsigned core_reg_size, - int which, CORE_ADDR reg_addr) -{ - nto_regset_t regset; - -/* See corelow.c:get_core_registers for values of WHICH. */ - if (which == 0) - { - memcpy ((char *) ®set, core_reg_sect, - min (core_reg_size, sizeof (regset))); - nto_supply_gregset ((char *) ®set); - } - else if (which == 2) - { - memcpy ((char *) ®set, core_reg_sect, - min (core_reg_size, sizeof (regset))); - nto_supply_fpregset ((char *) ®set); - } -} - -/* Register that we are able to handle ELF file formats using standard - procfs "regset" structures. */ -static struct core_fns regset_core_fns = { - bfd_target_elf_flavour, /* core_flavour */ - default_check_format, /* check_format */ - default_core_sniffer, /* core_sniffer */ - fetch_core_registers, /* core_read_registers */ - NULL /* next */ -}; - void nto_initialize_signals (void) { @@ -414,6 +383,4 @@ When non-zero, nto specific debug info is\n\ displayed. Different information is displayed\n\ for different positive values.", "\ QNX NTO internal debugging is %s.", NULL, NULL, &setdebuglist, &showdebuglist); - /* Register core file support. */ - deprecated_add_core_fns (®set_core_fns); } |