summaryrefslogtreecommitdiff
path: root/gdb/cli-out.c
diff options
context:
space:
mode:
authorAndrew Cagney <cagney@redhat.com>2001-06-21 15:39:54 +0000
committerAndrew Cagney <cagney@redhat.com>2001-06-21 15:39:54 +0000
commit38793a3cc3f4c1f259fa8eb922c5f63a0523663b (patch)
tree2afe87820b93c71bb46b89dc78786c94c2398c6a /gdb/cli-out.c
parent80eaa55fb2a9e4cb5746c98e7d575947d68e23e3 (diff)
downloadgdb-38793a3cc3f4c1f259fa8eb922c5f63a0523663b.tar.gz
* ui-out.h (ui_out_table_header): Add parameter ``col_name''.
(table_header_ftype): Ditto. * cli-out.c (cli_table_header): Update. * ui-out.c (ui_out_table_header): Update. (uo_table_header): Update. (default_table_header): Update. (append_header_to_list): Update. (struct ui_out_header): Add field ``col_name''. (append_header_to_list): Use xstrdup. Initialize col_name. * breakpoint.c (breakpoint_1): Pass COL_NAME to ui_out_table_header.
Diffstat (limited to 'gdb/cli-out.c')
-rw-r--r--gdb/cli-out.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/gdb/cli-out.c b/gdb/cli-out.c
index 367c92aaf1c..3e8e482f4d6 100644
--- a/gdb/cli-out.c
+++ b/gdb/cli-out.c
@@ -45,7 +45,7 @@ static void cli_table_begin (struct ui_out *uiout, int nbrofcols,
static void cli_table_body (struct ui_out *uiout);
static void cli_table_end (struct ui_out *uiout);
static void cli_table_header (struct ui_out *uiout, int width,
- enum ui_align alig,
+ enum ui_align alig, const char *col_name,
const char *colhdr);
static void cli_begin (struct ui_out *uiout, enum ui_out_type type,
int level, const char *lstid);
@@ -147,6 +147,7 @@ cli_table_end (struct ui_out *uiout)
void
cli_table_header (struct ui_out *uiout, int width, enum ui_align alignment,
+ const char *col_name,
const char *colhdr)
{
struct ui_out_data *data = ui_out_data (uiout);