This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
[mi] Revised breakpoint table output
- To: GDB Discussion <gdb at sources dot redhat dot com>
- Subject: [mi] Revised breakpoint table output
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Mon, 11 Jun 2001 17:08:14 -0400
Hello,
Following on the revisions to the MI output, the breakpoint table, under
the list/tuple schema ends up looking like:
201-break-list
201^done,BreakpointTable={hdr=[{width="3",alignment="-1",colname="number",colhdr
="Num"},{width="14",alignment="-1",colname="type",colhdr="Type"},{width="4",alig
nment="-1",colname="disp",colhdr="Disp"},{width="3",alignment="-1",colname="enab
led",colhdr="Enb"},{width="10",alignment="-1",colname="addr",colhdr="Address"},{
width="40",alignment="2",colname="what",colhdr="What"}],body=[]}
666-break-list
666^done,BreakpointTable={hdr=[{width="3",alignment="-1",colname="number",colhdr
="Num"},{width="14",alignment="-1",colname="type",colhdr="Type"},{width="4",alig
nment="-1",colname="disp",colhdr="Disp"},{width="3",alignment="-1",colname="enab
led",colhdr="Enb"},{width="10",alignment="-1",colname="addr",colhdr="Address"},{
width="40",alignment="2",colname="what",colhdr="What"}],body=[bkpt={number="1",t
ype="breakpoint",disp="del",enabled="y",addr="0x01800ad0",func="main",file="/hom
e/scratch/MI/src/gdb/testsuite/gdb.mi/basics.c",line="32",times="0"},bkpt={numbe
r="2",type="breakpoint",disp="del",enabled="y",addr="0x01800a58",func="callee2",
file="/home/scratch/MI/src/gdb/testsuite/gdb.mi/basics.c",line="22",times="0"},b
kpt={number="3",type="breakpoint",disp="del",enabled="y",addr="0x01800a08",func=
"callee3",file="/home/scratch/MI/src/gdb/testsuite/gdb.mi/basics.c",line="15",ti
mes="0"}]}
To break it down:
BreakpointTable=
{ hdr=[ { heading info...}, ...],
body=[ { record }, .... ] }
I'm tempted to also include ``nbrofcols=...'' and nbrofrows=... on the
basis that the MI shouldn't be throwing any information away.
Andrew