This is the mail archive of the gdb@sources.redhat.com 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]

gdb and breakpoints in shared library


Hi all,

Following situation in gdb 5.3 on Linux glibc 2.3

load a program with dynamically loaded shared libraries (using dlopen)

do some navigation and end up in some source location in some shared library

set a breakpoint on that location (in that shared library)

rerun the program (restart it)

gdb then produces some 'errors' not being able to set a shared library.
This goes on until the library again gets loaded using dlopen.  Then the 
breakpoint can be set.

However Often the breakpoint gets lost and is not set OR is not active.

so 2 questions.

Why the error message.  If the breakpoint cannot be set ... ok that's it ...
Why does gdb looses shlib breakpoints   Is there a 'max errors' count that
once the number of errors is exceeded completely ignores the breakpoint ?

Comments ?

W


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