diff options
Diffstat (limited to 'gdb/memattr.c')
-rw-r--r-- | gdb/memattr.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/gdb/memattr.c b/gdb/memattr.c index 5b52f85..356b4d6 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -432,10 +432,10 @@ mem_info_command (char *args, int from_tty) printf_filtered ("Num "); printf_filtered ("Enb "); printf_filtered ("Low Addr "); - if (gdbarch_addr_bit (current_gdbarch) > 32) + if (gdbarch_addr_bit (target_gdbarch) > 32) printf_filtered (" "); printf_filtered ("High Addr "); - if (gdbarch_addr_bit (current_gdbarch) > 32) + if (gdbarch_addr_bit (target_gdbarch) > 32) printf_filtered (" "); printf_filtered ("Attrs "); printf_filtered ("\n"); @@ -446,14 +446,14 @@ mem_info_command (char *args, int from_tty) printf_filtered ("%-3d %-3c\t", m->number, m->enabled_p ? 'y' : 'n'); - if (gdbarch_addr_bit (current_gdbarch) <= 32) + if (gdbarch_addr_bit (target_gdbarch) <= 32) tmp = hex_string_custom ((unsigned long) m->lo, 8); else tmp = hex_string_custom ((unsigned long) m->lo, 16); printf_filtered ("%s ", tmp); - if (gdbarch_addr_bit (current_gdbarch) <= 32) + if (gdbarch_addr_bit (target_gdbarch) <= 32) { if (m->hi == 0) tmp = "0x100000000"; |