From: Kazu Hirata Date: Thu, 11 Oct 2007 20:12:04 +0000 (+0000) Subject: gdb/ X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=56cf5405c3df898925458f8e72938583ceb5f293;p=binutils-gdb.git gdb/ * memattr.c (inaccessible_by_default): Change the initial value to 1. gdb/doc/ * gdb.texinfo: Mention that inaccessible-by-default is on by default. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index f4eb180cdfb..7408d080ba8 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2007-10-11 Kazu Hirata + + * memattr.c (inaccessible_by_default): Change the initial + value to 1. + 2007-10-11 Daniel Jacobowitz PR gdb/2280 diff --git a/gdb/doc/ChangeLog b/gdb/doc/ChangeLog index 7222c04620f..68474c268d0 100644 --- a/gdb/doc/ChangeLog +++ b/gdb/doc/ChangeLog @@ -1,3 +1,8 @@ +2007-10-11 Kazu Hirata + + * gdb.texinfo: Mention that inaccessible-by-default is on by + default. + 2007-10-11 Daniel Jacobowitz * gdbint.texinfo (Target Conditionals): Remove VARIABLES_INSIDE_BLOCK. diff --git a/gdb/doc/gdb.texinfo b/gdb/doc/gdb.texinfo index fac3f678119..468d600c383 100644 --- a/gdb/doc/gdb.texinfo +++ b/gdb/doc/gdb.texinfo @@ -7022,7 +7022,7 @@ explicitly described by the memory ranges as non-existent and refuse accesses to such memory. The checks are only performed if there's at least one memory range defined. If @code{off} is specified, make @value{GDBN} treat the memory not explicitly described by the memory ranges as RAM. -The default value is @code{off}. +The default value is @code{on}. @kindex show mem inaccessible-by-default @item show mem inaccessible-by-default Show the current handling of accesses to unknown memory. diff --git a/gdb/memattr.c b/gdb/memattr.c index 0b599d4b1b8..c4c3d6768c3 100644 --- a/gdb/memattr.c +++ b/gdb/memattr.c @@ -65,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,