This is the mail archive of the
insight@sourceware.org
mailing list for the Insight project.
Re: Problems with function pointers in C++
- From: Geert Vancompernolle <gvcompernolle at scarlet dot be>
- To: Keith Seitz <keiths at redhat dot com>
- Cc: Geert Vancompernolle <geert dot vancompernolle at gmail dot com>, Insight Foum <insight at sourceware dot org>
- Date: Mon, 18 Feb 2008 05:02:41 +0100
- Subject: Re: Problems with function pointers in C++
- References: <47B84753.1070905@gmail.com> <47B88CF1.9090905@redhat.com>
Keith Seitz wrote:
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
Good news to read this. Is it possible to tell me what to do to get the
snapshot? I've never done this before, I've always downloaded the
sources from Sourceforge and compiled these.
I have TortoiseSVN running on Windows, if that could be a starting point...
*Best rgds,
Geert
*