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: MI -break-info command issues


On Tue, Jan 24, 2006 at 05:16:49PM +0300, Vladimir Prus wrote:
> 
> Hello!
> 
> Playing with MI -break-info command with gdb 6.4, I notice two issues.
> 
> 1. The command does not print the full name (i.e. absolute) of the file
> where the breakpoint is. That is pretty bad for integrating with GUIs. Did
> I miss some other command? Is there a way to get full name of the file?

You can use -file-list-exec-source-file and
-file-list-exec-source-files. However, I thought someone already added
the fullname to the breakpoint output. Try CVS. If they have not, this 
would be an obvious improvement and patches are welcome.

2. The output of the command looks like this:
> ^done,BreakpointTable={nr_rows="1",nr_cols="6",
> hdr=[{width="3",alignment="-1",col_name="number",colhdr="Num"}
> {width="14",alignment="-1",col_name="type",colhdr="Type"}
> {width="4",alignment="-1",col_name="disp",colhdr="Disp"}
> {width="3",alignment="-1",col_name="enabled",colhdr="Enb"}
> {width="10",alignment="-1",col_name="addr",colhdr="Address"}
> {width="40",alignment="2",col_name="what",colhdr="What"}],
> body=[bkpt={number="2",type="breakpoint",disp="keep",enabled="y",
> addr="0x08048464",func="main",file="main.cpp",line="6",times="1"}]}
> 
> What is the point of producing spreadsheet-like output with columns and
> column heading and column alignment? I'd expect that any GUI frontend will
> have some specific representation and just ignore that extra formatting.
> Why generate it at all?

I agree, this output has always been useless to me. I would be happy to
see it go away.

Bob Rossi


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