]> git.ipfire.org Git - thirdparty/binutils-gdb.git/blobdiff - gdb/solib-dsbt.c
Convert struct target_ops to C++
[thirdparty/binutils-gdb.git] / gdb / solib-dsbt.c
index 7a9b75480a5d7cb91ed02e212da446a22bb53d97..9868606249bdb1559868c79c9dffe2bb4b2b4988 100644 (file)
@@ -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 (&current_target, TARGET_OBJECT_FDPIC, "exec");
+    = target_read_alloc (target_stack, 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 (&current_target, TARGET_OBJECT_FDPIC, "exec");
+  buf = target_read_alloc (target_stack, TARGET_OBJECT_FDPIC, "exec");
   if (!buf || buf->empty ())
     {
       info->interp_loadmap = NULL;