From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 16342 invoked by alias); 6 Apr 2009 20:07:52 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 16325 invoked by uid 22791); 6 Apr 2009 20:07:50 -0000 X-SWARE-Spam-Status: No, hits=-0.7 required=5.0 tests=AWL,BAYES_00,RCVD_IN_JMF_BL X-Spam-Check-By: sourceware.org Message-Id: <5961E381-9F09-4ADE-80DE-9BCCB02E802B@sybase.com> From: Ray Ruvinskiy To: archer@sourceware.org Mime-Version: 1.0 (Apple Message framework v930.3) Subject: A few python/pretty-printing questions Date: Mon, 06 Apr 2009 20:07:00 -0000 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset=US-ASCII; format=flowed; delsp=yes X-SW-Source: 2009-q2/txt/msg00018.txt.bz2 Hello, I've been trying out Archer's python and pretty-printing functionality, and I have a few questions: - Can pretty-printers be toggled on a case-by-case basis? If I have a printer enabled for a certain type, can I still look at the raw structure? - Is it possible to export convenience variables from within the python layer so that they would be visible from the gdb prompt? - Suppose I want to pass an expression of the form 'this- >inner1.inner2.leaf' to a python command, is there a quick way to look up the gdb.Value corresponding to the name, or do I have to first look up 'this' and then index into the dictionary? Thanks, Ray