2004-04-21 Andrew Cagney <cagney@redhat.com>
authorAndrew Cagney <cagney@redhat.com>
Wed, 21 Apr 2004 17:47:10 +0000 (17:47 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 21 Apr 2004 17:47:10 +0000 (17:47 +0000)
* 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.

25 files changed:
gdb/ChangeLog
gdb/alpha-nat.c
gdb/alphanbsd-tdep.c
gdb/armnbsd-nat.c
gdb/core-aout.c
gdb/core-regset.c
gdb/corelow.c
gdb/cris-tdep.c
gdb/gdbcore.h
gdb/i386-interix-nat.c
gdb/irix5-nat.c
gdb/lynx-nat.c
gdb/m68klinux-nat.c
gdb/m68knbsd-nat.c
gdb/mips-linux-tdep.c
gdb/mips-nat.c
gdb/mipsnbsd-tdep.c
gdb/ns32knbsd-nat.c
gdb/nto-tdep.c
gdb/ppcnbsd-tdep.c
gdb/rs6000-nat.c
gdb/shnbsd-tdep.c
gdb/sun3-nat.c
gdb/win32-nat.c
gdb/windows-nat.c

index 01229014f1ac3783dcf1b7be7ee734799b326ef7..b21f8cf7fdd161e3d88ac8558ca927102a1ce20e 100644 (file)
@@ -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.
index 0a78d94917023aac5565c44ada29e7d9da5417b3..62486cf05cecd6379a143ea282b1e96f136ca00f 100644 (file)
@@ -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);
 }
index 6fe92524d214273f1884854959118aa46027d111..24fa358b82e0100a53b4c9fc8fae9c0f4c16f3c4 100644 (file)
@@ -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);
 }
index 88396c06a143d321bcf7e1a435112acef5f1e30f..0a12174feb7f35dcd963c21619f55a0e48a7580b 100644 (file)
@@ -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);
 }
index 0329302dc1e360573a3b0349c0599b40c2b7b90d..7702d78af171e5b7916a5784ea903eb414d5c39d 100644 (file)
@@ -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);
 }
index 0600837e1a061a489e8a40eb39a6947d4c7d52f4..529c51f7c217f5b82c11736c68fccae42226e2ae 100644 (file)
@@ -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);
 }
index c0b782dfd2216fd16e311075a996fd8dbb8f8378..902e9950e95cb5844d49b8d0dff7b4cdaf3edf0e 100644 (file)
@@ -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;
index 0ebfedac8655e2f707f818a3e682692b0c1e3dc5..23fe1d56aacee8d7c2b50ed230df0859e81a63ef 100644 (file)
@@ -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);
   
 }
 
index e03ebf47fa75dec9a60ba673e9141a81ca786cdb..9cf063f11dbd32ac75638ed5de7eefbcf6078e7c 100644 (file)
@@ -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);
 
index 91b9be293192af75fc685662137d8032dc5b882f..c45de2f5776f62d82b3ac3a681a1733808493b03 100644 (file)
@@ -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,
index 93727a6528987ec4f01976ae6003f5ecd5d7e27e..da9e6e7e69bc34227750aab1f1126a88e745482a 100644 (file)
@@ -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);
 }
index 7bfd40ee56e8ebee91c69dbc49c69f4dec5ee114..9f99b47d4b81fb05bbe89985a46980be8a5f9cdd 100644 (file)
@@ -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);
 }
index 14070405b1c4931f2918d5115352d8bf4421ce4b..d90d8f81d1880f17469c731fbc4623d3517a88fe 100644 (file)
@@ -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);
 }
index 46172439a2f12552f769a8c61675190b6c22d697..c4379691ce070aa882cd9f7f8de45caa19ff3cd1 100644 (file)
@@ -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);
 }
index d512446d04c3c372e36b0a832699bee12a9ba1eb..73c6da5ffc61e3113e80f96dee985a3c12d3871c 100644 (file)
@@ -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);
 }
index 626f770f18df86a7ae1cae8736efa3d82e3f7e15..39f1f7743e005260383746ffab94152c5687fdaf 100644 (file)
@@ -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);
 }
index 114a3745d7fecd9a61b589c52c8890eb29759512..b54b519f4b1a1d7f49bd5a879103e5df3d100a06 100644 (file)
@@ -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);
 }
index 2dc7771f345e22b1495ed2189f25f97927feb9a2..52c68405b6028a976e1f8c334dd325cd1153451b 100644 (file)
@@ -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);
 }
 \f
 
index 056b93f5b1acc6695f91dd3f8938507f2a22a9a2..ed32a5c6145ab9c07b477cb0b041cda8209673a6 100644 (file)
@@ -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);
 }
index 7d27e8327d03a30b7ab9a392baf9ec8752bfc3b2..5a9c92b9aa6c380f9e8836b5b816bcb1c76e3e17 100644 (file)
@@ -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);
 }
index 3d6c07c3dda21fe2e3344f88f04725e7228c31c1..c0a95da5646c269564edebfe977870339b7c0f2f 100644 (file)
@@ -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);
 }
index 2b731ced1a741e9fcbf0015d8e620c0fc4be355b..1ed20a124e872966d4870fe8a681d3244f029095 100644 (file)
@@ -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);
index 6c52d3388c226f3a8bdfbf8af37fbaddff51b020..0ae81c6590d0740fa46a69c86c46ff1ec64824cc 100644 (file)
@@ -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);
 }
index 8b26916e2b77b206dcfb15d1f059ae5e0e6826f4..2282152ba25c5827a4b658ad7a8b5b5a97ed57d2 100644 (file)
@@ -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
index 8b26916e2b77b206dcfb15d1f059ae5e0e6826f4..2282152ba25c5827a4b658ad7a8b5b5a97ed57d2 100644 (file)
@@ -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
This page took 0.038675 seconds and 4 git commands to generate.