This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: Problems with function pointers in C++
- From: Keith Seitz <keiths at redhat dot com>
- To: Geert Vancompernolle <geert dot vancompernolle at gmail dot com>
- Cc: Insight Foum <insight at sourceware dot org>
- Date: Sun, 17 Feb 2008 11:37:21 -0800
- Subject: Re: Problems with function pointers in C++
- References: <47B84753.1070905@gmail.com>
Geert Vancompernolle wrote:
However, when trying to use the same "S" command when the C++ function
pointers are handled, the debugger refuses to step into the functions
"DoIt" and "DoItMore" from the class TMyClass. Even stepping over the
call (using "N") does not work.
I have to put a breakpoint just after the calls (on the lines containing
the printf statements) and press "C" to continue debugging.
This is a bug in gdb. I've checked your test case against CVS HEAD, and
it can step into function pointers. Try a snapshot or build from CVS HEAD.
Keith