From 8197740273a1f1d3017b84738484dd236fae7d9e Mon Sep 17 00:00:00 2001 From: Andrew Cagney Date: Wed, 29 Sep 2004 14:20:25 +0000 Subject: [PATCH] 2004-09-29 Andrew Cagney * inftarg.c (inftarg_set_find_memory_regions) (inftarg_set_make_corefile_notes): Delete functions. (_initialize_linux_nat): Inline calls. --- gdb/ChangeLog | 4 ++++ gdb/inftarg.c | 18 ------------------ gdb/linux-nat.c | 6 ++---- 3 files changed, 6 insertions(+), 22 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 1e44065e47..87bc351a40 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,9 @@ 2004-09-29 Andrew Cagney + * 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. diff --git a/gdb/inftarg.c b/gdb/inftarg.c index b15b75bd06..3a9ed136c7 100644 --- a/gdb/inftarg.c +++ b/gdb/inftarg.c @@ -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) { diff --git a/gdb/linux-nat.c b/gdb/linux-nat.c index fa14bb63fe..88e8cb30e3 100644 --- a/gdb/linux-nat.c +++ b/gdb/linux-nat.c @@ -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\ -- 2.34.1