From c6f60bcd2c458714bd21da267719d55ba7e10736 Mon Sep 17 00:00:00 2001 From: Stephane Carrez Date: Mon, 23 Jul 2001 21:13:57 +0000 Subject: * tuiStack.c (tuiUpdateLocatorFilename): Use const char*. * tuiStack.h (tuiUpdateLocatorFilename): Update prototype. * tuiWin.c (_initialize_tuiWin): Don't cast table of enum in calls to add_set_enum_cmd. * tui.c (tui_show_source): New function. (tuiGetLowDisassemblyAddress): Use CORE_ADDR for newLow. (tui_switch_mode): Prep or deprep readline terminal; make sure the \n we return does not redo the last command. * tui.h (tui_show_source): Declare. (tui_out_new, tui_install_hooks, tui_remove_hooks): Likewise. (tui_active, tui_initialize_io, tui_initialize_readline): Likewise. --- gdb/tui/tuiWin.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'gdb/tui/tuiWin.c') diff --git a/gdb/tui/tuiWin.c b/gdb/tui/tuiWin.c index 509f590..024a295 100644 --- a/gdb/tui/tuiWin.c +++ b/gdb/tui/tuiWin.c @@ -317,7 +317,7 @@ Usage: w <#lines>\n"); /* Define the tui control variables. */ c = add_set_enum_cmd ("tui-border-kind", class_tui, - tui_border_kind_enums, (char*) &tui_border_kind, + tui_border_kind_enums, &tui_border_kind, "Set the kind of border for TUI windows.\n" "This variable controls the border of TUI windows:\n" "space use a white space\n" @@ -328,7 +328,7 @@ Usage: w <#lines>\n"); c = add_set_enum_cmd ("tui-border-mode", class_tui, - tui_border_mode_enums, (char*) &tui_border_mode, + tui_border_mode_enums, &tui_border_mode, "Set the attribute mode to use for the TUI window borders.\n" "This variable controls the attributes to use for the window borders:\n" "normal normal display\n" @@ -343,7 +343,7 @@ Usage: w <#lines>\n"); c = add_set_enum_cmd ("tui-active-border-mode", class_tui, - tui_border_mode_enums, (char*) &tui_active_border_mode, + tui_border_mode_enums, &tui_active_border_mode, "Set the attribute mode to use for the active TUI window border.\n" "This variable controls the attributes to use for the active window border:\n" "normal normal display\n" -- cgit v1.1