PATCH: Use null_frame_id instead of memset
Jim Blandy
jimb@codesourcery.com
Wed Nov 28 18:24:00 GMT 2007
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)
{
More information about the Gdb-patches
mailing list