From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15463 invoked by alias); 21 Mar 2013 17:20:50 -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 15437 invoked by uid 48); 21 Mar 2013 17:20:50 -0000 From: "marc.khouzam at ericsson dot com" To: gdb-prs@sourceware.org Subject: [Bug breakpoints/15292] New: Pending dprintf don't work Date: Thu, 21 Mar 2013 17:20: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: 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: 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/msg00488.txt.bz2 http://sourceware.org/bugzilla/show_bug.cgi?id=15292 Bug #: 15292 Summary: Pending dprintf don't work Product: gdb Version: HEAD Status: NEW Severity: normal Priority: P2 Component: breakpoints AssignedTo: unassigned@sourceware.org ReportedBy: marc.khouzam@ericsson.com Classification: Unclassified Setting a dprintf that is marked PENDING will not properly become activated. > gdb.7.6 ~/runtime-TestDSF/myapp/Debug/myapp.exe GNU gdb (GDB) 7.6.50.20130318-cvs Reading symbols from /home/lmckhou/runtime-TestDSF/myapp/Debug/myapp.exe...done. (gdb) dprintf mydll.c:2,"h" No source file named mydll.c. Make dprintf pending on future shared library load? (y or [n]) y Dprintf 1 (mydll.c:2,"h") pending. (gdb) info b Num Type Disp Enb Address What 1 dprintf keep y mydll.c:2,"h" (gdb) start Temporary breakpoint 2 at 0x40074d: file ../src/myapp.c, line 15. Starting program: /home/lmckhou/runtime-TestDSF/myapp/Debug/myapp.exe Temporary breakpoint 2, main () at ../src/myapp.c:15 15 int i = 0; (gdb) n 18 handle = dlopen("/home/lmckhou/runtime-TestDSF/myLinuxDll/Debug/libmyLinuxDll", RTLD_LAZY); (gdb) n 19 if (!handle) { (gdb) info b Num Type Disp Enb Address What 1 dprintf keep y 0x00007ffff7633560 in foo at ../src/mydll.c:2 (gdb) or > gdb.7.5 ~/runtime-TestDSF/myapp/Debug/myapp.exe GNU gdb (GDB) 7.5.1 Reading symbols from /home/lmckhou/runtime-TestDSF/myapp/Debug/myapp.exe...done. (gdb) dprintf mydll.c:2,"h" No source file named mydll.c. Make dprintf pending on future shared library load? (y or [n]) y Dprintf 1 (mydll.c:2,"h") pending. (gdb) info b Num Type Disp Enb Address What 1 dprintf keep y mydll.c:2,"h" (gdb) start Temporary breakpoint 2 at 0x40074d: file ../src/myapp.c, line 15. Starting program: /home/lmckhou/runtime-TestDSF/myapp/Debug/myapp.exe Temporary breakpoint 2, main () at ../src/myapp.c:15 15 int i = 0; (gdb) n 18 handle = dlopen("/home/lmckhou/runtime-TestDSF/myLinuxDll/Debug/libmyLinuxDll", RTLD_LAZY); (gdb) n 19 if (!handle) { (gdb) info b Num Type Disp Enb Address What 1 dprintf keep y 0x00007ffff7633560 in foo at ../src/mydll.c:2 (agent printf) ,"h" (gdb) show dprintf-style The style of usage for dynamic printf is "gdb". -- 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.