From 7e35c012fb79ca35105f0d1b299014adef61be88 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Wed, 18 Dec 2013 14:47:06 -0700 Subject: convert to_get_section_table 2014-02-19 Tom Tromey * target-delegates.c: Rebuild. * target.c (target_get_section_table): Unconditionally delegate. * target.h (struct target_ops) : Use TARGET_DEFAULT_RETURN. --- gdb/target.c | 8 +------- 1 file changed, 1 insertion(+), 7 deletions(-) (limited to 'gdb/target.c') diff --git a/gdb/target.c b/gdb/target.c index 53a8e2b..a639861 100644 --- a/gdb/target.c +++ b/gdb/target.c @@ -1088,16 +1088,10 @@ done: struct target_section_table * target_get_section_table (struct target_ops *target) { - struct target_ops *t; - if (targetdebug) fprintf_unfiltered (gdb_stdlog, "target_get_section_table ()\n"); - for (t = target; t != NULL; t = t->beneath) - if (t->to_get_section_table != NULL) - return (*t->to_get_section_table) (t); - - return NULL; + return (*target->to_get_section_table) (target); } /* Find a section containing ADDR. */ -- cgit v1.1