aboutsummaryrefslogtreecommitdiff
path: root/gdb/ui-out.c
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.c
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.c')
-rw-r--r--gdb/ui-out.c14
1 files changed, 9 insertions, 5 deletions
diff --git a/gdb/ui-out.c b/gdb/ui-out.c
index 8d60d60..bb7784c 100644
--- a/gdb/ui-out.c
+++ b/gdb/ui-out.c
@@ -135,7 +135,7 @@ pop_level (struct ui_out *uiout,
/* These are the default implementation functions */
static void default_table_begin (struct ui_out *uiout, int nbrofcols,
- const char *tblid);
+ int nr_rows, const char *tblid);
static void default_table_body (struct ui_out *uiout);
static void default_table_end (struct ui_out *uiout);
static void default_table_header (struct ui_out *uiout, int width,
@@ -209,7 +209,7 @@ struct ui_out *uiout = &def_uiout;
/* These are the interfaces to implementation functions */
static void uo_table_begin (struct ui_out *uiout, int nbrofcols,
- const char *tblid);
+ int nr_rows, const char *tblid);
static void uo_table_body (struct ui_out *uiout);
static void uo_table_end (struct ui_out *uiout);
static void uo_table_header (struct ui_out *uiout, int width,
@@ -256,6 +256,7 @@ static void init_ui_out_state (struct ui_out *uiout);
void
ui_out_table_begin (struct ui_out *uiout, int nbrofcols,
+ int nr_rows,
const char *tblid)
{
if (uiout->table_flag)
@@ -271,7 +272,7 @@ previous table_end.");
uiout->table_id = NULL;
clear_header_list (uiout);
- uo_table_begin (uiout, nbrofcols, uiout->table_id);
+ uo_table_begin (uiout, nbrofcols, nr_rows, uiout->table_id);
}
void
@@ -710,7 +711,9 @@ gdb_query (struct ui_out *uiout, int qflags, char *qprompt)
/* default gdb-out hook functions */
static void
-default_table_begin (struct ui_out *uiout, int nbrofcols, const char *tblid)
+default_table_begin (struct ui_out *uiout, int nbrofcols,
+ int nr_rows,
+ const char *tblid)
{
}
@@ -808,11 +811,12 @@ default_flush (struct ui_out *uiout)
void
uo_table_begin (struct ui_out *uiout, int nbrofcols,
+ int nr_rows,
const char *tblid)
{
if (!uiout->impl->table_begin)
return;
- uiout->impl->table_begin (uiout, nbrofcols, tblid);
+ uiout->impl->table_begin (uiout, nbrofcols, nr_rows, tblid);
}
void