diff options
author | Tom Tromey <tromey@redhat.com> | 2013-12-18 14:47:06 -0700 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2014-02-19 07:48:16 -0700 |
commit | 7e35c012fb79ca35105f0d1b299014adef61be88 (patch) | |
tree | 77d3c39f06d58637328e98837cd9746fe42337eb /gdb/target.c | |
parent | 770234d33bd301dd1893457a90e4b02cfec5c87a (diff) | |
download | gdb-7e35c012fb79ca35105f0d1b299014adef61be88.zip gdb-7e35c012fb79ca35105f0d1b299014adef61be88.tar.gz gdb-7e35c012fb79ca35105f0d1b299014adef61be88.tar.bz2 |
convert to_get_section_table
2014-02-19 Tom Tromey <tromey@redhat.com>
* target-delegates.c: Rebuild.
* target.c (target_get_section_table): Unconditionally delegate.
* target.h (struct target_ops) <to_get_section_table>: Use
TARGET_DEFAULT_RETURN.
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. */ |