diff options
Diffstat (limited to 'gdb/target.c')
-rw-r--r-- | gdb/target.c | 9 |
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 (¤t_target); if (result == NULL) return NULL; |