diff options
Diffstat (limited to 'gdb/tui')
-rw-r--r-- | gdb/tui/tui-command.c | 1 | ||||
-rw-r--r-- | gdb/tui/tui-data.c | 4 | ||||
-rw-r--r-- | gdb/tui/tui-disasm.c | 1 | ||||
-rw-r--r-- | gdb/tui/tui-interp.c | 3 | ||||
-rw-r--r-- | gdb/tui/tui-layout.c | 5 | ||||
-rw-r--r-- | gdb/tui/tui-regs.c | 6 | ||||
-rw-r--r-- | gdb/tui/tui-stack.c | 4 | ||||
-rw-r--r-- | gdb/tui/tui-win.c | 10 | ||||
-rw-r--r-- | gdb/tui/tui-win.h | 3 | ||||
-rw-r--r-- | gdb/tui/tui-windata.c | 1 | ||||
-rw-r--r-- | gdb/tui/tui-wingeneral.c | 2 |
11 files changed, 32 insertions, 8 deletions
diff --git a/gdb/tui/tui-command.c b/gdb/tui/tui-command.c index 7ce04f31549..13afb65db70 100644 --- a/gdb/tui/tui-command.c +++ b/gdb/tui/tui-command.c @@ -26,6 +26,7 @@ #include "tui/tui-data.h" #include "tui/tui-win.h" #include "tui/tui-io.h" +#include "tui/tui-command.h" #include "gdb_curses.h" #include "gdb_string.h" diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 25190776dfb..655a5d09b1f 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -483,7 +483,7 @@ tui_init_generic_part (struct tui_gen_win_info *win) /* init_content_element(). */ -void +static void init_content_element (struct tui_win_element *element, enum tui_win_type type) { @@ -532,7 +532,7 @@ init_content_element (struct tui_win_element *element, } } -void +static void init_win_info (struct tui_win_info *win_info) { tui_init_generic_part (&win_info->generic); diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c index c079087e179..14f0496c311 100644 --- a/gdb/tui/tui-disasm.c +++ b/gdb/tui/tui-disasm.c @@ -35,6 +35,7 @@ #include "tui/tui-winsource.h" #include "tui/tui-stack.h" #include "tui/tui-file.h" +#include "tui/tui-disasm.h" #include "gdb_curses.h" diff --git a/gdb/tui/tui-interp.c b/gdb/tui/tui-interp.c index bf38aae3e0e..71f66560801 100644 --- a/gdb/tui/tui-interp.c +++ b/gdb/tui/tui-interp.c @@ -190,6 +190,9 @@ tui_command_loop (void *data) return; } +/* Provide a prototype to silence -Wmissing-prototypes. */ +extern initialize_file_ftype _initialize_tui_interp; + void _initialize_tui_interp (void) { diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index 3b6bb663fae..09fd0c3e89b 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -36,6 +36,7 @@ #include "tui/tui-win.h" #include "tui/tui-winsource.h" #include "tui/tui-disasm.h" +#include "tui/tui-layout.h" #include "gdb_string.h" #include "gdb_curses.h" @@ -375,6 +376,10 @@ tui_default_win_viewport_height (enum tui_win_type type, /* Function to initialize gdb commands, for tui window layout manipulation. */ + +/* Provide a prototype to silence -Wmissing-prototypes. */ +extern initialize_file_ftype _initialize_tui_layout; + void _initialize_tui_layout (void) { diff --git a/gdb/tui/tui-regs.c b/gdb/tui/tui-regs.c index b74ad15cca4..86a2457fc5e 100644 --- a/gdb/tui/tui-regs.c +++ b/gdb/tui/tui-regs.c @@ -36,6 +36,7 @@ #include "tui/tui-windata.h" #include "tui/tui-wingeneral.h" #include "tui/tui-file.h" +#include "tui/tui-regs.h" #include "reggroups.h" #include "valprint.h" @@ -416,7 +417,7 @@ tui_display_registers_from (int start_element_no) 'start_element_no' on 'start_line_no' until the end of the register content or the end of the display height. This function checks that we won't display off the end of the register display. */ -void +static void tui_display_reg_element_at_line (int start_element_no, int start_line_no) { @@ -604,6 +605,9 @@ tui_reg_command (char *args, int from_tty) help_list (tuireglist, "tui reg ", -1, gdb_stdout); } +/* Provide a prototype to silence -Wmissing-prototypes. */ +extern initialize_file_ftype _initialize_tui_regs; + void _initialize_tui_regs (void) { diff --git a/gdb/tui/tui-stack.c b/gdb/tui/tui-stack.c index e95bd083ad9..ccc9b9ffdb2 100644 --- a/gdb/tui/tui-stack.c +++ b/gdb/tui/tui-stack.c @@ -411,6 +411,10 @@ tui_show_frame_info (struct frame_info *fi) /* Function to initialize gdb commands, for tui window stack manipulation. */ + +/* Provide a prototype to silence -Wmissing-prototypes. */ +extern initialize_file_ftype _initialize_tui_stack; + void _initialize_tui_stack (void) { diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index 5ec56b69575..b101cdd5333 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -43,6 +43,7 @@ #include "tui/tui-source.h" #include "tui/tui-winsource.h" #include "tui/tui-windata.h" +#include "tui/tui-win.h" #include "gdb_curses.h" @@ -348,6 +349,10 @@ tui_get_cmd_list (void) /* Function to initialize gdb commands, for tui window manipulation. */ + +/* Provide a prototype to silence -Wmissing-prototypes. */ +extern initialize_file_ftype _initialize_tui_win; + void _initialize_tui_win (void) { @@ -803,17 +808,18 @@ tui_resize_all (void) } } - +#ifdef SIGWINCH /* SIGWINCH signal handler for the tui. This signal handler is always called, even when the readline package clears signals because it is set as the old_sigwinch() (TUI only). */ -void +static void tui_sigwinch_handler (int signal) { /* Say that a resize was done so that the readline can do it later when appropriate. */ tui_set_win_resized_to (TRUE); } +#endif /* Initializes SIGWINCH signal handler for the tui. */ void diff --git a/gdb/tui/tui-win.h b/gdb/tui/tui-win.h index 23630e6e18e..34cefb4c191 100644 --- a/gdb/tui/tui-win.h +++ b/gdb/tui/tui-win.h @@ -36,7 +36,6 @@ extern void tui_scroll (enum tui_scroll_direction, extern void tui_set_win_focus_to (struct tui_win_info *); extern void tui_resize_all (void); extern void tui_refresh_all_win (void); -extern void tui_sigwinch_handler (int); extern chtype tui_border_ulcorner; extern chtype tui_border_urcorner; @@ -55,6 +54,6 @@ extern void tui_initialize_win (void); extern void tui_update_gdb_sizes (void); /* Create or get the TUI command list. */ -struct cmd_list_element **tui_get_cmd_list (); +struct cmd_list_element **tui_get_cmd_list (void); #endif diff --git a/gdb/tui/tui-windata.c b/gdb/tui/tui-windata.c index f15cb843700..b852065973c 100644 --- a/gdb/tui/tui-windata.c +++ b/gdb/tui/tui-windata.c @@ -25,6 +25,7 @@ #include "tui/tui-data.h" #include "tui/tui-wingeneral.h" #include "tui/tui-regs.h" +#include "tui/tui-windata.h" #include "gdb_string.h" #include "gdb_curses.h" diff --git a/gdb/tui/tui-wingeneral.c b/gdb/tui/tui-wingeneral.c index 6d6bdf58002..39b7118d2bd 100644 --- a/gdb/tui/tui-wingeneral.c +++ b/gdb/tui/tui-wingeneral.c @@ -77,7 +77,7 @@ tui_delete_win (WINDOW *window) /* Draw a border arround the window. */ -void +static void box_win (struct tui_gen_win_info *win_info, int highlight_flag) { |