This is the mail archive of the gdb-patches@sources.redhat.com 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: Bug with lists in tables in ui-out.c



> 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



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