From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 22829 invoked by alias); 21 Mar 2013 09:00:19 -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 22790 invoked by uid 48); 21 Mar 2013 09:00:19 -0000 From: "teawater at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/15179] Dprintf interrupts execution when condition is false Date: Thu, 21 Mar 2013 09:00: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: teawater at gmail 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: CC 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/msg00479.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15179 teawater changed: What |Removed |Added ---------------------------------------------------------------------------- CC| |teawater at gmail dot com --- Comment #5 from teawater 2013-03-21 09:00:18 UTC --- (In reply to comment #4) > (In reply to comment #3) > > > I can't reproduce this problem on my Fedora 16 box and Lucid machine. > > > > I think the inferior stops because of this message "warning: Cannot call > > inferior functions, you have broken Linux kernel i386 NX (non-executable pages) > > support!". What is your linux kernel? It should be related to Bug 15187. > > I can reproduce on a Ubuntu 64bit where there is not "warning: Cannot call > inferior functions...". I can also reproduce it on an old SLED machine that > does not have that warning (although I used GDB 7.5 on the SLED machine). > > Maybe you can try running gdb -nx to make sure you don't have extra settings > that might affect this? I use a ubuntu 11.10 64bit. I cannot reproduce this issue too. gdb -nx ./a.out GNU gdb (GDB) 7.6.50.20130321-cvs Copyright (C) 2013 Free Software Foundation, Inc. License GPLv3+: GNU GPL version 3 or later This is free software: you are free to change and redistribute it. There is NO WARRANTY, to the extent permitted by law. Type "show copying" and "show warranty" for details. This GDB was configured as "x86_64-unknown-linux-gnu". For bug reporting instructions, please see: ... Reading symbols from /home/teawater/tmp/a.out...done. (gdb) l 1 #include 2 #include 3 4 int main() { 5 for (int i=0;i<20;i++) { 6 printf("hello"); 7 printf("friend\n"); 8 printf("home\n"); 9 sleep(1); 10 } (gdb) dprintf 8,"welcome\n" Dprintf 1 at 0x4005b1: file 2.c, line 8. (gdb) r Starting program: /home/teawater/tmp/a.out hellofriend welcome home hellofriend welcome home hellofriend welcome home hellofriend welcome home -- 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.