* [patch] Turn on inaccessible-by-default by default.
@ 2007-09-26 19:44 Kazu Hirata
2007-09-26 20:42 ` Eli Zaretskii
2007-10-11 17:36 ` Daniel Jacobowitz
0 siblings, 2 replies; 5+ messages in thread
From: Kazu Hirata @ 2007-09-26 19:44 UTC (permalink / raw)
To: gdb-patches
Hi,
Attached is a patch to turn on inaccessible-by-default by default if
the user supplies the memory map.
This prevents gdb from wandering into memory regions that are not
defined when at least one memory region is defined.
OK to apply?
Kazu Hirata
2007-09-26 Kazu Hirata <kazu@codesourcery.com>
* doc/gdb.texinfo: Mention that inaccessible-by-default is on
by default.
* memattr.c (inaccessible_by_default): Change the initial
value to 1.
Index: gdb/memattr.c
===================================================================
RCS file: /cvs/src/src/gdb/memattr.c,v
retrieving revision 1.29
diff -u -d -p -r1.29 memattr.c
--- gdb/memattr.c 23 Aug 2007 18:08:36 -0000 1.29
+++ gdb/memattr.c 26 Sep 2007 19:41:23 -0000
@@ -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,
Index: gdb/doc/gdb.texinfo
===================================================================
RCS file: /cvs/src/src/gdb/doc/gdb.texinfo,v
retrieving revision 1.432
diff -u -d -p -r1.432 gdb.texinfo
--- gdb/doc/gdb.texinfo 16 Sep 2007 14:59:30 -0000 1.432
+++ gdb/doc/gdb.texinfo 26 Sep 2007 19:41:24 -0000
@@ -6973,7 +6973,7 @@ explicitly described by the memory range
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.
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch] Turn on inaccessible-by-default by default.
2007-09-26 19:44 [patch] Turn on inaccessible-by-default by default Kazu Hirata
@ 2007-09-26 20:42 ` Eli Zaretskii
2007-09-26 20:55 ` Kazu Hirata
2007-10-11 17:36 ` Daniel Jacobowitz
1 sibling, 1 reply; 5+ messages in thread
From: Eli Zaretskii @ 2007-09-26 20:42 UTC (permalink / raw)
To: Kazu Hirata; +Cc: gdb-patches
> Date: Wed, 26 Sep 2007 12:44:29 -0700
> From: Kazu Hirata <kazu@codesourcery.com>
>
> Attached is a patch to turn on inaccessible-by-default by default if
> the user supplies the memory map.
>
> This prevents gdb from wandering into memory regions that are not
> defined when at least one memory region is defined.
>
> OK to apply?
The patch for gdb.texinfo is okay with me.
Btw, I don't see your assignment on file in the FSF records, unless
you are Kazutaka Hirata kazu@hxi.com. (Not that such a tiny change
needs an assignment, but still.)
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch] Turn on inaccessible-by-default by default.
2007-09-26 20:42 ` Eli Zaretskii
@ 2007-09-26 20:55 ` Kazu Hirata
2007-09-26 21:05 ` Daniel Jacobowitz
0 siblings, 1 reply; 5+ messages in thread
From: Kazu Hirata @ 2007-09-26 20:55 UTC (permalink / raw)
To: Eli Zaretskii; +Cc: gdb-patches
Hi Eli,
> The patch for gdb.texinfo is okay with me.
Thanks.
> Btw, I don't see your assignment on file in the FSF records, unless
> you are Kazutaka Hirata kazu@hxi.com. (Not that such a tiny change
> needs an assignment, but still.)
Yes, I am the same person.
Kazu Hirata
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch] Turn on inaccessible-by-default by default.
2007-09-26 20:55 ` Kazu Hirata
@ 2007-09-26 21:05 ` Daniel Jacobowitz
0 siblings, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2007-09-26 21:05 UTC (permalink / raw)
To: gdb-patches
On Wed, Sep 26, 2007 at 04:55:15PM -0400, Kazu Hirata wrote:
> > Btw, I don't see your assignment on file in the FSF records, unless
> > you are Kazutaka Hirata kazu@hxi.com. (Not that such a tiny change
> > needs an assignment, but still.)
>
> Yes, I am the same person.
Also, Kazu is covered by CodeSourcery's corporate assignment.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
* Re: [patch] Turn on inaccessible-by-default by default.
2007-09-26 19:44 [patch] Turn on inaccessible-by-default by default Kazu Hirata
2007-09-26 20:42 ` Eli Zaretskii
@ 2007-10-11 17:36 ` Daniel Jacobowitz
1 sibling, 0 replies; 5+ messages in thread
From: Daniel Jacobowitz @ 2007-10-11 17:36 UTC (permalink / raw)
To: Kazu Hirata; +Cc: gdb-patches
On Wed, Sep 26, 2007 at 12:44:29PM -0700, Kazu Hirata wrote:
> Hi,
>
> Attached is a patch to turn on inaccessible-by-default by default if
> the user supplies the memory map.
>
> This prevents gdb from wandering into memory regions that are not
> defined when at least one memory region is defined.
>
> OK to apply?
>
> Kazu Hirata
>
> 2007-09-26 Kazu Hirata <kazu@codesourcery.com>
>
> * doc/gdb.texinfo: Mention that inaccessible-by-default is on
> by default.
> * memattr.c (inaccessible_by_default): Change the initial
> value to 1.
As no one has commented, this is OK.
--
Daniel Jacobowitz
CodeSourcery
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2007-10-11 17:34 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2007-09-26 19:44 [patch] Turn on inaccessible-by-default by default Kazu Hirata
2007-09-26 20:42 ` Eli Zaretskii
2007-09-26 20:55 ` Kazu Hirata
2007-09-26 21:05 ` Daniel Jacobowitz
2007-10-11 17:36 ` Daniel Jacobowitz
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox