This is the mail archive of the gdb-prs@sourceware.org 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]

[Bug breakpoints/15179] Dprintf interrupts execution when condition is false


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.


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