diff options
author | Andrew Cagney <cagney@redhat.com> | 2004-02-07 01:02:54 +0000 |
---|---|---|
committer | Andrew Cagney <cagney@redhat.com> | 2004-02-07 01:02:54 +0000 |
commit | a21fcd8ffbe4461b215a99e056ecfa434f00b3c9 (patch) | |
tree | fa799335d368d9e4a16990962fa5916837efd09b /gdb | |
parent | edae1ccf4432e5b4353100cc1224192fc0934ca8 (diff) | |
download | gdb-a21fcd8ffbe4461b215a99e056ecfa434f00b3c9.zip gdb-a21fcd8ffbe4461b215a99e056ecfa434f00b3c9.tar.gz gdb-a21fcd8ffbe4461b215a99e056ecfa434f00b3c9.tar.bz2 |
2004-02-06 Andrew Cagney <cagney@redhat.com>
* tui/tui-win.h: Update copyright. Include "tui-data.h".
(struct tui_win_info): Declare.
(tui_scroll_forward): Rename tuiScrollForward.
(tui_scroll_backward): Rename tuiScrollBackward.
(tui_scroll_left): Rename tuiScrollLeft.
(tui_scroll_right): Rename tuiScrollRight.
(tui_set_win_focus_to): Rename tuiSetWinFocusTo.
(tui_resize_all): Rename tuiResizeAll.
(tui_refresh_all_win): Rename tuiRefreshAll.
(tui_sigwinch_handler): Rename tuiSigwinchHandler.
* tui/tui-layout.c, * tui/tui-io.c: Update references.
* tui/tui-wingeneral.h, * tui/tui.c: Update references.
* tui/tui-disasm.c, * tui/tui-command.c: Update references.
Diffstat (limited to 'gdb')
-rw-r--r-- | gdb/ChangeLog | 14 | ||||
-rw-r--r-- | gdb/tui/tui-command.c | 14 | ||||
-rw-r--r-- | gdb/tui/tui-disasm.c | 2 | ||||
-rw-r--r-- | gdb/tui/tui-io.c | 4 | ||||
-rw-r--r-- | gdb/tui/tui-layout.c | 20 | ||||
-rw-r--r-- | gdb/tui/tui-win.c | 63 | ||||
-rw-r--r-- | gdb/tui/tui-win.h | 39 | ||||
-rw-r--r-- | gdb/tui/tui-wingeneral.h | 2 | ||||
-rw-r--r-- | gdb/tui/tui-winsource.c | 2 | ||||
-rw-r--r-- | gdb/tui/tui.c | 6 |
10 files changed, 75 insertions, 91 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 7af8f36..fcf126f 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,19 @@ 2004-02-06 Andrew Cagney <cagney@redhat.com> + * tui/tui-win.h: Update copyright. Include "tui-data.h". + (struct tui_win_info): Declare. + (tui_scroll_forward): Rename tuiScrollForward. + (tui_scroll_backward): Rename tuiScrollBackward. + (tui_scroll_left): Rename tuiScrollLeft. + (tui_scroll_right): Rename tuiScrollRight. + (tui_set_win_focus_to): Rename tuiSetWinFocusTo. + (tui_resize_all): Rename tuiResizeAll. + (tui_refresh_all_win): Rename tuiRefreshAll. + (tui_sigwinch_handler): Rename tuiSigwinchHandler. + * tui/tui-layout.c, * tui/tui-io.c: Update references. + * tui/tui-wingeneral.h, * tui/tui.c: Update references. + * tui/tui-disasm.c, * tui/tui-command.c: Update references. + * tui/tui-windata.h: Update copyright. Include "tui-data.h". (tui_erase_data_content): Rename tuiEraseDataContent. (tui_display_all_data): Rename tuiDisplayAllData. diff --git a/gdb/tui/tui-command.c b/gdb/tui/tui-command.c index 4b1c0fd..a771ff3 100644 --- a/gdb/tui/tui-command.c +++ b/gdb/tui/tui-command.c @@ -104,27 +104,27 @@ tui_dispatch_ctrl_char (unsigned int ch) switch (chCopy) { case KEY_NPAGE: - tuiScrollForward (winInfo, 0); + tui_scroll_forward (winInfo, 0); break; case KEY_PPAGE: - tuiScrollBackward (winInfo, 0); + tui_scroll_backward (winInfo, 0); break; case KEY_DOWN: case KEY_SF: - tuiScrollForward (winInfo, 1); + tui_scroll_forward (winInfo, 1); break; case KEY_UP: case KEY_SR: - tuiScrollBackward (winInfo, 1); + tui_scroll_backward (winInfo, 1); break; case KEY_RIGHT: - tuiScrollLeft (winInfo, 1); + tui_scroll_left (winInfo, 1); break; case KEY_LEFT: - tuiScrollRight (winInfo, 1); + tui_scroll_right (winInfo, 1); break; case '\f': - tuiRefreshAll (); + tui_refresh_all_win (); break; default: c = chCopy; diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c index be4387b..33ca965 100644 --- a/gdb/tui/tui-disasm.c +++ b/gdb/tui/tui-disasm.c @@ -286,7 +286,7 @@ tui_show_disassem (CORE_ADDR startAddr) ** source view isn't split */ if (currentLayout () != SRC_DISASSEM_COMMAND && winWithFocus == srcWin) - tuiSetWinFocusTo (disassemWin); + tui_set_win_focus_to (disassemWin); return; } diff --git a/gdb/tui/tui-io.c b/gdb/tui/tui-io.c index 61b1f93..c7c619c 100644 --- a/gdb/tui/tui-io.c +++ b/gdb/tui/tui-io.c @@ -584,7 +584,7 @@ tui_cont_sig (int sig) resetty (); /* Force a refresh of the screen. */ - tuiRefreshAll (); + tui_refresh_all_win (); /* Update cursor position on the screen. */ wmove (cmdWin->generic.handle, @@ -712,7 +712,7 @@ _tuiHandleResizeDuringIO (unsigned int originalCh) { if (tuiWinResized ()) { - tuiRefreshAll (); + tui_refresh_all_win (); dont_repeat (); tuiSetWinResizedTo (FALSE); return '\n'; diff --git a/gdb/tui/tui-layout.c b/gdb/tui/tui-layout.c index 4aed786..6c7fc11 100644 --- a/gdb/tui/tui-layout.c +++ b/gdb/tui/tui-layout.c @@ -178,7 +178,7 @@ tui_set_layout (enum tui_layout_type layoutType, switch (newLayout) { case SRC_COMMAND: - tuiSetWinFocusTo (srcWin); + tui_set_win_focus_to (srcWin); layoutDef->displayMode = SRC_WIN; layoutDef->split = FALSE; break; @@ -191,7 +191,7 @@ tui_set_layout (enum tui_layout_type layoutType, ** We still want to show the assembly though! */ addr = tui_get_begin_asm_address (); - tuiSetWinFocusTo (disassemWin); + tui_set_win_focus_to (disassemWin); layoutDef->displayMode = DISASSEM_WIN; layoutDef->split = FALSE; break; @@ -205,16 +205,16 @@ tui_set_layout (enum tui_layout_type layoutType, */ addr = tui_get_begin_asm_address (); if (winWithFocus == srcWin) - tuiSetWinFocusTo (srcWin); + tui_set_win_focus_to (srcWin); else - tuiSetWinFocusTo (disassemWin); + tui_set_win_focus_to (disassemWin); layoutDef->split = TRUE; break; case SRC_DATA_COMMAND: if (winWithFocus != dataWin) - tuiSetWinFocusTo (srcWin); + tui_set_win_focus_to (srcWin); else - tuiSetWinFocusTo (dataWin); + tui_set_win_focus_to (dataWin); layoutDef->displayMode = SRC_WIN; layoutDef->split = FALSE; break; @@ -228,9 +228,9 @@ tui_set_layout (enum tui_layout_type layoutType, */ addr = tui_get_begin_asm_address (); if (winWithFocus != dataWin) - tuiSetWinFocusTo (disassemWin); + tui_set_win_focus_to (disassemWin); else - tuiSetWinFocusTo (dataWin); + tui_set_win_focus_to (dataWin); layoutDef->displayMode = DISASSEM_WIN; layoutDef->split = FALSE; break; @@ -239,7 +239,7 @@ tui_set_layout (enum tui_layout_type layoutType, } } if (newWinWithFocus != (TuiWinInfoPtr) NULL) - tuiSetWinFocusTo (newWinWithFocus); + tui_set_win_focus_to (newWinWithFocus); /* ** Now update the window content */ @@ -561,7 +561,7 @@ _tuiHandleXDBLayout (TuiLayoutDefPtr layoutDef) if (layoutDef->split) { tui_set_layout (SRC_DISASSEM_COMMAND, TUI_UNDEFINED_REGS); - tuiSetWinFocusTo (winList[layoutDef->displayMode]); + tui_set_win_focus_to (winList[layoutDef->displayMode]); } else { diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index 8cde063..f0e5e5e 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -423,12 +423,9 @@ tui_update_gdb_sizes () } -/* - ** tuiSetWinFocusTo - ** Set the logical focus to winInfo - */ +/* Set the logical focus to winInfo. */ void -tuiSetWinFocusTo (TuiWinInfoPtr winInfo) +tui_set_win_focus_to (TuiWinInfoPtr winInfo) { if (m_winPtrNotNull (winInfo)) { @@ -446,11 +443,8 @@ tuiSetWinFocusTo (TuiWinInfoPtr winInfo) } /* tuiSetWinFocusTo */ -/* - ** tuiScrollForward(). - */ void -tuiScrollForward (TuiWinInfoPtr winToScroll, int numToScroll) +tui_scroll_forward (TuiWinInfoPtr winToScroll, int numToScroll) { if (winToScroll != cmdWin) { @@ -471,16 +465,10 @@ tuiScrollForward (TuiWinInfoPtr winToScroll, int numToScroll) else if (winToScroll == dataWin) tui_vertical_data_scroll (FORWARD_SCROLL, _numToScroll); } +} - return; -} /* tuiScrollForward */ - - -/* - ** tuiScrollBackward(). - */ void -tuiScrollBackward (TuiWinInfoPtr winToScroll, int numToScroll) +tui_scroll_backward (TuiWinInfoPtr winToScroll, int numToScroll) { if (winToScroll != cmdWin) { @@ -501,15 +489,11 @@ tuiScrollBackward (TuiWinInfoPtr winToScroll, int numToScroll) else if (winToScroll == dataWin) tui_vertical_data_scroll (BACKWARD_SCROLL, _numToScroll); } - return; -} /* tuiScrollBackward */ +} -/* - ** tuiScrollLeft(). - */ void -tuiScrollLeft (TuiWinInfoPtr winToScroll, int numToScroll) +tui_scroll_left (TuiWinInfoPtr winToScroll, int numToScroll) { if (winToScroll != cmdWin) { @@ -526,15 +510,11 @@ tuiScrollLeft (TuiWinInfoPtr winToScroll, int numToScroll) if (winToScroll == srcWin || winToScroll == disassemWin) tui_horizontal_source_scroll (winToScroll, LEFT_SCROLL, _numToScroll); } - return; -} /* tuiScrollLeft */ +} -/* - ** tuiScrollRight(). - */ void -tuiScrollRight (TuiWinInfoPtr winToScroll, int numToScroll) +tui_scroll_right (TuiWinInfoPtr winToScroll, int numToScroll) { if (winToScroll != cmdWin) { @@ -551,14 +531,10 @@ tuiScrollRight (TuiWinInfoPtr winToScroll, int numToScroll) if (winToScroll == srcWin || winToScroll == disassemWin) tui_horizontal_source_scroll (winToScroll, RIGHT_SCROLL, _numToScroll); } - return; -} /* tuiScrollRight */ +} -/* - ** tui_scroll(). - ** Scroll a window. Arguments are passed through a va_list. - */ +/* Scroll a window. Arguments are passed through a va_list. */ void tui_scroll (TuiScrollDirection direction, TuiWinInfoPtr winToScroll, @@ -567,16 +543,16 @@ tui_scroll (TuiScrollDirection direction, switch (direction) { case FORWARD_SCROLL: - tuiScrollForward (winToScroll, numToScroll); + tui_scroll_forward (winToScroll, numToScroll); break; case BACKWARD_SCROLL: - tuiScrollBackward (winToScroll, numToScroll); + tui_scroll_backward (winToScroll, numToScroll); break; case LEFT_SCROLL: - tuiScrollLeft (winToScroll, numToScroll); + tui_scroll_left (winToScroll, numToScroll); break; case RIGHT_SCROLL: - tuiScrollRight (winToScroll, numToScroll); + tui_scroll_right (winToScroll, numToScroll); break; default: break; @@ -584,11 +560,8 @@ tui_scroll (TuiScrollDirection direction, } -/* - ** tuiRefreshAll(). - */ void -tuiRefreshAll (void) +tui_refresh_all_win (void) { TuiWinType type; @@ -905,7 +878,7 @@ _tuiSetFocus (char *arg, int fromTTY) The window name specified must be valid and visible.\n"); else { - tuiSetWinFocusTo (winInfo); + tui_set_win_focus_to (winInfo); keypad (cmdWin->generic.handle, (winInfo != cmdWin)); } @@ -968,7 +941,7 @@ _tuiRefreshAll_command (char *arg, int fromTTY) /* Make sure the curses mode is enabled. */ tui_enable (); - tuiRefreshAll (); + tui_refresh_all_win (); } diff --git a/gdb/tui/tui-win.h b/gdb/tui/tui-win.h index bc26080..b76998c 100644 --- a/gdb/tui/tui-win.h +++ b/gdb/tui/tui-win.h @@ -1,5 +1,8 @@ /* TUI window generic functions. - Copyright 1998, 1999, 2000, 2001, 2002 Free Software Foundation, Inc. + + Copyright 1998, 1999, 2000, 2001, 2002, 2004 Free Software + Foundation, Inc. + Contributed by Hewlett-Packard Company. This file is part of GDB. @@ -19,27 +22,22 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */ -#ifndef _TUI_WIN_H -#define _TUI_WIN_H - -/***************************************** -** TYPE DEFINITIONS ** -******************************************/ +#ifndef TUI_WIN_H +#define TUI_WIN_H +#include "tui/tui-data.h" +struct tui_win_info; -/***************************************** -** PUBLIC FUNCTION EXTERNAL DECLS ** -******************************************/ -extern void tuiScrollForward (TuiWinInfoPtr, int); -extern void tuiScrollBackward (TuiWinInfoPtr, int); -extern void tuiScrollLeft (TuiWinInfoPtr, int); -extern void tuiScrollRight (TuiWinInfoPtr, int); -extern void tui_scroll (TuiScrollDirection, TuiWinInfoPtr, int); -extern void tuiSetWinFocusTo (TuiWinInfoPtr); -extern void tuiResizeAll (void); -extern void tuiRefreshAll (void); -extern void tuiSigwinchHandler (int); +extern void tui_scroll_forward (struct tui_win_info *, int); +extern void tui_scroll_backward (struct tui_win_info *, int); +extern void tui_scroll_left (struct tui_win_info *, int); +extern void tui_scroll_right (struct tui_win_info *, int); +extern void tui_scroll (enum tui_scroll_direction, struct tui_win_info *, int); +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; @@ -50,10 +48,9 @@ extern chtype tui_border_hline; extern int tui_border_attrs; extern int tui_active_border_attrs; -extern int tui_update_variables (); +extern int tui_update_variables (void); /* Update gdb's knowledge of the terminal size. */ extern void tui_update_gdb_sizes (void); #endif -/*_TUI_WIN_H*/ diff --git a/gdb/tui/tui-wingeneral.h b/gdb/tui/tui-wingeneral.h index 22ec251..f91095d 100644 --- a/gdb/tui/tui-wingeneral.h +++ b/gdb/tui/tui-wingeneral.h @@ -38,7 +38,7 @@ extern struct tui_win_info *tui_copy_win (struct tui_win_info *); extern void tui_box_win (struct tui_gen_win_info *, int); extern void tui_highlight_win (struct tui_win_info *); extern void tui_check_and_display_highlight_if_needed (struct tui_win_info *); -extern void tui_refresh_all (struct tui_win_info * *); +extern void tui_refresh_all (struct tui_win_info **); extern void tui_delete_win (WINDOW * window); extern void tui_refresh_win (struct tui_gen_win_info *); diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index 4b1957d..9e936ad 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -122,7 +122,7 @@ tui_update_source_window_as_is (TuiWinInfoPtr winInfo, struct symtab *s, */ if (tuiWinWithFocus () == disassemWin && currentLayout () != SRC_DISASSEM_COMMAND) - tuiSetWinFocusTo (srcWin); + tui_set_win_focus_to (srcWin); } } diff --git a/gdb/tui/tui.c b/gdb/tui/tui.c index 5e44d98..a61272c 100644 --- a/gdb/tui/tui.c +++ b/gdb/tui/tui.c @@ -223,7 +223,7 @@ tui_rl_other_window (int count, int key) winInfo = tuiNextWin (tuiWinWithFocus ()); if (winInfo) { - tuiSetWinFocusTo (winInfo); + tui_set_win_focus_to (winInfo); if (dataWin && dataWin->generic.isVisible) tui_refresh_data_win (); keypad (cmdWin->generic.handle, (winInfo != cmdWin)); @@ -390,7 +390,7 @@ tui_enable (void) tui_show_frame_info (0); tui_set_layout (SRC_COMMAND, TUI_UNDEFINED_REGS); - tuiSetWinFocusTo (srcWin); + tui_set_win_focus_to (srcWin); keypad (cmdWin->generic.handle, TRUE); wrefresh (cmdWin->generic.handle); tui_finish_init = 0; @@ -417,7 +417,7 @@ tui_enable (void) /* Restore TUI keymap. */ tui_set_key_mode (tui_current_key_mode); - tuiRefreshAll (); + tui_refresh_all_win (); /* Update gdb's knowledge of its terminal. */ target_terminal_save_ours (); |