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

Re: breaking on open(2) on linux


 > > The breakpoint is probably being set elsewhere, e.g. open in libpthread.so
 > 
 > Nowadays (6.8) you'll get a breakpoint at every copy so it should work
 > OK.

Do you mean multiple breakpoint locations?  With 6.8.50.20080411-cvs I just get
one address: the one in libpthread.so.

My `solution' was wrong though, as the symbols for libpthread.so just get
read when a breakpoint is set on open.

For some reason in GDB 6.6, a pending breakpoint gets resolved in libc.so
while in 6.8.50.20080411-cvs it gets resolved in  libpthread.so.

-- 
Nick                                           http://www.inet.net.nz/~nickrob


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