From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 21951 invoked by alias); 16 Nov 2009 17:42:04 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 21941 invoked by uid 22791); 16 Nov 2009 17:42:04 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org From: Tom Tromey To: sam shepperd Cc: archer@sourceware.org Subject: Re: Access inferior values from a gdb.Command/gdb.Function References: <9a0bd7f70911122224s7a2da6cbm8586ac9255c3fd18@mail.gmail.com> <9a0bd7f70911130823t79d5323fw4a0336b0242ae828@mail.gmail.com> Reply-To: Tom Tromey Date: Mon, 16 Nov 2009 17:42:00 -0000 In-Reply-To: <9a0bd7f70911130823t79d5323fw4a0336b0242ae828@mail.gmail.com> (sam shepperd's message of "Fri, 13 Nov 2009 10:23:06 -0600") Message-ID: User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/23.1 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii X-SW-Source: 2009-q4/txt/msg00061.txt.bz2 >>>>> "sam" == sam shepperd writes: >> Is there any way to access the values of an inferior without passing >> them in explicitly as arguments to a gdb.Command / gdb.Function? sam> gdb.selected_frame().read_var() seems to work You can also use gdb.parse_and_eval. Tom