This is the mail archive of the gdb@sourceware.org mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: gdb python and 'complete'


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]