From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 6797 invoked by alias); 24 Mar 2010 17:16:14 -0000 Received: (qmail 6786 invoked by uid 22791); 24 Mar 2010 17:16:13 -0000 X-SWARE-Spam-Status: No, hits=-2.5 required=5.0 tests=AWL,BAYES_00 X-Spam-Check-By: sourceware.org Received: from mail.codesourcery.com (HELO mail.codesourcery.com) (38.113.113.100) by sourceware.org (qpsmtpd/0.43rc1) with ESMTP; Wed, 24 Mar 2010 17:16:08 +0000 Received: (qmail 26310 invoked from network); 24 Mar 2010 17:16:07 -0000 Received: from unknown (HELO caradoc.them.org) (dan@127.0.0.2) by mail.codesourcery.com with ESMTPA; 24 Mar 2010 17:16:07 -0000 Date: Wed, 24 Mar 2010 17:16:00 -0000 From: Daniel Jacobowitz To: Jeroen Dobbelaere Cc: gdb@sourceware.org Subject: Re: gdb python and 'complete' Message-ID: <20100324171559.GA9778@caradoc.them.org> Mail-Followup-To: Jeroen Dobbelaere , gdb@sourceware.org References: <325e93671003240824t3e940773ned358335b9fe1f40@mail.gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <325e93671003240824t3e940773ned358335b9fe1f40@mail.gmail.com> User-Agent: Mutt/1.5.20 (2009-06-14) 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-03/txt/msg00197.txt.bz2 On Wed, Mar 24, 2010 at 04:24:16PM +0100, Jeroen Dobbelaere wrote: > Now, the 'complete' command is indeed retrieving all the member > functions, but it will output them in the terminal in stead of feeding > it back to 'member_list'. > > Is there a way to redirect the output, so that the python program can > investigate it ? I ended up having to log gdb output to a file and parse the file from Python. But I think there's a clear argument that there should be a generic way to get CLI output - and maybe more specific Python routines for each command, e.g. a direct function for "complete". -- Daniel Jacobowitz CodeSourcery