From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 1069 invoked by alias); 18 Jun 2007 14:44:29 -0000 Received: (qmail 1059 invoked by uid 22791); 18 Jun 2007 14:44:28 -0000 X-Spam-Check-By: sourceware.org Received: from NaN.false.org (HELO nan.false.org) (208.75.86.248) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 18 Jun 2007 14:44:26 +0000 Received: from nan.false.org (localhost [127.0.0.1]) by nan.false.org (Postfix) with ESMTP id EE7C1982E4; Mon, 18 Jun 2007 14:44:23 +0000 (GMT) Received: from caradoc.them.org (22.svnf5.xdsl.nauticom.net [209.195.183.55]) by nan.false.org (Postfix) with ESMTP id CCA2E982E3; Mon, 18 Jun 2007 14:44:23 +0000 (GMT) Received: from drow by caradoc.them.org with local (Exim 4.67) (envelope-from ) id 1I0IT8-0005lJ-W1; Mon, 18 Jun 2007 10:44:39 -0400 Date: Mon, 18 Jun 2007 14:44:00 -0000 From: Daniel Jacobowitz To: Maik Beckmann Cc: gdb@sourceware.org Subject: Re: how to view content in stl vector Message-ID: <20070618144438.GA22051@caradoc.them.org> Mail-Followup-To: Maik Beckmann , gdb@sourceware.org References: <200706181453.21676.maikbeckmann@gmx.de> <20070618130635.GA9453@caradoc.them.org> <200706181634.31544.maikbeckmann@gmx.de> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <200706181634.31544.maikbeckmann@gmx.de> User-Agent: Mutt/1.5.15 (2007-04-09) X-IsSubscribed: yes Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org X-SW-Source: 2007-06/txt/msg00145.txt.bz2 On Mon, Jun 18, 2007 at 04:34:31PM +0200, Maik Beckmann wrote: > Am Montag, 18. Juni 2007 15:06:35 schrieb Daniel Jacobowitz: > > > You have to specify the instantiation manually > > hm, how is this be done? > I tried this > call foo(i) > but gdb responds > No symbol "foo" in current context. > > or is it about the mangled symbol from the disassembly? > 0x08048972 : call 0x8048b66 <_Z3fooIiEbT_> > > Doing > p _Z3fooIiEbT_(i) > crahes gdb. > ( btw. > p p _Z3fooIiEbT_ > gives "{bool (int)} 0x8048b66 (int)>" > ) > > How looks the line for calling foo correctly? I don't know. It may just be broken. I did provoke an amusing internal error trying to get it to work... (gdb) p 'int f'() /space/debian/gdb/build-area/gdb-6.6.dfsg/gdb/valops.c:2112: internal-error: find_oload_champ_namespace_loop: Assertion `new_oload_champ != -1' failed. A problem internal to GDB has been detected, -- Daniel Jacobowitz CodeSourcery