From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7141 invoked by alias); 18 Jun 2007 15:28:09 -0000 Received: (qmail 7131 invoked by uid 22791); 18 Jun 2007 15:28:08 -0000 X-Spam-Check-By: sourceware.org Received: from mx2.suse.de (HELO mx2.suse.de) (195.135.220.15) by sourceware.org (qpsmtpd/0.31) with ESMTP; Mon, 18 Jun 2007 15:28:06 +0000 Received: from Relay2.suse.de (mail2.suse.de [195.135.221.8]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx2.suse.de (Postfix) with ESMTP id 82FAF2170D; Mon, 18 Jun 2007 17:28:03 +0200 (CEST) From: Andreas Schwab To: Maik Beckmann Cc: gdb@sourceware.org Subject: Re: how to view content in stl vector References: <20070618144438.GA22051@caradoc.them.org> <200706181657.05961.maikbeckmann@gmx.de> <200706181702.43269.maikbeckmann@gmx.de> X-Yow: .. I feel.. JUGULAR.. Date: Mon, 18 Jun 2007 15:28:00 -0000 In-Reply-To: <200706181702.43269.maikbeckmann@gmx.de> (Maik Beckmann's message of "Mon\, 18 Jun 2007 17\:02\:43 +0200") Message-ID: User-Agent: Gnus/5.110006 (No Gnus v0.6) Emacs/22.0.97 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-1 Content-Transfer-Encoding: 8bit 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/msg00148.txt.bz2 Maik Beckmann writes: > even better.... after I read you last mail entirely > > > 1. start and run gdb: > > 3. let gdb say what it has to say: > output 'bool foo' > {bool (int)} 0x8048b66 (int)> > > 4. call it like this: > p ({bool (int)} 0x8048b66)(i) > $1 = true (gdb) p ({bool(int)}'bool foo(int)')(i) Hello from foo $3 = true Andreas. -- Andreas Schwab, SuSE Labs, schwab@suse.de SuSE Linux Products GmbH, Maxfeldstraße 5, 90409 Nürnberg, Germany PGP key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5 "And now for something completely different."