aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorJim Blandy <jimb@codesourcery.com>2007-11-28 18:21:30 +0000
committerJim Blandy <jimb@codesourcery.com>2007-11-28 18:21:30 +0000
commit35a487f1867298e312959fb2e78ef4faf2a66b16 (patch)
treead920fb321b97929ba03d1ef708b440a9f33c0ea
parent79e052eafd9d4cf37eece125033771391b1e71b7 (diff)
downloadgdb-35a487f1867298e312959fb2e78ef4faf2a66b16.zip
gdb-35a487f1867298e312959fb2e78ef4faf2a66b16.tar.gz
gdb-35a487f1867298e312959fb2e78ef4faf2a66b16.tar.bz2
* breakpoint.c (watch_command_1): When the watchpoint isn't local
to any frame, initialize watchpoint_frame using null_frame_id, not a memset.
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/breakpoint.c2
2 files changed, 7 insertions, 1 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 3244ea2..d5a4fab 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,3 +1,9 @@
+2007-11-28 Jim Blandy <jimb@codesourcery.com>
+
+ * breakpoint.c (watch_command_1): When the watchpoint isn't local
+ to any frame, initialize watchpoint_frame using null_frame_id, not
+ a memset.
+
2007-11-28 Vladimir Prus <vladimir@codesourcery.com>
* infrun.c (resume): Set right thread even if
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 2203f6e..f8e3cef 100644
--- a/gdb/breakpoint.c
+++ b/gdb/breakpoint.c
@@ -5996,7 +5996,7 @@ watch_command_1 (char *arg, int accessflag, int from_tty)
if (frame)
b->watchpoint_frame = get_frame_id (frame);
else
- memset (&b->watchpoint_frame, 0, sizeof (b->watchpoint_frame));
+ b->watchpoint_frame = null_frame_id;
if (scope_breakpoint != NULL)
{