diff options
author | Jim Blandy <jimb@codesourcery.com> | 2007-11-28 18:21:30 +0000 |
---|---|---|
committer | Jim Blandy <jimb@codesourcery.com> | 2007-11-28 18:21:30 +0000 |
commit | 35a487f1867298e312959fb2e78ef4faf2a66b16 (patch) | |
tree | ad920fb321b97929ba03d1ef708b440a9f33c0ea /gdb | |
parent | 79e052eafd9d4cf37eece125033771391b1e71b7 (diff) | |
download | gdb-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.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/breakpoint.c | 2 |
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) { |