This is the mail archive of the
gdb@sourceware.org
mailing list for the GDB project.
Re: gdb/mi or python interface for front end
- From: Joel Brobecker <brobecker at adacore dot com>
- To: Bob Rossi <bob at brasko dot net>
- Cc: gdb at sourceware dot org
- Date: Fri, 23 Aug 2013 07:07:47 -0700
- Subject: Re: gdb/mi or python interface for front end
- References: <20130823005118 dot GA8847 at bob-VirtualBox>
> I'm interested in improving the CGDB front end to GDB.
>
> I would like some advice. It currently uses annotate level 2
> for communication. Should I look into gdb/mi or should i look
> into scripting gdb with the python interface?
>
> Any pointers would be helpful.
I hope others who have more actual knowledge will answer, but
in case no one else does, my first reaction would be to look
into GDB/MI, because that's the interface that was designed
to be used by front ends. The Python API is getting very versatile,
but I don't know if it is going to provide everything you need
nor whether it'll be convenient to use. In particular, sending
commands, getting the output (with stdout and stderr separated),
etc.
--
Joel