This is the mail archive of the gdb-prs@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

[Bug breakpoints/15292] New: Pending dprintf don't work


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.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]