diff options
Diffstat (limited to 'gdb/solib-target.c')
-rw-r--r-- | gdb/solib-target.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/solib-target.c b/gdb/solib-target.c index adbab7e..3c9872c 100644 --- a/gdb/solib-target.c +++ b/gdb/solib-target.c @@ -258,7 +258,8 @@ solib_target_current_sos (void) /* Fetch the list of shared libraries. */ gdb::optional<gdb::char_vector> library_document - = target_read_stralloc (target_stack, TARGET_OBJECT_LIBRARIES, NULL); + = target_read_stralloc (current_top_target (), TARGET_OBJECT_LIBRARIES, + NULL); if (!library_document) return NULL; |