X-Git-Url: http://drtracing.org/?a=blobdiff_plain;f=gdb%2Fmemattr.c;h=5b52f8505721922ab935ea934912e22858d87de0;hb=88c15c34004057ccff9993d517b4df5ba1a0e6f8;hp=f8e073226c1b8b85c2fe65cce1c2b5c5d70345d2;hpb=6aba47ca06d9150c6196a374b745c2711b46e045;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/memattr.c b/gdb/memattr.c index f8e073226c..5b52f85057 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -1,13 +1,13 @@ /* Memory attributes support, for GDB. - Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007 + Copyright (C) 2001, 2002, 2003, 2004, 2005, 2006, 2007, 2008, 2009 Free Software Foundation, Inc. This file is part of GDB. This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by - the Free Software Foundation; either version 2 of the License, or + the Free Software Foundation; either version 3 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, @@ -16,9 +16,7 @@ GNU General Public License for more details. You should have received a copy of the GNU General Public License - along with this program; if not, write to the Free Software - Foundation, Inc., 51 Franklin Street, Fifth Floor, - Boston, MA 02110-1301, USA. */ + along with this program. If not, see . */ #include "defs.h" #include "command.h" @@ -67,7 +65,7 @@ static int target_mem_regions_valid; /* If this flag is set, gdb will assume that memory ranges not specified by the memory map have type MEM_NONE, and will emit errors on all accesses to that memory. */ -static int inaccessible_by_default = 0; +static int inaccessible_by_default = 1; static void show_inaccessible_by_default (struct ui_file *file, int from_tty, @@ -434,10 +432,10 @@ mem_info_command (char *args, int from_tty) printf_filtered ("Num "); printf_filtered ("Enb "); printf_filtered ("Low Addr "); - if (TARGET_ADDR_BIT > 32) + if (gdbarch_addr_bit (current_gdbarch) > 32) printf_filtered (" "); printf_filtered ("High Addr "); - if (TARGET_ADDR_BIT > 32) + if (gdbarch_addr_bit (current_gdbarch) > 32) printf_filtered (" "); printf_filtered ("Attrs "); printf_filtered ("\n"); @@ -448,14 +446,14 @@ mem_info_command (char *args, int from_tty) printf_filtered ("%-3d %-3c\t", m->number, m->enabled_p ? 'y' : 'n'); - if (TARGET_ADDR_BIT <= 32) + if (gdbarch_addr_bit (current_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 (TARGET_ADDR_BIT <= 32) + if (gdbarch_addr_bit (current_gdbarch) <= 32) { if (m->hi == 0) tmp = "0x100000000"; @@ -692,7 +690,7 @@ mem_delete_command (char *args, int from_tty) if (p == 0) { - if (query ("Delete all memory regions? ")) + if (query (_("Delete all memory regions? "))) mem_clear (); dont_repeat (); return;