From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 12907 invoked by alias); 17 Mar 2006 17:43:22 -0000 Received: (qmail 12896 invoked by uid 22791); 17 Mar 2006 17:43:21 -0000 X-Spam-Check-By: sourceware.org Received: from nevyn.them.org (HELO nevyn.them.org) (66.93.172.17) by sourceware.org (qpsmtpd/0.31.1) with ESMTP; Fri, 17 Mar 2006 17:43:20 +0000 Received: from drow by nevyn.them.org with local (Exim 4.54) id 1FKIyp-0004NX-8m; Fri, 17 Mar 2006 12:43:15 -0500 Date: Fri, 17 Mar 2006 18:36:00 -0000 From: Daniel Jacobowitz To: Dave Korn Cc: rob@encodia.biz, gdb@sources.redhat.com Subject: Re: C++, "too few arguments in function call" error? Message-ID: <20060317174315.GA16517@nevyn.them.org> Mail-Followup-To: Dave Korn , rob@encodia.biz, gdb@sources.redhat.com References: <006d01c649b2$6171c490$a501a8c0@CAM.ARTIMI.COM> Mime-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <006d01c649b2$6171c490$a501a8c0@CAM.ARTIMI.COM> User-Agent: Mutt/1.5.8i X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2006-03/txt/msg00132.txt.bz2 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