This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb python and 'complete'
- From: Daniel Jacobowitz <dan at codesourcery dot com>
- To: Jeroen Dobbelaere <jeroen dot dobbelaere at gmail dot com>
- Cc: gdb at sourceware dot org
- Date: Wed, 24 Mar 2010 13:16:04 -0400
- Subject: Re: gdb python and 'complete'
- References: <325e93671003240824t3e940773ned358335b9fe1f40@mail.gmail.com>
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