aboutsummaryrefslogtreecommitdiff
path: root/gdb/mips-linux-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/mips-linux-nat.c')
-rw-r--r--gdb/mips-linux-nat.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/mips-linux-nat.c b/gdb/mips-linux-nat.c
index 8a7cc95..8d21049 100644
--- a/gdb/mips-linux-nat.c
+++ b/gdb/mips-linux-nat.c
@@ -516,7 +516,7 @@ mips_show_dr (const char *func, CORE_ADDR addr,
if (addr || len)
gdb_printf (gdb_stdlog,
" (addr=%s, len=%d, type=%s)",
- paddress (target_gdbarch (), addr), len,
+ paddress (current_inferior ()->arch (), addr), len,
type == hw_write ? "data-write"
: (type == hw_read ? "data-read"
: (type == hw_access ? "data-read/write"
@@ -526,10 +526,10 @@ mips_show_dr (const char *func, CORE_ADDR addr,
for (i = 0; i < MAX_DEBUG_REGISTER; i++)
gdb_printf (gdb_stdlog, "\tDR%d: lo=%s, hi=%s\n", i,
- paddress (target_gdbarch (),
+ paddress (current_inferior ()->arch (),
mips_linux_watch_get_watchlo (&watch_mirror,
i)),
- paddress (target_gdbarch (),
+ paddress (current_inferior ()->arch (),
mips_linux_watch_get_watchhi (&watch_mirror,
i)));
}