diff options
Diffstat (limited to 'gdb/solib-darwin.c')
-rw-r--r-- | gdb/solib-darwin.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solib-darwin.c b/gdb/solib-darwin.c index 557fb15..e655110 100644 --- a/gdb/solib-darwin.c +++ b/gdb/solib-darwin.c @@ -497,8 +497,8 @@ darwin_solib_read_all_image_info_addr (struct darwin_info *info) if (TYPE_LENGTH (ptr_type) > sizeof (buf)) return; - len = target_read (target_stack, TARGET_OBJECT_DARWIN_DYLD_INFO, NULL, - buf, 0, TYPE_LENGTH (ptr_type)); + len = target_read (current_top_target (), TARGET_OBJECT_DARWIN_DYLD_INFO, + NULL, buf, 0, TYPE_LENGTH (ptr_type)); if (len <= 0) return; |