From a97b0ac8cf1c8a5148d8c79908a0ef9378891e31 Mon Sep 17 00:00:00 2001 From: Ulrich Weigand Date: Wed, 17 Jun 2009 18:44:23 +0000 Subject: * ada-tasks.c (read_known_tasks_array): Use target_gdbarch instead of current_gdbarch. * aix-thread.c (pd_enable): Likewise. * amd64-linux-nat.c (ps_get_thread_area): Likewise. * bsd-uthread.c (bsd_uthread_activate): Likewise. * linux-nat.c (linux_nat_info_proc_cmd): Likewise. * linux-thread-db.c (enable_thread_event): Likewise. * monitor.c (monitor_write_memory, monitor_read_memory): Likewise. * nto-procfs.c (procfs_open): Likewise. * procfs.c (invalidate_cache, procfs_insert_watchpoint, info_proc_mappings, info_mappings_callback): Likewise. * record.c (record_open): Likewise. * rs6000-nat.c (ARCH64): Likewise. * solib-darwin.c (darwin_solib_create_inferior_hook): Likewise. (darwin_bfd_open): Likewise. * memattr.c (mem_info_command): Likewise. * windows-nat.c (win32_resume): Use current regcache architecture instead of current_gdbarch. * dbug-rom.c (dbug_regname): Remove check against number of registers in current_gdbarch. * solib-pa64.c (read_dynamic_info): Remove unused variable. --- gdb/memattr.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) (limited to 'gdb/memattr.c') 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"; -- cgit v1.1