This is the mail archive of the
gdb@sources.redhat.com
mailing list for the GDB project.
Re: Add fullname to breakpoint output
- From: Andrew Cagney <ac131313 at redhat dot com>
- To: Jim Ingham <jingham at apple dot com>
- Cc: gdb at sources dot redhat dot com
- Date: Mon, 14 Apr 2003 00:14:17 -0400
- Subject: Re: Add fullname to breakpoint output
- References: <540DA746-6790-11D7-958C-000A277A8808@apple.com>
Yes, this is a desirable goal. Have you thought about how to do this?
The best way I can think of is to have a new ui_out that builds up an intermediate representation for results that is easy to access randomly - making up real lists & dictionaries from the ui_out_field_xxx and list & table stuff. Then we could banish ui_out_text & friends to the CLI commands to take the whole result, pull bits out in the order they expected, and annotate them with text, newlines, etc, in order to make a nice display.
In practice, this will be gnarly to get right, but you could do it incrementally by getting the intermediate rep. ui_out working, then fix the CLI commands one by one by swapping in the new ui_out for those commands you had fixed, and using the old CLI one for the commands you hadn't gotten working...
I don't know that anything that complicated is needed. disasm.c worked
out pretty well.
Andrew