This is the mail archive of the
mailing list for the GDB project.
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
Do you mean multiple breakpoint locations? With 18.104.22.16880411-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 22.214.171.12480411-cvs it gets resolved in libpthread.so.