From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 11433 invoked by alias); 22 Jan 2010 16:25:19 -0000 Received: (qmail 11416 invoked by uid 22791); 22 Jan 2010 16:25:17 -0000 X-SWARE-Spam-Status: No, hits=-2.6 required=5.0 tests=BAYES_00 X-Spam-Check-By: sourceware.org Received: from web56807.mail.re3.yahoo.com (HELO web56807.mail.re3.yahoo.com) (66.196.97.81) by sourceware.org (qpsmtpd/0.43rc1) with SMTP; Fri, 22 Jan 2010 16:25:13 +0000 Received: (qmail 52865 invoked by uid 60001); 22 Jan 2010 16:25:11 -0000 Message-ID: <557747.52347.qm@web56807.mail.re3.yahoo.com> Received: from [209.5.112.166] by web56807.mail.re3.yahoo.com via HTTP; Fri, 22 Jan 2010 08:25:11 PST Date: Fri, 22 Jan 2010 16:25:00 -0000 From: S Boucher Subject: How to get convenience variables in python? To: gdb@sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii 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: 2010-01/txt/msg00183.txt.bz2 I'd like to get to convenience variables without first having to print them. But currently, I have to do: gdb.execute("print argc") argc = gdb.history(0) With the annoying side effect that argc gets printed. It would be useful is to be able to do: gdb.execute("set $argc = argc") argc = gdb.convenience("$argc") __________________________________________________________________ Be smarter than spam. See how smart SpamGuard is at giving junk email the boot with the All-new Yahoo! Mail. Click on Options in Mail and switch to New Mail today or register for free at http://mail.yahoo.ca