This is the mail archive of the gdb-patches@sources.redhat.com 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]

Pending breakpoints & ignore


Oh, yes, one more thing. We probably need to copy the ignore count and thread over from the pended breakpoint to the actual breakpoint. This should work:

(gdb) break SomeNotLoadedFunction
(gdb) ignore $bpnum 5

but it doesn't right now.

Like:

2004-04-15 Jim Ingham <jingham@apple.com>
* breakpoint.c (create_breakpoints): Copy the ignore count and thread id
over from the pended breakpoint to the actual breakpoint.


Index: breakpoint.c
===================================================================
RCS file: /cvs/src/src/gdb/breakpoint.c,v
retrieving revision 1.166
diff -p -p -r1.166 breakpoint.c
*** breakpoint.c 8 Apr 2004 21:18:12 -0000 1.166
--- breakpoint.c 16 Apr 2004 01:02:00 -0000
*************** create_breakpoints (struct symtabs_and_l
*** 4937,4942 ****
--- 4937,4946 ----
be copied too. */
if (pending_bp->commands)
b->commands = copy_command_lines (pending_bp->commands);
+
+ /* We have to copy over the ignore_count and thread as well. */
+ b->ignore_count = pending_bp->ignore_count;
+ b->thread = pending_bp->thread;
}
mention (b);
}


Jim
--
Jim Ingham                                   jingham@apple.com
Developer Tools
Apple Computer


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