This is the mail archive of the gdb-patches@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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)
     {


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]