Breakpoint not hit because of function pointers or something similar

Tom Tromey tromey@redhat.com
Tue May 11 18:59:00 GMT 2010


>>>>> "Anton" == Anton MOUKHARSKI <anton.moukharski@cea.fr> writes:

Anton> Platform is Mandriva Linux release 2008.0 (Official) for i586 Kernel
Anton> 2.6.22.19-desktop-2mdv. Gdb version is GNU gdb 6.6-3.1mdv2008.0 (Mandriva
Anton> Linux release 2008.0).

6.6 is rather old.  I would suggest upgrading first.

Anton> Again, the problem seems to be that the function in which I put
Anton> my breakpoint is called via a function-pointer (ip2 in the code
Anton> below); the function which is called below the call of
Anton> "process.execute()" is determined at execution time.

We will need a small, self-contained example showing the problem.

To my knowledge, gdb does not get confused if functions are called via
pointers.  That works just fine when I am debugging gdb itself, for
instance.

Tom



More information about the Gdb mailing list