From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 23442 invoked by alias); 29 Jun 2009 18:25:14 -0000 Mailing-List: contact archer-help@sourceware.org; run by ezmlm Sender: Precedence: bulk List-Post: List-Help: List-Subscribe: List-Id: Received: (qmail 23426 invoked by uid 22791); 29 Jun 2009 18:25:12 -0000 X-SWARE-Spam-Status: No, hits=-1.8 required=5.0 tests=AWL,BAYES_00,SPF_HELO_PASS,SPF_PASS X-Spam-Check-By: sourceware.org MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit From: Roland McGrath To: Tom Tromey Cc: Project Archer Subject: Re: inferior calls from python? In-Reply-To: Tom Tromey's message of Monday, 29 June 2009 12:19:49 -0600 References: <20090629004733.B4729420F6@magilla.sf.frob.com> Message-Id: <20090629182502.4F187420F6@magilla.sf.frob.com> Date: Mon, 29 Jun 2009 18:25:00 -0000 X-SW-Source: 2009-q2/txt/msg00201.txt.bz2 > Roland> Two possible approaches occur to me for this. One is to have a python > Roland> method to make the inferior call as a fine-grained operation. > > This is what we want to do, but we haven't gotten to it yet. Ok, good. > You might be able to abuse parse_and_eval somehow already -- but Paul > said on one of the gdb lists that he's made gdb crash this way. Paul pointed out abusing parse_and_eval using address literals. That is a doable kludge for many situations. But I still think the eval-with-local-convenience-vars-bound feature has merit in general. Thanks, Roland