GDB commands and GDB protocol
Daniel Jacobowitz
drow@false.org
Thu Oct 11 12:53:00 GMT 2007
On Thu, Oct 11, 2007 at 02:41:17PM +0200, Guillaume MENANT wrote:
> I've found this page :
> http://sources.redhat.com/gdb/onlinedocs/gdb_33.html#SEC679
> I still have some questions :
> - We just have to handle commands from the page above to manage the GDB
> protocol (in TCP) ? The is no specific encapsulation ?
The Overview at the top of that page describes the encapsulation.
> - How does Eclipse will know internal registers of my chip (registers like sp,
> pc, ...) ? Using qXfer and a XML file ? Is it mandatory for a debugger to know
> internal registers ?
The standard registers, like sp and pc, Eclipse will get the names
directly from GDB. It's only if you have extra board-specific or
core-specific registers that you need to deal with XML descriptions.
--
Daniel Jacobowitz
CodeSourcery
More information about the Gdb
mailing list