This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
RE: C++, "too few arguments in function call" error?
- From: "Dave Korn" <dave dot korn at artimi dot com>
- To: <rob at encodia dot biz>, <gdb at sources dot redhat dot com>
- Date: Fri, 17 Mar 2006 11:03:11 -0000
- Subject: RE: C++, "too few arguments in function call" error?
On 17 March 2006 03:57, rob@encodia.biz wrote:
> Hi all,
>
> I'm using GDB 6.1 on Mac OS X to debug a C++ program. Occasionally,
> when I try to call an object's member function I get this error:
>
> (gdb) p set1.begin()
> too few arguments in function call
>
> In this case "set1" is an STL std::set, but I get the same message
> sometimes with my own classes. Has anyone seen this before, or know
> what's going on, or a way around it?
This is a total shot in the dark, but maybe something's gone wrong and it's
expecting you to pass the this pointer as an explicit first argument rather
than an implicit one?
cheers,
DaveK
--
Can't think of a witty .sigline today....