This is the mail archive of the gdb@sources.redhat.com 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] |
From: Bob Rossi <bob@brasko.net> Date: August 10, 2004 1:14:40 PM PDT To: gdb@sources.redhat.com Subject: GDB/XMI (XML Machine Interface)
Hi,
As most of you know, I have been writing a front end to GDB called CGDB.
However, for a while now, I have been a little disappointed with the MI
interface. In my RFC I have described the problems I have with MI and I
1.2 The Objective
The objective of GDB/XMI is to create a reliable protocol between GDB and the front end controlling GDB.
2. The GDB/XMI Overview
2.1 Passing Information between GDB and the front end
All information passed between GDB and the front end is done in the form of an XML document. Each XMI command, generates an XML document, and is sent from GDB to the front end.
2.5 Version Management
This model keeps front ends working with both old and new GDB's, which
is unfortunately a task that most front ends have to and should deal with.
3.3.2 GDB/MI Output
(gdb)
-stack-list-frames
^done,stack=[frame={level="0",addr="0x080483ef",func="short_func",file= "test.c",line="13"},frame={level="1",addr="0x080484f5",func="main",file ="test.c",line="54"}]
^done,stack=[frame={level="0",addr="0x080483ef",func="short_func", file="test.c",line="13"},frame={level="1",addr="0x080484f5", func="main",file="test.c",line="54"}]
3.3.3 The GDB/XMI Output
<?xml version="1.0"?> <stack> <frame> <level>0</level> <addr>0x080483ef</addr> <func>short_func</func> <file>test.c</file> <line>13</line> </frame> <frame> <level>1</level> <addr>0x080484f5</addr> <func>main</func> <file>test.c</file> <line>54</line> </frame> </stack>
Cheers, -ChrisF
Index Nav: | [Date Index] [Subject Index] [Author Index] [Thread Index] | |
---|---|---|
Message Nav: | [Date Prev] [Date Next] | [Thread Prev] [Thread Next] |