aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.h
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-19 16:19:16 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-19 16:19:16 +0000
commitd63f1d40c66c4b61df93fe68e34ac18a3bcd1072 (patch)
treef6f82b34726c596898f9fdb666f1aad0b0213fd8 /gdb/ui-out.h
parentcb840a31ad6c4931be63584da61cfe1e3f311d83 (diff)
downloadgdb-d63f1d40c66c4b61df93fe68e34ac18a3bcd1072.zip
gdb-d63f1d40c66c4b61df93fe68e34ac18a3bcd1072.tar.gz
gdb-d63f1d40c66c4b61df93fe68e34ac18a3bcd1072.tar.bz2
* ui-out.c (ui_out_table_begin): Add parameter ``nr_rows''.
(default_table_begin): Ditto. * breakpoint.c (breakpoint_1): Pass nr_printable_breakpoints to ui_out_table_begin. Update everything.
Diffstat (limited to 'gdb/ui-out.h')
-rw-r--r--gdb/ui-out.h12
1 files changed, 7 insertions, 5 deletions
diff --git a/gdb/ui-out.h b/gdb/ui-out.h
index 3abf6ab..b302d84 100644
--- a/gdb/ui-out.h
+++ b/gdb/ui-out.h
@@ -84,12 +84,13 @@ extern struct cleanup *ui_out_begin_cleanup_end (struct ui_out *uiout,
enum ui_out_type level_type,
const char *id);
-/* A table can be considered a special tuple/list combination with
- the implied structure: ``table = { hdr = { header, ... } , body = [ {
- field, ... }, ... ] }'' */
+/* A table can be considered a special tuple/list combination with the
+ implied structure: ``table = { hdr = { header, ... } , body = [ {
+ field, ... }, ... ] }''. If NR_ROWS is negative then there is at
+ least one row. */
extern void ui_out_table_begin (struct ui_out *uiout, int nbrofcols,
- const char *tblid);
+ int nr_rows, const char *tblid);
extern void ui_out_table_header (struct ui_out *uiout, int width,
enum ui_align align, const char *colhdr);
@@ -191,7 +192,8 @@ extern void gdb_query (struct ui_out *uiout, int qflags, char *qprompt);
/* Type definition of all implementation functions. */
typedef void (table_begin_ftype) (struct ui_out * uiout,
- int nbrofcols, const char *tblid);
+ int nbrofcols, int nr_rows,
+ const char *tblid);
typedef void (table_body_ftype) (struct ui_out * uiout);
typedef void (table_end_ftype) (struct ui_out * uiout);
typedef void (table_header_ftype) (struct ui_out * uiout, int width,