Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Jim Ingham <jingham@apple.com>
To: gdb-patches@sources.redhat.com
Subject: Pending breakpoints & ignore
Date: Fri, 16 Apr 2004 01:07:00 -0000	[thread overview]
Message-ID: <85C3BC8E-8F42-11D8-8CF3-000A958F4C44@apple.com> (raw)

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


             reply	other threads:[~2004-04-16  1:07 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-04-16  1:07 Jim Ingham [this message]
2004-05-05 14:55 ` Andrew Cagney
2004-05-05 18:27   ` Jim Ingham
2004-05-05 20:20     ` Andrew Cagney

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=85C3BC8E-8F42-11D8-8CF3-000A958F4C44@apple.com \
    --to=jingham@apple.com \
    --cc=gdb-patches@sources.redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox