fullname descriptor with -break-list

Andrew Cagney cagney@gnu.org
Mon Feb 7 15:22:00 GMT 2005


Bob Rossi wrote:
> On Mon, Feb 07, 2005 at 09:04:18AM +1300, Nick Roberts wrote:
> 
>>I am trying to migrate the GDB user interface in Emacs from annotations to
>>MI. To help with this process, I would like to add the fullname, as used in
>>-file-list-exec-source-file and -file-list-exec-source-files, to the MI
>>command -break-list.
>>
>>i.e the example in the manual would look like:
>>
>>     -break-list
>>     ^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="1",type="breakpoint",disp="keep",enabled="y",
>>     addr="0x000100d0",func="main",file="hello.c",
>>     fullname="/home/nick/hello.c",line="5",cond="1",times="0",ignore="3"}]}
>>     ^^^^^^^^^^^^^^^^^^^^^^^^^^^^
>>
>>Would such a patch be acceptable?
> 
> 
> I believe it would be, when I added the -file-list commands, I was asked
> to add the information to the breakpoints and to the stack command.
> 
> I didn't do it simply for time reasons. You can use the
> symtab_to_fullname or psymtab_to_fullname functions to get the data you
> need.
> 
> In the long run, it would probably be usefull to output the fullname
> everywhere that "file" is used.

Sounds good.

Andrew




More information about the Gdb mailing list