aboutsummaryrefslogtreecommitdiff
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
commitb25959ec59e10f6956995cbf3bed1bbec7f36d5d (patch)
treee82fc5d7f301a0ca34f25bb3c6e4cefa25b4194b /gdb/cli-out.c
parent89084430cd9a100fb2a1f1ae515e137f42a24f0e (diff)
downloadgdb-b25959ec59e10f6956995cbf3bed1bbec7f36d5d.zip
gdb-b25959ec59e10f6956995cbf3bed1bbec7f36d5d.tar.gz
gdb-b25959ec59e10f6956995cbf3bed1bbec7f36d5d.tar.bz2
* 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 367c92a..3e8e482 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);