This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

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....


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]