public inbox for gdb-prs@sourceware.org help / color / mirror / Atom feed
From: "marc.khouzam at ericsson dot com" <sourceware-bugzilla@sourceware.org> To: gdb-prs@sourceware.org Subject: [Bug breakpoints/15292] New: Pending dprintf don't work Date: Thu, 21 Mar 2013 17:20:00 -0000 [thread overview] Message-ID: <bug-15292-4717@http.sourceware.org/bugzilla/> (raw) 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 <PENDING> 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 <PENDING> 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.
next reply other threads:[~2013-03-21 17:20 UTC|newest] Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top 2013-03-21 17:20 marc.khouzam at ericsson dot com [this message] 2013-03-24 5:41 ` [Bug breakpoints/15292] " teawater at gmail dot com 2013-04-12 2:40 ` teawater at gmail dot com 2013-04-12 8:23 ` palves at redhat dot com 2014-01-10 15:51 ` marc.khouzam at ericsson dot com
Reply instructions: You may reply publicly to this message via plain-text email using any one of the following methods: * Save the following mbox file, import it into your mail client, and reply-to-all from there: mbox Avoid top-posting and favor interleaved quoting: https://en.wikipedia.org/wiki/Posting_style#Interleaved_style * Reply using the --to, --cc, and --in-reply-to switches of git-send-email(1): git send-email \ --in-reply-to=bug-15292-4717@http.sourceware.org/bugzilla/ \ --to=sourceware-bugzilla@sourceware.org \ --cc=gdb-prs@sourceware.org \ /path/to/YOUR_REPLY https://kernel.org/pub/software/scm/git/docs/git-send-email.html * If your mail client supports setting the In-Reply-To header via mailto: links, try the mailto: linkBe sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions for how to clone and mirror all data and code used for this inbox; as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).