From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7827 invoked by alias); 13 Dec 2002 06:29:00 -0000 Mailing-List: contact gdb-help@sources.redhat.com; run by ezmlm Precedence: bulk List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sources.redhat.com Received: (qmail 7816 invoked from network); 13 Dec 2002 06:29:00 -0000 Received: from unknown (HELO tomts7-srv.bellnexxia.net) (209.226.175.40) by sources.redhat.com with SMTP; 13 Dec 2002 06:29:00 -0000 Received: from ehville ([65.94.64.116]) by tomts7-srv.bellnexxia.net (InterMail vM.5.01.04.19 201-253-122-122-119-20020516) with SMTP id <20021213062859.VVSC20124.tomts7-srv.bellnexxia.net@ehville> for ; Fri, 13 Dec 2002 01:28:59 -0500 Message-ID: <002301c2a270$e82f3540$c11ffea9@ehville> From: "Jacques Le Normand" To: References: <3DDBEF02.A19FF34D@iol.unh.edu> <3DDC62F7.9040508@redhat.com> <3DEFEEB7.8030301@redhat.com> <1039136292.994.3.camel@prion> <3DEFF89D.8000405@redhat.com> <20021212231745.A32385@welcomehome.org> Subject: casting in gdb Date: Thu, 12 Dec 2002 22:29:00 -0000 MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 X-MSMail-Priority: Normal X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2600.0000 X-SW-Source: 2002-12/txt/msg00196.txt.bz2 how do you get gdb to cast to size_t? I realize that size_t is a typedef to unsigned long long or somesuch. A little background: when I'm debugging my vector v, gdb won't let me type v[0], instead = it says this: "One of the arguments you tried to pass to operator[] = could not be converted to what the funtion wants." I then looked up what operator[] took in the sgi docs and it said a = size_t. Anyone have any ideas? (I realize I can do p *(v._M_start+n) , but having a method for casting = would help me later on) --Jacques