This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[PATCH] Titles for OS data types
- From: Stan Shebs <stanshebs at earthlink dot net>
- To: gdb-patches at sourceware dot org
- Cc: Vladimir Prus <vladimir at codesourcery dot com>
- Date: Tue, 26 Jun 2012 15:40:03 -0700
- Subject: [PATCH] Titles for OS data types
Per Vladimir's request in
http://sourceware.org/ml/gdb-patches/2012-06/msg00003.html , here is a
patch to Linux OS data that adds a new column "Title". Titles are
arbitrary strings just like the existing type and description columns,
but are informally understood to be short descriptions that are suitable
for menu items, window titles, etc, in a GUI like Eclipse. Since they
can clutter up command-line output, the "info os" command omits the column.
Filtering by looking for a column literally named "Title" is a bit hacky
but hard to do more cleanly, as "info os" is designed to mindlessly
repeat whatever platform-specific xfer code delivers up. Still, a
general mechanism of metadata for columns is certainly overkill for this
rather specialized case. I've also omitted a NEWS mention since it only
affects -info-os, which is itself new.
I'll commit this in a couple days if nobody has any objections.
Stan
stan@codesourcery.com
2012-06-26 Stan Shebs <stan@codesourcery.com>
* osdata.c (info_osdata_command): Filter out "Title" columns
from non-MI uses.
* common/linux-osdata.c (struct osdata_type): Add title field.
(osdata_table): Add titles to each entry.
(linux_command_xfer_osdata): Add a column for title data.
* gdb.texinfo (Miscellaneous GDB/MI Commands): Update -info-os
example, add note about title column.
Attachment:
mititle-patch-1
Description: Text document