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
commit5e5e4abbed30d35d9da87837fe57fa364b2d5f2a (patch)
treef0236ddf7725b5c18cb67d9b9f9751a84fda4b71 /gdb/breakpoint.c
parent4872585663ab8714396dcf0b92d9dff0a1940a93 (diff)
downloadgdb-5e5e4abbed30d35d9da87837fe57fa364b2d5f2a.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)
{