Mirror of the gdb mailing list
 help / color / mirror / Atom feed
From: Daniel Jacobowitz <drow@false.org>
To: Dave Korn <dave.korn@artimi.com>
Cc: rob@encodia.biz, gdb@sources.redhat.com
Subject: Re: C++, "too few arguments in function call" error?
Date: Fri, 17 Mar 2006 18:36:00 -0000	[thread overview]
Message-ID: <20060317174315.GA16517@nevyn.them.org> (raw)
In-Reply-To: <006d01c649b2$6171c490$a501a8c0@CAM.ARTIMI.COM>

On Fri, Mar 17, 2006 at 11:03:11AM -0000, Dave Korn wrote:
> 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?

That's pretty likely.  Rob, we probably can't help you with problems
involving C++ and MacOS X; Apple's highly patched GDB uses stabs, not
DWARF-2, and therefore represents debug information for methods very
differently.

-- 
Daniel Jacobowitz
CodeSourcery


  reply	other threads:[~2006-03-17 17:43 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2006-03-17  7:07 rob
2006-03-17 11:37 ` Dave Korn
2006-03-17 18:36   ` Daniel Jacobowitz [this message]
2006-03-17 22:02     ` rob
2006-03-17 19:06   ` rob
2006-03-18 10:18     ` Dave Korn

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=20060317174315.GA16517@nevyn.them.org \
    --to=drow@false.org \
    --cc=dave.korn@artimi.com \
    --cc=gdb@sources.redhat.com \
    --cc=rob@encodia.biz \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox