aboutsummaryrefslogtreecommitdiff
path: root/gdb/auxv.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/auxv.c')
-rw-r--r--gdb/auxv.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/gdb/auxv.c b/gdb/auxv.c
index f13f90b..6507df1 100644
--- a/gdb/auxv.c
+++ b/gdb/auxv.c
@@ -320,7 +320,8 @@ target_auxv_parse (gdb_byte **readptr,
if (gdbarch_auxv_parse_p (gdbarch))
return gdbarch_auxv_parse (gdbarch, readptr, endptr, typep, valp);
- return current_top_target ()->auxv_parse (readptr, endptr, typep, valp);
+ return current_inferior ()->top_target ()->auxv_parse (readptr, endptr,
+ typep, valp);
}
@@ -580,7 +581,8 @@ info_auxv_command (const char *cmd, int from_tty)
error (_("The program has no auxiliary information now."));
else
{
- int ents = fprint_target_auxv (gdb_stdout, current_top_target ());
+ int ents = fprint_target_auxv (gdb_stdout,
+ current_inferior ()->top_target ());
if (ents < 0)
error (_("No auxiliary vector found, or failed reading it."));