public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/15184] New: Cannot change dprintf style to agent for existing dprintfs
@ 2013-02-24 13:39 marc.khouzam at ericsson dot com
2013-04-19 11:59 ` [Bug breakpoints/15184] " teawater at gmail dot com
` (2 more replies)
0 siblings, 3 replies; 4+ messages in thread
From: marc.khouzam at ericsson dot com @ 2013-02-24 13:39 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15184
Bug #: 15184
Summary: Cannot change dprintf style to agent for existing
dprintfs
Product: gdb
Version: HEAD
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
AssignedTo: unassigned@sourceware.org
ReportedBy: marc.khouzam@ericsson.com
Classification: Unclassified
Updating the dprintf-style to 'agent' for existing dprintfs will cause: "May
only run agent-printf on the target" when it is time to print and it will
interrupt the inferior.
Here's a session showing the problem:
> gdb.7.6 ~/loopfirst
GNU gdb (GDB) 7.5.50.20130223-cvs
(gdb) l
1 #include <unistd.h>
2 #include <stdio.h>
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) target remote :9999
Remote debugging using :9999
Reading symbols from /lib/ld-linux.so.2...(no debugging symbols found)...done.
Loaded symbols for /lib/ld-linux.so.2
0x00110850 in ?? () from /lib/ld-linux.so.2
(gdb) dprintf 8,"welcome\n"
Dprintf 1 at 0x804855f: file loopfirst.cc, line 8.
(gdb) b 9
Breakpoint 2 at 0x804856b: file loopfirst.cc, line 9.
(gdb) info b
Num Type Disp Enb Address What
1 dprintf keep y 0x0804855f in main() at loopfirst.cc:8
printf "welcome\n"
continue
2 breakpoint keep y 0x0804856b in main() at loopfirst.cc:9
(gdb) c
Continuing.
welcome
Breakpoint 2, main () at loopfirst.cc:9
9 sleep(1);
(gdb) set dprintf-style agent
(gdb) info b
Num Type Disp Enb Address What
1 dprintf keep y 0x0804855f in main() at loopfirst.cc:8
breakpoint already hit 1 time
agent-printf "welcome\n"
2 breakpoint keep y 0x0804856b in main() at loopfirst.cc:9
breakpoint already hit 1 time
(gdb) c
Continuing.
May only run agent-printf on the target
(gdb) bt
#0 main () at loopfirst.cc:8
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug breakpoints/15184] Cannot change dprintf style to agent for existing dprintfs
2013-02-24 13:39 [Bug breakpoints/15184] New: Cannot change dprintf style to agent for existing dprintfs marc.khouzam at ericsson dot com
@ 2013-04-19 11:59 ` teawater at gmail dot com
2013-04-19 12:00 ` teawater at gmail dot com
2013-04-19 14:41 ` teawater at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: teawater at gmail dot com @ 2013-04-19 11:59 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15184
teawater <teawater at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |ASSIGNED
CC| |teawater at gmail dot com
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug breakpoints/15184] Cannot change dprintf style to agent for existing dprintfs
2013-02-24 13:39 [Bug breakpoints/15184] New: Cannot change dprintf style to agent for existing dprintfs marc.khouzam at ericsson dot com
2013-04-19 11:59 ` [Bug breakpoints/15184] " teawater at gmail dot com
@ 2013-04-19 12:00 ` teawater at gmail dot com
2013-04-19 14:41 ` teawater at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: teawater at gmail dot com @ 2013-04-19 12:00 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15184
teawater <teawater at gmail dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
AssignedTo|unassigned at sourceware |teawater at gmail dot com
|dot org |
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
* [Bug breakpoints/15184] Cannot change dprintf style to agent for existing dprintfs
2013-02-24 13:39 [Bug breakpoints/15184] New: Cannot change dprintf style to agent for existing dprintfs marc.khouzam at ericsson dot com
2013-04-19 11:59 ` [Bug breakpoints/15184] " teawater at gmail dot com
2013-04-19 12:00 ` teawater at gmail dot com
@ 2013-04-19 14:41 ` teawater at gmail dot com
2 siblings, 0 replies; 4+ messages in thread
From: teawater at gmail dot com @ 2013-04-19 14:41 UTC (permalink / raw)
To: gdb-prs
http://sourceware.org/bugzilla/show_bug.cgi?id=15184
--- Comment #1 from teawater <teawater at gmail dot com> 2013-04-19 14:41:42 UTC ---
http://sourceware.org/ml/gdb-patches/2013-04/msg00592.html
--
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.
^ permalink raw reply [flat|nested] 4+ messages in thread
end of thread, other threads:[~2013-04-19 14:41 UTC | newest]
Thread overview: 4+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2013-02-24 13:39 [Bug breakpoints/15184] New: Cannot change dprintf style to agent for existing dprintfs marc.khouzam at ericsson dot com
2013-04-19 11:59 ` [Bug breakpoints/15184] " teawater at gmail dot com
2013-04-19 12:00 ` teawater at gmail dot com
2013-04-19 14:41 ` teawater at gmail dot com
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).