aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2004-04-21 17:47:10 +0000
committerAndrew Cagney <cagney@redhat.com>2004-04-21 17:47:10 +0000
commit00e32a35b6e3c980338d7fe47dab8658f211efb9 (patch)
tree186bc2c05a929e1574ce94699ab0046936eafd58
parentf0fd92385d534258bb40677008249001778e9b28 (diff)
downloadgdb-00e32a35b6e3c980338d7fe47dab8658f211efb9.zip
gdb-00e32a35b6e3c980338d7fe47dab8658f211efb9.tar.gz
gdb-00e32a35b6e3c980338d7fe47dab8658f211efb9.tar.bz2
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.
-rw-r--r--gdb/ChangeLog27
-rw-r--r--gdb/alpha-nat.c4
-rw-r--r--gdb/alphanbsd-tdep.c4
-rw-r--r--gdb/armnbsd-nat.c4
-rw-r--r--gdb/core-aout.c2
-rw-r--r--gdb/core-regset.c2
-rw-r--r--gdb/corelow.c8
-rw-r--r--gdb/cris-tdep.c2
-rw-r--r--gdb/gdbcore.h17
-rw-r--r--gdb/i386-interix-nat.c2
-rw-r--r--gdb/irix5-nat.c2
-rw-r--r--gdb/lynx-nat.c2
-rw-r--r--gdb/m68klinux-nat.c2
-rw-r--r--gdb/m68knbsd-nat.c2
-rw-r--r--gdb/mips-linux-tdep.c2
-rw-r--r--gdb/mips-nat.c2
-rw-r--r--gdb/mipsnbsd-tdep.c4
-rw-r--r--gdb/ns32knbsd-nat.c2
-rw-r--r--gdb/nto-tdep.c2
-rw-r--r--gdb/ppcnbsd-tdep.c4
-rw-r--r--gdb/rs6000-nat.c2
-rw-r--r--gdb/shnbsd-tdep.c4
-rw-r--r--gdb/sun3-nat.c2
-rw-r--r--gdb/win32-nat.c2
-rw-r--r--gdb/windows-nat.c2
25 files changed, 70 insertions, 38 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 0122901..b21f8cf 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,30 @@
+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.
diff --git a/gdb/alpha-nat.c b/gdb/alpha-nat.c
index 0a78d94..62486cf 100644
--- a/gdb/alpha-nat.c
+++ b/gdb/alpha-nat.c
@@ -267,6 +267,6 @@ static struct core_fns alpha_elf_core_fns =
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);
}
diff --git a/gdb/alphanbsd-tdep.c b/gdb/alphanbsd-tdep.c
index 6fe9252..24fa358 100644
--- a/gdb/alphanbsd-tdep.c
+++ b/gdb/alphanbsd-tdep.c
@@ -229,6 +229,6 @@ _initialize_alphanbsd_tdep (void)
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);
}
diff --git a/gdb/armnbsd-nat.c b/gdb/armnbsd-nat.c
index 88396c0..0a12174 100644
--- a/gdb/armnbsd-nat.c
+++ b/gdb/armnbsd-nat.c
@@ -459,6 +459,6 @@ static struct core_fns arm_netbsd_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);
}
diff --git a/gdb/core-aout.c b/gdb/core-aout.c
index 0329302..7702d78 100644
--- a/gdb/core-aout.c
+++ b/gdb/core-aout.c
@@ -142,5 +142,5 @@ static struct core_fns aout_core_fns =
void
_initialize_core_aout (void)
{
- add_core_fns (&aout_core_fns);
+ deprecated_add_core_fns (&aout_core_fns);
}
diff --git a/gdb/core-regset.c b/gdb/core-regset.c
index 0600837..529c51f 100644
--- a/gdb/core-regset.c
+++ b/gdb/core-regset.c
@@ -115,5 +115,5 @@ extern void _initialize_core_regset (void);
void
_initialize_core_regset (void)
{
- add_core_fns (&regset_core_fns);
+ deprecated_add_core_fns (&regset_core_fns);
}
diff --git a/gdb/corelow.c b/gdb/corelow.c
index c0b782d..902e995 100644
--- a/gdb/corelow.c
+++ b/gdb/corelow.c
@@ -50,9 +50,9 @@
#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;
@@ -104,7 +104,7 @@ struct target_ops core_ops;
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;
diff --git a/gdb/cris-tdep.c b/gdb/cris-tdep.c
index 0ebfeda..23fe1d5 100644
--- a/gdb/cris-tdep.c
+++ b/gdb/cris-tdep.c
@@ -3645,7 +3645,7 @@ _initialize_cris_tdep (void)
"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);
}
diff --git a/gdb/gdbcore.h b/gdb/gdbcore.h
index e03ebf4..9cf063f 100644
--- a/gdb/gdbcore.h
+++ b/gdb/gdbcore.h
@@ -1,6 +1,8 @@
/* 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.
@@ -194,15 +196,18 @@ struct core_fns
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);
diff --git a/gdb/i386-interix-nat.c b/gdb/i386-interix-nat.c
index 91b9be2..c45de2f 100644
--- a/gdb/i386-interix-nat.c
+++ b/gdb/i386-interix-nat.c
@@ -148,7 +148,7 @@ static struct core_fns interix_core_fns =
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,
diff --git a/gdb/irix5-nat.c b/gdb/irix5-nat.c
index 93727a6..da9e6e7 100644
--- a/gdb/irix5-nat.c
+++ b/gdb/irix5-nat.c
@@ -277,5 +277,5 @@ static struct core_fns irix5_core_fns =
void
_initialize_core_irix5 (void)
{
- add_core_fns (&irix5_core_fns);
+ deprecated_add_core_fns (&irix5_core_fns);
}
diff --git a/gdb/lynx-nat.c b/gdb/lynx-nat.c
index 7bfd40e..9f99b47 100644
--- a/gdb/lynx-nat.c
+++ b/gdb/lynx-nat.c
@@ -620,5 +620,5 @@ static struct core_fns lynx_core_fns =
void
_initialize_core_lynx (void)
{
- add_core_fns (&lynx_core_fns);
+ deprecated_add_core_fns (&lynx_core_fns);
}
diff --git a/gdb/m68klinux-nat.c b/gdb/m68klinux-nat.c
index 1407040..d90d8f8 100644
--- a/gdb/m68klinux-nat.c
+++ b/gdb/m68klinux-nat.c
@@ -617,5 +617,5 @@ static struct core_fns linux_elf_core_fns =
void
_initialize_m68k_linux_nat (void)
{
- add_core_fns (&linux_elf_core_fns);
+ deprecated_add_core_fns (&linux_elf_core_fns);
}
diff --git a/gdb/m68knbsd-nat.c b/gdb/m68knbsd-nat.c
index 4617243..c4379691 100644
--- a/gdb/m68knbsd-nat.c
+++ b/gdb/m68knbsd-nat.c
@@ -99,5 +99,5 @@ static struct core_fns m68knbsd_core_fns =
void
_initialize_m68knbsd_nat (void)
{
- add_core_fns (&m68knbsd_core_fns);
+ deprecated_add_core_fns (&m68knbsd_core_fns);
}
diff --git a/gdb/mips-linux-tdep.c b/gdb/mips-linux-tdep.c
index d512446..73c6da5 100644
--- a/gdb/mips-linux-tdep.c
+++ b/gdb/mips-linux-tdep.c
@@ -1166,5 +1166,5 @@ _initialize_mips_linux_tdep (void)
mips_linux_init_abi);
}
- add_core_fns (&regset_core_fns);
+ deprecated_add_core_fns (&regset_core_fns);
}
diff --git a/gdb/mips-nat.c b/gdb/mips-nat.c
index 626f770..39f1f77 100644
--- a/gdb/mips-nat.c
+++ b/gdb/mips-nat.c
@@ -250,5 +250,5 @@ static struct core_fns mips_core_fns =
void
_initialize_core_mips (void)
{
- add_core_fns (&mips_core_fns);
+ deprecated_add_core_fns (&mips_core_fns);
}
diff --git a/gdb/mipsnbsd-tdep.c b/gdb/mipsnbsd-tdep.c
index 114a374..b54b519 100644
--- a/gdb/mipsnbsd-tdep.c
+++ b/gdb/mipsnbsd-tdep.c
@@ -366,6 +366,6 @@ _initialize_mipsnbsd_tdep (void)
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);
}
diff --git a/gdb/ns32knbsd-nat.c b/gdb/ns32knbsd-nat.c
index 2dc7771..52c6840 100644
--- a/gdb/ns32knbsd-nat.c
+++ b/gdb/ns32knbsd-nat.c
@@ -182,7 +182,7 @@ static struct core_fns nat_core_fns =
void
_initialize_ns32knbsd_nat (void)
{
- add_core_fns (&nat_core_fns);
+ deprecated_add_core_fns (&nat_core_fns);
}
diff --git a/gdb/nto-tdep.c b/gdb/nto-tdep.c
index 056b93f..ed32a5c 100644
--- a/gdb/nto-tdep.c
+++ b/gdb/nto-tdep.c
@@ -333,5 +333,5 @@ for different positive values.", "Show QNX NTO internal debugging.\n",
#endif
/* Register core file support. */
- add_core_fns (&regset_core_fns);
+ deprecated_add_core_fns (&regset_core_fns);
}
diff --git a/gdb/ppcnbsd-tdep.c b/gdb/ppcnbsd-tdep.c
index 7d27e83..5a9c92b 100644
--- a/gdb/ppcnbsd-tdep.c
+++ b/gdb/ppcnbsd-tdep.c
@@ -245,6 +245,6 @@ _initialize_ppcnbsd_tdep (void)
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);
}
diff --git a/gdb/rs6000-nat.c b/gdb/rs6000-nat.c
index 3d6c07c..c0a95da 100644
--- a/gdb/rs6000-nat.c
+++ b/gdb/rs6000-nat.c
@@ -1223,5 +1223,5 @@ _initialize_core_rs6000 (void)
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);
}
diff --git a/gdb/shnbsd-tdep.c b/gdb/shnbsd-tdep.c
index 2b731ce..1ed20a1 100644
--- a/gdb/shnbsd-tdep.c
+++ b/gdb/shnbsd-tdep.c
@@ -186,8 +186,8 @@ shnbsd_init_abi (struct gdbarch_info info,
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);
diff --git a/gdb/sun3-nat.c b/gdb/sun3-nat.c
index 6c52d33..0ae81c6 100644
--- a/gdb/sun3-nat.c
+++ b/gdb/sun3-nat.c
@@ -162,5 +162,5 @@ static struct core_fns sun3_core_fns =
void
_initialize_core_sun3 (void)
{
- add_core_fns (&sun3_core_fns);
+ deprecated_add_core_fns (&sun3_core_fns);
}
diff --git a/gdb/win32-nat.c b/gdb/win32-nat.c
index 8b26916..2282152 100644
--- a/gdb/win32-nat.c
+++ b/gdb/win32-nat.c
@@ -2427,7 +2427,7 @@ static struct core_fns win32_elf_core_fns =
void
_initialize_core_win32 (void)
{
- add_core_fns (&win32_elf_core_fns);
+ deprecated_add_core_fns (&win32_elf_core_fns);
}
void
diff --git a/gdb/windows-nat.c b/gdb/windows-nat.c
index 8b26916..2282152 100644
--- a/gdb/windows-nat.c
+++ b/gdb/windows-nat.c
@@ -2427,7 +2427,7 @@ static struct core_fns win32_elf_core_fns =
void
_initialize_core_win32 (void)
{
- add_core_fns (&win32_elf_core_fns);
+ deprecated_add_core_fns (&win32_elf_core_fns);
}
void