From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 7439 invoked by alias); 15 Sep 2009 17:36:17 -0000 Received: (qmail 7430 invoked by uid 22791); 15 Sep 2009 17:36:16 -0000 X-SWARE-Spam-Status: No, hits=-2.4 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from smtp-outbound-2.vmware.com (HELO smtp-outbound-2.vmware.com) (65.115.85.73) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Tue, 15 Sep 2009 17:36:06 +0000 Received: from jupiter.vmware.com (mailhost5.vmware.com [10.16.68.131]) by smtp-outbound-2.vmware.com (Postfix) with ESMTP id 9C9004D012; Tue, 15 Sep 2009 10:36:03 -0700 (PDT) Received: from [10.20.94.141] (msnyder-server.eng.vmware.com [10.20.94.141]) by jupiter.vmware.com (Postfix) with ESMTP id 9058EDC080; Tue, 15 Sep 2009 10:36:03 -0700 (PDT) Message-ID: <4AAFD08B.2030404@vmware.com> Date: Tue, 15 Sep 2009 17:36:00 -0000 From: Michael Snyder User-Agent: Thunderbird 1.5.0.12 (X11/20080411) MIME-Version: 1.0 To: "tromey@redhat.com" CC: Shadowcat , "gdb@sourceware.org" Subject: Re: Dereferencing pointers on "backtrace full" References: <4AAE192E.9050803@phasethrough.com> In-Reply-To: Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2009-09/txt/msg00206.txt.bz2 Tom Tromey wrote: >>>>>> "Shadowcat" == Shadowcat writes: > > Shadowcat> Is there any way for GDB to do this? I'd like to be able to > Shadowcat> type "bt full" and get, at a quick glance, the exact values > Shadowcat> of all the pointers referenced by local variables. It would > Shadowcat> make things a lot easier in a lot of situations. > > There is no built-in way to do this that I know of. > > You might be able to do it using Python scripting, in CVS GDB. I am not > certain... we have a "backtrace" written purely in Python on the archer > python branch, but offhand I don't recall whether all the infrastructure > bits needed for this have been pushed upstream yet. Using the old-style gdb scripting language: while (1) info locals up end