This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
PATCH: Use null_frame_id instead of memset
- From: Jim Blandy <jimb at codesourcery dot com>
- To: gdb-patches at sourceware dot org
- Date: Wed, 28 Nov 2007 10:24:21 -0800
- Subject: PATCH: Use null_frame_id instead of memset
Committed as obvious.
gdb/ChangeLog:
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.
diff -r 282f05922ce6 gdb/breakpoint.c
--- a/gdb/breakpoint.c Wed Nov 28 10:14:27 2007 -0800
+++ b/gdb/breakpoint.c Wed Nov 28 10:15:39 2007 -0800
@@ -5996,7 +5996,7 @@ watch_command_1 (char *arg, int accessfl
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)
{