From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23361 invoked by alias); 28 Apr 2012 14:08:16 -0000 Received: (qmail 23344 invoked by uid 22791); 28 Apr 2012 14:08:15 -0000 X-SWARE-Spam-Status: No, hits=-2.9 required=5.0 tests=ALL_TRUSTED,AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from localhost (HELO sourceware.org) (127.0.0.1) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Sat, 28 Apr 2012 14:08:03 +0000 From: "mforce2 at gmail dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/14031] New: can't get gdb to break on printf Date: Sat, 28 Apr 2012 14:08:00 -0000 X-Bugzilla-Reason: CC X-Bugzilla-Type: new X-Bugzilla-Watch-Reason: None X-Bugzilla-Product: gdb X-Bugzilla-Component: breakpoints X-Bugzilla-Keywords: X-Bugzilla-Severity: normal X-Bugzilla-Who: mforce2 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: Message-ID: X-Bugzilla-URL: http://sourceware.org/bugzilla/ Auto-Submitted: auto-generated Content-Type: text/plain; charset="UTF-8" MIME-Version: 1.0 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 X-SW-Source: 2012-q2/txt/msg00058.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=14031 Bug #: 14031 Summary: can't get gdb to break on printf Product: gdb Version: 7.4 Status: NEW Severity: normal Priority: P2 Component: breakpoints AssignedTo: unassigned@sourceware.org ReportedBy: mforce2@gmail.com Classification: Unclassified I'm using gdb 7.4.1 on a less known distribution, Frugalware. When trying to set a breakpoint on a compiled program for printf it just fails and doesn't stop. Kernel is : Linux frugalware 3.3-fw4 #1 SMP PREEMPT Mon Apr 23 02:41:52 CEST 2012 x86_64 GNU/Linux Glibc is : 2.15 ( tested with 2.14.1 and same result ) and gcc is 4.7. Here is what gdb says when it starts: GNU gdb (GDB) 7.4.1 ................. This GDB was configured as "x86_64-frugalware-linux". Program is this small test one: #include using namespace std; int main() { printf("we have a printf\n"); return 0; } and it was compiled with : g++ -ggdb3 -o test main.cpp It works to set a breakpoint in for main but when trying to set one for printf I get: (gdb) break printf Function "printf" not defined. Make breakpoint pending on future shared library load? (y or [n]) y Breakpoint 1 (printf) pending. (gdb) run Starting program: /home/marius/proj/mariustry/test warning: Could not load shared library symbols for linux-vdso.so.1. Do you need "set solib-search-path" or "set sysroot"? Hello World! and a printf [Inferior 1 (process 1992) exited normally] -- 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.