mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-07-01 01:45:51 +08:00
Remove tui_set_focus
tui_set_focus_command is a simple wrapper for tui_set_focus, so rename the latter and remove the wrapper function. gdb/ChangeLog 2019-07-17 Tom Tromey <tom@tromey.com> * tui/tui-win.c (tui_set_focus_command): Rename from tui_set_focus. Call tui_enable. (tui_set_focus_command): Remove.
This commit is contained in:
@ -1,3 +1,9 @@
|
|||||||
|
2019-07-17 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
|
* tui/tui-win.c (tui_set_focus_command): Rename from
|
||||||
|
tui_set_focus. Call tui_enable.
|
||||||
|
(tui_set_focus_command): Remove.
|
||||||
|
|
||||||
2019-07-17 Tom Tromey <tom@tromey.com>
|
2019-07-17 Tom Tromey <tom@tromey.com>
|
||||||
|
|
||||||
* tui/tui-winsource.c (tui_show_exec_info_content): Don't call
|
* tui/tui-winsource.c (tui_show_exec_info_content): Don't call
|
||||||
|
@ -63,7 +63,6 @@ static int new_height_ok (struct tui_win_info *, int);
|
|||||||
static void tui_set_tab_width_command (const char *, int);
|
static void tui_set_tab_width_command (const char *, int);
|
||||||
static void tui_refresh_all_command (const char *, int);
|
static void tui_refresh_all_command (const char *, int);
|
||||||
static void tui_all_windows_info (const char *, int);
|
static void tui_all_windows_info (const char *, int);
|
||||||
static void tui_set_focus_command (const char *, int);
|
|
||||||
static void tui_scroll_forward_command (const char *, int);
|
static void tui_scroll_forward_command (const char *, int);
|
||||||
static void tui_scroll_backward_command (const char *, int);
|
static void tui_scroll_backward_command (const char *, int);
|
||||||
static void tui_scroll_left_command (const char *, int);
|
static void tui_scroll_left_command (const char *, int);
|
||||||
@ -829,8 +828,10 @@ tui_scroll_right_command (const char *arg, int from_tty)
|
|||||||
|
|
||||||
/* Set focus to the window named by 'arg'. */
|
/* Set focus to the window named by 'arg'. */
|
||||||
static void
|
static void
|
||||||
tui_set_focus (const char *arg, int from_tty)
|
tui_set_focus_command (const char *arg, int from_tty)
|
||||||
{
|
{
|
||||||
|
tui_enable ();
|
||||||
|
|
||||||
if (arg != NULL)
|
if (arg != NULL)
|
||||||
{
|
{
|
||||||
char *buf_ptr = xstrdup (arg);
|
char *buf_ptr = xstrdup (arg);
|
||||||
@ -866,15 +867,6 @@ The window name specified must be valid and visible.\n"));
|
|||||||
warning (_("Incorrect Number of Arguments.\n%s"), FOCUS_USAGE);
|
warning (_("Incorrect Number of Arguments.\n%s"), FOCUS_USAGE);
|
||||||
}
|
}
|
||||||
|
|
||||||
static void
|
|
||||||
tui_set_focus_command (const char *arg, int from_tty)
|
|
||||||
{
|
|
||||||
/* Make sure the curses mode is enabled. */
|
|
||||||
tui_enable ();
|
|
||||||
tui_set_focus (arg, from_tty);
|
|
||||||
}
|
|
||||||
|
|
||||||
|
|
||||||
static void
|
static void
|
||||||
tui_all_windows_info (const char *arg, int from_tty)
|
tui_all_windows_info (const char *arg, int from_tty)
|
||||||
{
|
{
|
||||||
|
Reference in New Issue
Block a user