diff options
Diffstat (limited to 'gdb/ui-out.c')
-rw-r--r-- | gdb/ui-out.c | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c index 78b554cb5f3..19a464448c4 100644 --- a/gdb/ui-out.c +++ b/gdb/ui-out.c @@ -488,10 +488,11 @@ ui_out_field_fmt_int (struct ui_out *uiout, void ui_out_field_core_addr (struct ui_out *uiout, const char *fldname, + struct gdbarch *gdbarch, CORE_ADDR address) { char addstr[20]; - int addr_bit = gdbarch_addr_bit (current_gdbarch); + int addr_bit = gdbarch_addr_bit (gdbarch); if (addr_bit < (sizeof (CORE_ADDR) * HOST_CHAR_BIT)) address &= ((CORE_ADDR) 1 << addr_bit) - 1; |