aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2013-12-19 07:47:11 -0700
committerTom Tromey <tromey@redhat.com>2014-02-19 07:48:32 -0700
commit6b2c5a57e10ca3d9021ef6fe27ba779a06f06717 (patch)
treea451de1fae90ee2ee0ce9af1597952df2ab22a27 /gdb/target.c
parentcbffc065273e91d3596dc73bad695a815f67d5fa (diff)
downloadgdb-6b2c5a57e10ca3d9021ef6fe27ba779a06f06717.zip
gdb-6b2c5a57e10ca3d9021ef6fe27ba779a06f06717.tar.gz
gdb-6b2c5a57e10ca3d9021ef6fe27ba779a06f06717.tar.bz2
convert to_memory_map
2014-02-19 Tom Tromey <tromey@redhat.com> * target-delegates.c: Rebuild. * target.c (target_memory_map): Unconditionally delegate. * target.h (struct target_ops) <to_memory_map>: Use TARGET_DEFAULT_RETURN.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c9
1 files changed, 1 insertions, 8 deletions
diff --git a/gdb/target.c b/gdb/target.c
index d59cea8..38012cc 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -1719,14 +1719,7 @@ target_memory_map (void)
if (targetdebug)
fprintf_unfiltered (gdb_stdlog, "target_memory_map ()\n");
- for (t = current_target.beneath; t != NULL; t = t->beneath)
- if (t->to_memory_map != NULL)
- break;
-
- if (t == NULL)
- return NULL;
-
- result = t->to_memory_map (t);
+ result = current_target.to_memory_map (&current_target);
if (result == NULL)
return NULL;