2004-09-29 Andrew Cagney <cagney@gnu.org>
authorAndrew Cagney <cagney@redhat.com>
Wed, 29 Sep 2004 14:20:25 +0000 (14:20 +0000)
committerAndrew Cagney <cagney@redhat.com>
Wed, 29 Sep 2004 14:20:25 +0000 (14:20 +0000)
* inftarg.c (inftarg_set_find_memory_regions)
(inftarg_set_make_corefile_notes): Delete functions.
(_initialize_linux_nat): Inline calls.

gdb/ChangeLog
gdb/inftarg.c
gdb/linux-nat.c

index 1e44065e47cb2791633e42328207e7e0613786d0..87bc351a402420c829afedad6792d5e24678e00c 100644 (file)
@@ -1,5 +1,9 @@
 2004-09-29  Andrew Cagney  <cagney@gnu.org>
 
+       * inftarg.c (inftarg_set_find_memory_regions) 
+       (inftarg_set_make_corefile_notes): Delete functions.
+       (_initialize_linux_nat): Inline calls.
+
        * target.h (child_ops): Declare.
        * inftarg.c (child_ops): Move from here ...
        * target.c (child_ops): ... to here.
index b15b75bd06764051de5ff196f7007fc8d9afc171..3a9ed136c7e58d8d46453ee396316e96f8bf548a 100644 (file)
@@ -650,24 +650,6 @@ init_child_ops (void)
   child_ops.to_magic = OPS_MAGIC;
 }
 
-/* Take over the 'find_mapped_memory' vector from inftarg.c. */
-extern void
-inftarg_set_find_memory_regions (int (*func) (int (*) (CORE_ADDR,
-                                                      unsigned long,
-                                                      int, int, int,
-                                                      void *),
-                                             void *))
-{
-  child_ops.to_find_memory_regions = func;
-}
-
-/* Take over the 'make_corefile_notes' vector from inftarg.c. */
-extern void
-inftarg_set_make_corefile_notes (char * (*func) (bfd *, int *))
-{
-  child_ops.to_make_corefile_notes = func;
-}
-
 void
 _initialize_inftarg (void)
 {
index fa14bb63fe27aaef15bb19cc884850f095695b69..88e8cb30e303c55527dc3e23262f8cb1df69d2c7 100644 (file)
@@ -3011,11 +3011,9 @@ _initialize_linux_nat (void)
 {
   struct sigaction action;
   extern void thread_db_init (struct target_ops *);
-  extern void inftarg_set_find_memory_regions ();
-  extern void inftarg_set_make_corefile_notes ();
 
-  inftarg_set_find_memory_regions (linux_nat_find_memory_regions);
-  inftarg_set_make_corefile_notes (linux_nat_make_corefile_notes);
+  child_ops.to_find_memory_regions = linux_nat_find_memory_regions;
+  child_ops.to_make_corefile_notes = linux_nat_make_corefile_notes;
 
   add_info ("proc", linux_nat_info_proc_cmd,
            "Show /proc process information about any running process.\n\
This page took 0.033044 seconds and 4 git commands to generate.