aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.c
diff options
context:
space:
mode:
authorUlrich Weigand <uweigand@de.ibm.com>2011-02-28 15:21:21 +0000
committerUlrich Weigand <uweigand@de.ibm.com>2011-02-28 15:21:21 +0000
commit170b53b2b6ca83fe08123b53fad469ba8e92aed4 (patch)
treeb702af87ab0ae241089a219cd62eb989407a9427 /gdb/ui-out.c
parent81896e36e82ae1d86cdcdb011021860eb3fb7049 (diff)
downloadgdb-170b53b2b6ca83fe08123b53fad469ba8e92aed4.zip
gdb-170b53b2b6ca83fe08123b53fad469ba8e92aed4.tar.gz
gdb-170b53b2b6ca83fe08123b53fad469ba8e92aed4.tar.bz2
* breakpoint.c (wrap_indent_at_field): New function.
(print_breakpoint_location): Use it instead of WRAP_INDENT argument. Allocate ui_stream locally instead of using STB argument. (print_one_breakpoint_location): Update call. * ui-out.c (ui_out_query_field): New function. * ui-out.h (ui_out_query_field): Add prototype.
Diffstat (limited to 'gdb/ui-out.c')
-rw-r--r--gdb/ui-out.c22
1 files changed, 22 insertions, 0 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index 53ad963..72a34f8 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -1141,6 +1141,28 @@ ui_out_data (struct ui_out *uiout)
return uiout->data;
}
+/* Access table field parameters. */
+int
+ui_out_query_field (struct ui_out *uiout, int colno,
+ int *width, int *alignment, char **col_name)
+{
+ struct ui_out_hdr *hdr;
+
+ if (!uiout->table.flag)
+ return 0;
+
+ for (hdr = uiout->table.header_first; hdr; hdr = hdr->next)
+ if (hdr->colno == colno)
+ {
+ *width = hdr->width;
+ *alignment = hdr->alignment;
+ *col_name = hdr->col_name;
+ return 1;
+ }
+
+ return 0;
+}
+
/* Initalize private members at startup. */
struct ui_out *