public inbox for gdb-prs@sourceware.org
help / color / mirror / Atom feed
* [Bug breakpoints/16465] New: -dprintf-insert does not store the string for pending dprintf
@ 2014-01-18 22:29 marc.khouzam at ericsson dot com
2014-01-18 22:30 ` [Bug breakpoints/16465] " marc.khouzam at ericsson dot com
` (3 more replies)
0 siblings, 4 replies; 5+ messages in thread
From: marc.khouzam at ericsson dot com @ 2014-01-18 22:29 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16465
Bug ID: 16465
Summary: -dprintf-insert does not store the string for pending
dprintf
Product: gdb
Version: 7.4
Status: NEW
Severity: normal
Priority: P2
Component: breakpoints
Assignee: unassigned at sourceware dot org
Reporter: marc.khouzam at ericsson dot com
Bug 15292 fixed pending dprintf for the CLI, but it seems they don't work
properly for the MI interface. What seems to happen is that the string to
print does not get stored so when the dprintf gets activated, it has nothing to
print.
Below is a session that compares pending dprintf using the CLI vs MI
interfaces:
> gdb.7.7 ~/runtime-TestDSF/myapp/Debug/myapp.exe
GNU gdb (GDB) 7.7.50.20140110-cvs
(gdb) interpreter-exec mi "-dprintf-insert -f mydll.c:1 \"hello\""
&"No source file named mydll.c.\n"
^done,bkpt={number="1",type="dprintf",disp="keep",enabled="y",addr="<PENDING>",pending="mydll.c:1",times="0",original-location="mydll.c:1"}
(gdb) dprintf mydll.c:2,"hello"
No source file named mydll.c.
Make dprintf pending on future shared library load? (y or [n]) y
Dprintf 2 (mydll.c:2,"hello") pending.
(gdb) info b
Num Type Disp Enb Address What
1 dprintf keep y <PENDING> mydll.c:1
2 dprintf keep y <PENDING> mydll.c:2,"hello"
(gdb) b 18
Breakpoint 3 at 0x400754: file ../src/myapp.c, line 18.
(gdb) r
Starting program: /home/lmckhou/runtime-TestDSF/myapp/Debug/myapp.exe
Breakpoint 3, main () at ../src/myapp.c:18
18 handle =
dlopen("/home/lmckhou/runtime-TestDSF/myLinuxDll/Debug/libmyLinuxDll",
RTLD_LAZY);
(gdb) n
Error in re-setting breakpoint 1: Format string required
19 if (!handle) {
(gdb) inf b
Num Type Disp Enb Address What
1 dprintf keep y 0x00007ffff7633560 in foo at ../src/mydll.c:1
2 dprintf keep y 0x00007ffff7633560 in foo at ../src/mydll.c:2
printf "hello"
3 breakpoint keep y 0x0000000000400754 in main at ../src/myapp.c:18
breakpoint already hit 1 time
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug breakpoints/16465] -dprintf-insert does not store the string for pending dprintf
2014-01-18 22:29 [Bug breakpoints/16465] New: -dprintf-insert does not store the string for pending dprintf marc.khouzam at ericsson dot com
@ 2014-01-18 22:30 ` marc.khouzam at ericsson dot com
2015-03-26 15:49 ` antoine.tremblay at ericsson dot com
` (2 subsequent siblings)
3 siblings, 0 replies; 5+ messages in thread
From: marc.khouzam at ericsson dot com @ 2014-01-18 22:30 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16465
Marc Khouzam <marc.khouzam at ericsson dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Version|7.4 |HEAD
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug breakpoints/16465] -dprintf-insert does not store the string for pending dprintf
2014-01-18 22:29 [Bug breakpoints/16465] New: -dprintf-insert does not store the string for pending dprintf marc.khouzam at ericsson dot com
2014-01-18 22:30 ` [Bug breakpoints/16465] " marc.khouzam at ericsson dot com
@ 2015-03-26 15:49 ` antoine.tremblay at ericsson dot com
2015-06-12 12:49 ` cvs-commit at gcc dot gnu.org
2015-06-12 12:53 ` antoine.tremblay at ericsson dot com
3 siblings, 0 replies; 5+ messages in thread
From: antoine.tremblay at ericsson dot com @ 2015-03-26 15:49 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16465
Antoine Tremblay <antoine.tremblay at ericsson dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
CC| |antoine.tremblay at ericsson dot c
| |om
Assignee|unassigned at sourceware dot org |antoine.tremblay at ericsson dot c
| |om
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug breakpoints/16465] -dprintf-insert does not store the string for pending dprintf
2014-01-18 22:29 [Bug breakpoints/16465] New: -dprintf-insert does not store the string for pending dprintf marc.khouzam at ericsson dot com
2014-01-18 22:30 ` [Bug breakpoints/16465] " marc.khouzam at ericsson dot com
2015-03-26 15:49 ` antoine.tremblay at ericsson dot com
@ 2015-06-12 12:49 ` cvs-commit at gcc dot gnu.org
2015-06-12 12:53 ` antoine.tremblay at ericsson dot com
3 siblings, 0 replies; 5+ messages in thread
From: cvs-commit at gcc dot gnu.org @ 2015-06-12 12:49 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16465
--- Comment #1 from cvs-commit at gcc dot gnu.org <cvs-commit at gcc dot gnu.org> ---
The master branch has been updated by Antoine Tremblay <hexa@sourceware.org>:
https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=98aa42ee02c56378cecb737d01c27adca36bf48f
commit 98aa42ee02c56378cecb737d01c27adca36bf48f
Author: Antoine Tremblay <antoine.tremblay@ericsson.com>
Date: Fri Jun 12 07:58:47 2015 -0400
Fix MI dprintf-insert not printing on a resolved pending location.
This patch fixes the "Format string required" error when trying to print
a dprintf on a now resolved, pending location when set via the MI interface
even if the format string is entered correctly.
This patch also adds a test case to check that issue called
mi-dprintf-pending.exp.
gdb/ChangeLog:
PR breakpoints/16465
* breakpoint.c (create_breakpoint): Save extra_string for
pending breakpoints.
gdb/testsuite/ChangeLog:
PR breakpoints/16465
* gdb.mi/mi-dprintf-pending.c: New file.
* gdb.mi/mi-dprintf-pending.exp: New test.
* gdb.mi/mi-dprintf-pendshr.c: New file.
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
* [Bug breakpoints/16465] -dprintf-insert does not store the string for pending dprintf
2014-01-18 22:29 [Bug breakpoints/16465] New: -dprintf-insert does not store the string for pending dprintf marc.khouzam at ericsson dot com
` (2 preceding siblings ...)
2015-06-12 12:49 ` cvs-commit at gcc dot gnu.org
@ 2015-06-12 12:53 ` antoine.tremblay at ericsson dot com
3 siblings, 0 replies; 5+ messages in thread
From: antoine.tremblay at ericsson dot com @ 2015-06-12 12:53 UTC (permalink / raw)
To: gdb-prs
https://sourceware.org/bugzilla/show_bug.cgi?id=16465
Antoine Tremblay <antoine.tremblay at ericsson dot com> changed:
What |Removed |Added
----------------------------------------------------------------------------
Status|NEW |RESOLVED
Resolution|--- |FIXED
--- Comment #2 from Antoine Tremblay <antoine.tremblay at ericsson dot com> ---
Fixed by above commit
--
You are receiving this mail because:
You are on the CC list for the bug.
^ permalink raw reply [flat|nested] 5+ messages in thread
end of thread, other threads:[~2015-06-12 12:53 UTC | newest]
Thread overview: 5+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2014-01-18 22:29 [Bug breakpoints/16465] New: -dprintf-insert does not store the string for pending dprintf marc.khouzam at ericsson dot com
2014-01-18 22:30 ` [Bug breakpoints/16465] " marc.khouzam at ericsson dot com
2015-03-26 15:49 ` antoine.tremblay at ericsson dot com
2015-06-12 12:49 ` cvs-commit at gcc dot gnu.org
2015-06-12 12:53 ` antoine.tremblay at ericsson 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).