From: Jim Blandy Date: Wed, 28 Nov 2007 18:21:30 +0000 (+0000) Subject: * breakpoint.c (watch_command_1): When the watchpoint isn't local X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=35a487f1867298e312959fb2e78ef4faf2a66b16;p=binutils-gdb.git * breakpoint.c (watch_command_1): When the watchpoint isn't local to any frame, initialize watchpoint_frame using null_frame_id, not a memset. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 3244ea28302..d5a4fabbff7 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,9 @@ +2007-11-28 Jim Blandy + + * 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 * infrun.c (resume): Set right thread even if 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) {