diff options
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 8 |
1 files changed, 1 insertions, 7 deletions
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. */ |