public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
From: "marc.khouzam at ericsson dot com" <sourceware-bugzilla@sourceware.org>
To: gdb-prs@sourceware.org
Subject: [Bug breakpoints/15179] Dprintf interrupts execution when condition is false
Date: Thu, 21 Mar 2013 17:05:00 -0000	[thread overview]
Message-ID: <bug-15179-4717-Vp02mbylZX@http.sourceware.org/bugzilla/> (raw)
In-Reply-To: <bug-15179-4717@http.sourceware.org/bugzilla/>

http://sourceware.org/bugzilla/show_bug.cgi?id=15179

--- Comment #6 from Marc Khouzam <marc.khouzam at ericsson dot com> 2013-03-21 17:05:38 UTC ---
(In reply to comment #5)
> (gdb) dprintf 8,"welcome\n"
> Dprintf 1 at 0x4005b1: file 2.c, line 8.
> (gdb) r

You didn't set a condition :)

(In reply to comment #2)
> (gdb) dprintf 8,"welcome\n"
> Dprintf 1 at 0x804855f: file loopfirst.cc, line 8.
>
> (gdb) cond 1 i>5    <----------- Don't forget this
>
> (gdb) info b
> Num     Type           Disp Enb Address    What
> 1       dprintf        keep y   0x0804855f in main() at loopfirst.cc:8
>         stop only if i>5
>         printf "welcome\n"
>         continue
>
> (gdb) r

-- 
Configure bugmail: http://sourceware.org/bugzilla/userprefs.cgi?tab=email
------- You are receiving this mail because: -------
You are on the CC list for the bug.


  parent reply	other threads:[~2013-03-21 17:05 UTC|newest]

Thread overview: 13+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2013-02-23 13:26 [Bug breakpoints/15179] New: " marc.khouzam at ericsson dot com
2013-02-23 13:42 ` [Bug breakpoints/15179] " marc.khouzam at ericsson dot com
2013-02-24 13:34 ` marc.khouzam at ericsson dot com
2013-02-27 13:54 ` qiyao at gcc dot gnu.org
2013-02-27 19:06 ` marc.khouzam at ericsson dot com
2013-03-21  9:00 ` teawater at gmail dot com
2013-03-21 17:05 ` marc.khouzam at ericsson dot com [this message]
2013-03-22  3:03 ` teawater at gmail dot com
2013-03-22  3:06 ` teawater at gmail dot com
2013-03-26  7:00 ` teawater at gmail dot com
2013-03-27 22:49 ` marc.khouzam at ericsson dot com
2013-06-28 13:57 ` marc.khouzam at ericsson dot com
2014-01-10 16:22 ` marc.khouzam at ericsson dot com

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=bug-15179-4717-Vp02mbylZX@http.sourceware.org/bugzilla/ \
    --to=sourceware-bugzilla@sourceware.org \
    --cc=gdb-prs@sourceware.org \
    /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;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).