aboutsummaryrefslogtreecommitdiff
path: root/gdb/solib-dsbt.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/solib-dsbt.c')
-rw-r--r--gdb/solib-dsbt.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/solib-dsbt.c b/gdb/solib-dsbt.c
index 9868606..bf643fe 100644
--- a/gdb/solib-dsbt.c
+++ b/gdb/solib-dsbt.c
@@ -293,7 +293,7 @@ dsbt_get_initial_loadmaps (void)
{
struct dsbt_info *info = get_dsbt_info ();
gdb::optional<gdb::byte_vector> buf
- = target_read_alloc (target_stack, TARGET_OBJECT_FDPIC, "exec");
+ = target_read_alloc (current_top_target (), TARGET_OBJECT_FDPIC, "exec");
if (!buf || buf->empty ())
{
@@ -304,7 +304,7 @@ dsbt_get_initial_loadmaps (void)
if (solib_dsbt_debug)
dsbt_print_loadmap (info->exec_loadmap);
- buf = target_read_alloc (target_stack, TARGET_OBJECT_FDPIC, "exec");
+ buf = target_read_alloc (current_top_target (), TARGET_OBJECT_FDPIC, "exec");
if (!buf || buf->empty ())
{
info->interp_loadmap = NULL;