This is the mail archive of the
mailing list for the GDB project.
Re: breaking on open(2) on linux
On Sun, Apr 13, 2008 at 08:55:55PM +1200, Nick Roberts wrote:
> Do you mean multiple breakpoint locations? With 18.104.22.16880411-cvs I just get
> one address: the one in libpthread.so.
Indeed it does not seem to work:
#12 0x0000000000000000 in ?? ()
(gdb) i func ^open$
All functions matching regular expression "^open$":
(gdb) b open
Breakpoint 2 at 0x2aaaadc21a50
(gdb) i breakpoints
Num Type Disp Enb Address What
1 breakpoint del y <PENDING> main
2 breakpoint keep y 0x00002aaaadc21a50 <open>
Vladimir, can you see any reason this wouldn't work with multiple
minimal symbols? Maybe the multiple location support is entirely
in the partial/full symbol and line number based breakpoint support?