From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 9119 invoked by alias); 21 Mar 2013 17:05:40 -0000 Mailing-List: contact gdb-prs-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-prs-owner@sourceware.org Received: (qmail 9086 invoked by uid 48); 21 Mar 2013 17:05:39 -0000 From: "marc.khouzam at ericsson dot com" 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 X-Bugzilla-Reason: CC X-Bugzilla-Type: changed X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: marc.khouzam at ericsson dot com X-Bugzilla-Status: NEW X-Bugzilla-Priority: P2 X-Bugzilla-Assigned-To: unassigned at sourceware dot org X-Bugzilla-Target-Milestone: --- X-Bugzilla-Changed-Fields: Message-ID: In-Reply-To: References: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 X-SW-Source: 2013-q1/txt/msg00487.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15179 --- Comment #6 from Marc Khouzam 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.