summaryrefslogtreecommitdiff
path: root/gdb/breakpoint.c
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 /gdb/breakpoint.c
parent79e052eafd9d4cf37eece125033771391b1e71b7 (diff)
downloadbinutils-gdb-35a487f1867298e312959fb2e78ef4faf2a66b16.tar.gz
* 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/breakpoint.c')
-rw-r--r--gdb/breakpoint.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/breakpoint.c b/gdb/breakpoint.c
index 2203f6ee3d6..f8e3cef88b4 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)
{