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/20208] New: Error re-setting pending dprintf when re-running


https://sourceware.org/bugzilla/show_bug.cgi?id=20208

            Bug ID: 20208
           Summary: Error re-setting pending dprintf when re-running
           Product: gdb
           Version: HEAD
            Status: UNCONFIRMED
          Severity: normal
          Priority: P2
         Component: breakpoints
          Assignee: unassigned at sourceware dot org
          Reporter: simon.marchi at ericsson dot com
  Target Milestone: ---

I stumbled on this while debugging the program geany [1].  I tried to make a
small reproducer, but couldn't get it to work (or rather, not work).

I put a dprintf on dlopen.  It works the first time you "run".  On subsequent
runs, GDB gives the error "Error in re-setting breakpoint 1: Function "dlopen"
not defined.".

GDB version: 7.11.50.20160605-git

Here is a transcript of the gdb session:

$ gdb -nx /tmp/install/bin/geany 
Reading symbols from /tmp/install/bin/geany...done.
(gdb) dprintf dlopen, "dlopen %s\n", $rdi != 0 ? $rdi : "NULL"
Function "dlopen" not defined.
Make dprintf pending on future shared library load? (y or [n]) y
Dprintf 1 (dlopen, "dlopen %s\n", $rdi != 0 ? $rdi : "NULL") pending.
(gdb) r
Starting program: /tmp/install/bin/geany 
[Thread debugging using libthread_db enabled]
Using host libthread_db library "/usr/lib/libthread_db.so.1".
dlopen libc.so.6
dlopen NULL
dlopen NULL
dlopen libpthread.so.0
dlopen NULL
dlopen NULL
dlopen /usr/lib/gtk-2.0/2.10.0/engines/libadwaita.so
dlopen /usr/lib/gtk-2.0/2.10.0/engines/libpixmap.so
dlopen /usr/lib/gtk-2.0/modules/libcanberra-gtk-module.so
dlopen libvte.so
dlopen libXcursor.so.1
[New Thread 0x7fffe97db700 (LWP 27878)]

* Close the Geany window *

[Thread 0x7fffe97db700 (LWP 27878) exited]
[Inferior 1 (process 27871) exited normally]
(gdb) r
Starting program: /tmp/install/bin/geany 
Error in re-setting breakpoint 1: Function "dlopen" not defined.
...

[1] http://download.geany.org/geany-1.27.tar.gz

-- 
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]