summaryrefslogtreecommitdiff
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
commit45fee2496ed6790b3387cf9d712b2a051e3ba359 (patch)
tree325e92bb9b592faa7a3c979b36eaddc9fc8a51b9 /gdb/ui-out.c
parentcc07f2458a1be84d159d70846983a1c16ef67c77 (diff)
downloadgdb-45fee2496ed6790b3387cf9d712b2a051e3ba359.tar.gz
* 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 8d60d60ef7a..bb7784c88dc 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