* gdbcore.h: Update copyright.
(deprecated_add_core_fns): Rename add_core_fns.
* win32-nat.c (_initialize_core_win32): Update.
* sun3-nat.c (_initialize_core_sun3): Update.
* shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
* rs6000-nat.c (_initialize_core_rs6000): Update.
* ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
* nto-tdep.c (_initialize_nto_tdep): Update.
* ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
* mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
* mips-nat.c (_initialize_core_mips): Update.
* mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
* m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
* m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
* lynx-nat.c (_initialize_core_lynx): Update.
* irix5-nat.c (_initialize_core_irix5): Update.
* i386-interix-nat.c (_initialize_core_interix): Update.
* cris-tdep.c (_initialize_cris_tdep): Update.
* corelow.c (deprecated_add_core_fns): Update.
* core-regset.c (_initialize_core_regset): Update.
* core-aout.c (_initialize_core_aout): Update.
* armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
* alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
* alpha-nat.c (_initialize_core_alpha): Update.
+2004-04-21 Andrew Cagney <cagney@redhat.com>
+
+ * gdbcore.h: Update copyright.
+ (deprecated_add_core_fns): Rename add_core_fns.
+ * win32-nat.c (_initialize_core_win32): Update.
+ * sun3-nat.c (_initialize_core_sun3): Update.
+ * shnbsd-tdep.c (_initialize_shnbsd_tdep): Update.
+ * rs6000-nat.c (_initialize_core_rs6000): Update.
+ * ppcnbsd-tdep.c (_initialize_ppcnbsd_tdep): Update.
+ * nto-tdep.c (_initialize_nto_tdep): Update.
+ * ns32knbsd-nat.c (_initialize_ns32knbsd_nat): Update.
+ * mipsnbsd-tdep.c (_initialize_mipsnbsd_tdep): Update.
+ * mips-nat.c (_initialize_core_mips): Update.
+ * mips-linux-tdep.c (_initialize_mips_linux_tdep): Update.
+ * m68knbsd-nat.c (_initialize_m68knbsd_nat): Update.
+ * m68klinux-nat.c (_initialize_m68k_linux_nat): Update.
+ * lynx-nat.c (_initialize_core_lynx): Update.
+ * irix5-nat.c (_initialize_core_irix5): Update.
+ * i386-interix-nat.c (_initialize_core_interix): Update.
+ * cris-tdep.c (_initialize_cris_tdep): Update.
+ * corelow.c (deprecated_add_core_fns): Update.
+ * core-regset.c (_initialize_core_regset): Update.
+ * core-aout.c (_initialize_core_aout): Update.
+ * armnbsd-nat.c (_initialize_arm_netbsd_nat): Update.
+ * alphanbsd-tdep.c (_initialize_alphanbsd_tdep): Update.
+ * alpha-nat.c (_initialize_core_alpha): Update.
+
2004-04-21 Jim Blandy <jimb@redhat.com>
* rs6000-tdep.c (registers_e500, registers_7400): Doc fixes.
void
_initialize_core_alpha (void)
{
- add_core_fns (&alpha_osf_core_fns);
- add_core_fns (&alpha_elf_core_fns);
+ deprecated_add_core_fns (&alpha_osf_core_fns);
+ deprecated_add_core_fns (&alpha_elf_core_fns);
}
gdbarch_register_osabi (bfd_arch_alpha, 0, GDB_OSABI_OPENBSD_ELF,
alphanbsd_init_abi);
- add_core_fns (&alphanbsd_core_fns);
- add_core_fns (&alphanbsd_elfcore_fns);
+ deprecated_add_core_fns (&alphanbsd_core_fns);
+ deprecated_add_core_fns (&alphanbsd_elfcore_fns);
}
void
_initialize_arm_netbsd_nat (void)
{
- add_core_fns (&arm_netbsd_core_fns);
- add_core_fns (&arm_netbsd_elfcore_fns);
+ deprecated_add_core_fns (&arm_netbsd_core_fns);
+ deprecated_add_core_fns (&arm_netbsd_elfcore_fns);
}
void
_initialize_core_aout (void)
{
- add_core_fns (&aout_core_fns);
+ deprecated_add_core_fns (&aout_core_fns);
}
void
_initialize_core_regset (void)
{
- add_core_fns (®set_core_fns);
+ deprecated_add_core_fns (®set_core_fns);
}
#define O_BINARY 0
#endif
-/* List of all available core_fns. On gdb startup, each core file register
- reader calls add_core_fns() to register information on each core format it
- is prepared to read. */
+/* List of all available core_fns. On gdb startup, each core file
+ register reader calls deprecated_add_core_fns() to register
+ information on each core format it is prepared to read. */
static struct core_fns *core_file_fns = NULL;
handle. */
void
-add_core_fns (struct core_fns *cf)
+deprecated_add_core_fns (struct core_fns *cf)
{
cf->next = core_file_fns;
core_file_fns = cf;
"Note that this displays the address after the jump to the "
"subroutine.", &cmdlist);
- add_core_fns (&cris_elf_core_fns);
+ deprecated_add_core_fns (&cris_elf_core_fns);
}
/* Machine independent variables that describe the core file under GDB.
- Copyright 1986, 1987, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996,
- 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
+
+ Copyright 1986, 1987, 1989, 1990, 1991, 1992, 1993, 1994, 1995,
+ 1996, 1997, 1998, 1999, 2000, 2001, 2004 Free Software Foundation,
+ Inc.
This file is part of GDB.
unsigned core_reg_size,
int which, CORE_ADDR reg_addr);
- /* Finds the next struct core_fns. They are allocated and initialized
- in whatever module implements the functions pointed to; an
- initializer calls add_core_fns to add them to the global chain. */
+ /* Finds the next struct core_fns. They are allocated and
+ initialized in whatever module implements the functions pointed
+ to; an initializer calls deprecated_add_core_fns to add them to
+ the global chain. */
struct core_fns *next;
};
-extern void add_core_fns (struct core_fns *cf);
+/* NOTE: cagney/2004-04-05: Replaced by "regset.h" and
+ regset_from_core_section(). */
+extern void deprecated_add_core_fns (struct core_fns *cf);
extern int default_core_sniffer (struct core_fns *cf, bfd * abfd);
extern int default_check_format (bfd * abfd);
void
_initialize_core_interix (void)
{
- add_core_fns (&interix_core_fns);
+ deprecated_add_core_fns (&interix_core_fns);
}
/* We don't have a /proc/pid/file or /proc/pid/exe to read a link from,
void
_initialize_core_irix5 (void)
{
- add_core_fns (&irix5_core_fns);
+ deprecated_add_core_fns (&irix5_core_fns);
}
void
_initialize_core_lynx (void)
{
- add_core_fns (&lynx_core_fns);
+ deprecated_add_core_fns (&lynx_core_fns);
}
void
_initialize_m68k_linux_nat (void)
{
- add_core_fns (&linux_elf_core_fns);
+ deprecated_add_core_fns (&linux_elf_core_fns);
}
void
_initialize_m68knbsd_nat (void)
{
- add_core_fns (&m68knbsd_core_fns);
+ deprecated_add_core_fns (&m68knbsd_core_fns);
}
mips_linux_init_abi);
}
- add_core_fns (®set_core_fns);
+ deprecated_add_core_fns (®set_core_fns);
}
void
_initialize_core_mips (void)
{
- add_core_fns (&mips_core_fns);
+ deprecated_add_core_fns (&mips_core_fns);
}
gdbarch_register_osabi (bfd_arch_mips, 0, GDB_OSABI_NETBSD_ELF,
mipsnbsd_init_abi);
- add_core_fns (&mipsnbsd_core_fns);
- add_core_fns (&mipsnbsd_elfcore_fns);
+ deprecated_add_core_fns (&mipsnbsd_core_fns);
+ deprecated_add_core_fns (&mipsnbsd_elfcore_fns);
}
void
_initialize_ns32knbsd_nat (void)
{
- add_core_fns (&nat_core_fns);
+ deprecated_add_core_fns (&nat_core_fns);
}
\f
#endif
/* Register core file support. */
- add_core_fns (®set_core_fns);
+ deprecated_add_core_fns (®set_core_fns);
}
gdbarch_register_osabi (bfd_arch_powerpc, 0, GDB_OSABI_NETBSD_ELF,
ppcnbsd_init_abi);
- add_core_fns (&ppcnbsd_core_fns);
- add_core_fns (&ppcnbsd_elfcore_fns);
+ deprecated_add_core_fns (&ppcnbsd_core_fns);
+ deprecated_add_core_fns (&ppcnbsd_elfcore_fns);
}
starting a child process. */
rs6000_set_host_arch_hook = set_host_arch;
- add_core_fns (&rs6000_core_fns);
+ deprecated_add_core_fns (&rs6000_core_fns);
}
void
_initialize_shnbsd_tdep (void)
{
- add_core_fns (&shnbsd_core_fns);
- add_core_fns (&shnbsd_elfcore_fns);
+ deprecated_add_core_fns (&shnbsd_core_fns);
+ deprecated_add_core_fns (&shnbsd_elfcore_fns);
gdbarch_register_osabi (bfd_arch_sh, 0, GDB_OSABI_NETBSD_ELF,
shnbsd_init_abi);
void
_initialize_core_sun3 (void)
{
- add_core_fns (&sun3_core_fns);
+ deprecated_add_core_fns (&sun3_core_fns);
}
void
_initialize_core_win32 (void)
{
- add_core_fns (&win32_elf_core_fns);
+ deprecated_add_core_fns (&win32_elf_core_fns);
}
void
void
_initialize_core_win32 (void)
{
- add_core_fns (&win32_elf_core_fns);
+ deprecated_add_core_fns (&win32_elf_core_fns);
}
void