Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* Pending breakpoints & ignore
@ 2004-04-16  1:07 Jim Ingham
  2004-05-05 14:55 ` Andrew Cagney
  0 siblings, 1 reply; 4+ messages in thread
From: Jim Ingham @ 2004-04-16  1:07 UTC (permalink / raw)
  To: gdb-patches

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


^ permalink raw reply	[flat|nested] 4+ messages in thread

end of thread, other threads:[~2004-05-05 20:20 UTC | newest]

Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2004-04-16  1:07 Pending breakpoints & ignore Jim Ingham
2004-05-05 14:55 ` Andrew Cagney
2004-05-05 18:27   ` Jim Ingham
2004-05-05 20:20     ` Andrew Cagney

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox