From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 15714 invoked by alias); 30 May 2012 18:10:42 -0000 Received: (qmail 15690 invoked by uid 22791); 30 May 2012 18:10:41 -0000 X-SWARE-Spam-Status: No, hits=-1.0 required=5.0 tests=AWL,BAYES_00,T_RP_MATCHES_RCVD X-Spam-Check-By: sourceware.org Received: from sandstone.cs.wisc.edu (HELO sandstone.cs.wisc.edu) (128.105.6.39) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 30 May 2012 18:10:28 +0000 Received: from hank.cs.wisc.edu (hank.cs.wisc.edu [128.105.181.52]) by sandstone.cs.wisc.edu (8.14.1/8.14.1) with ESMTP id q4UIARop008184 for ; Wed, 30 May 2012 13:10:28 -0500 Message-ID: <4FC66293.5040908@cs.wisc.edu> Date: Wed, 30 May 2012 18:10:00 -0000 From: Evan Driscoll User-Agent: Mozilla/5.0 (X11; U; Linux i686 (x86_64); en-US; rv:1.9.2.17) Gecko/20110414 Thunderbird/3.1.10 MIME-Version: 1.0 To: gdb@sourceware.org Subject: Pythons scripting API question Content-Type: text/plain; charset=ISO-8859-1; format=flowed Content-Transfer-Encoding: 7bit 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: 2012-05/txt/msg00142.txt.bz2 Hi, I'd like to get a list of the local variables in a frame, or at least the parameters. I'm looking through the documentation of the Python API, and not seeing how to do it. In some sense, I'm trying to write a command that behaves a bit like 'info locals', but outputs in a different format. (And, of course, I'd prefer not to parse that. There's also some other stuff I want to do as well.) I'm using GDB 7.4.1 with Python 2.7.1. Evan