This is the mail archive of the
gdb-prs@sourceware.org
mailing list for the GDB project.
[Bug breakpoints/15179] Dprintf interrupts execution when condition is false
- From: "marc.khouzam at ericsson dot com" <sourceware-bugzilla at sourceware dot org>
- To: gdb-prs at sourceware dot org
- Date: Thu, 21 Mar 2013 17:05:38 +0000
- Subject: [Bug breakpoints/15179] Dprintf interrupts execution when condition is false
- Auto-submitted: auto-generated
- References: <bug-15179-4717 at http dot sourceware dot 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.