This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: Bug with lists in tables in ui-out.c
- From: Andrew Cagney <ac131313 at cygnus dot com>
- To: Jim Ingham <jingham at apple dot com>
- Cc: GDB Patches <gdb-patches at sources dot redhat dot com>
- Date: Thu, 06 Dec 2001 18:06:01 -0500
- Subject: Re: Bug with lists in tables in ui-out.c
- References: <B833BC94.3792%jingham@apple.com>
> Andrew,
>
> The example is the table that "info break" makes. In FSF gdb, you only emit
> table headers for the first 6 columns, and if there are commands, they are
> added to the bkpt tuple (and so formally should be other columns in the
> table), but there is no equivalent entry in the header list. The table code
> doesn't require that all data in a table row have an equivalent header
> entry, so this works, but this is just a bit bogus... Somebody here got
> annoyed by this and added table headers for the other columns - mostly so
> users could see what the columns mean. In this case, the list that is being
> added to the table is the list of breakpoint commands.
Ah, yes. Ok, got it (head butts table). I think I'll check it in
slightly different though - add the code that advances the headings to
the ..._begin() instead of ..._end() function. I think that will sit
better with the other logic already handling tables.
Make sense?
Andrew