From: Andrew Burgess Date: Mon, 6 Jul 2015 10:09:05 +0000 (+0100) Subject: gdb: Convert TUI windows names to lower case. X-Git-Url: https://git.libre-soc.org/?a=commitdiff_plain;h=6dce28e413375aa878cf43853d32657d1fc26c6f;p=binutils-gdb.git gdb: Convert TUI windows names to lower case. This commit converts the window names for the TUI windows to lower case. The windows names are already lower case in the documentation, and are shown as lower case in some of the command completion results. Given that all the commands that take a window name currently accept upper or lower case, this commit just changes the window names to lower case in the remaining places they are displayed by gdb. gdb/ChangeLog: * tui/tui-data.h (SRC_NAME): Convert to lower case. (CMD_NAME): Likewise. (DATA_NAME): Likewise. (DISASSEM_NAME): Likewise. * tui/tui-win.c (tui_set_focus): Window names are now lower case. (tui_set_win_height): Likewise. (parse_scrolling_args): Likewise. --- diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5683482b79a..59ac40094e4 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,13 @@ +2015-07-10 Andrew Burgess + + * tui/tui-data.h (SRC_NAME): Convert to lower case. + (CMD_NAME): Likewise. + (DATA_NAME): Likewise. + (DISASSEM_NAME): Likewise. + * tui/tui-win.c (tui_set_focus): Window names are now lower case. + (tui_set_win_height): Likewise. + (parse_scrolling_args): Likewise. + 2015-07-10 Markus Metzger * record-btrace.c (record_btrace_goto_begin) diff --git a/gdb/tui/tui-data.h b/gdb/tui/tui-data.h index 1b9d8320e09..0e7e31eb57d 100644 --- a/gdb/tui/tui-data.h +++ b/gdb/tui/tui-data.h @@ -60,10 +60,10 @@ struct tui_gen_win_info #define NO_REGS_STRING "[ Register Values Unavailable ]" #define NO_DATA_STRING "[ No Data Values Displayed ]" #define MAX_CONTENT_COUNT 100 -#define SRC_NAME "SRC" -#define CMD_NAME "CMD" -#define DATA_NAME "REGS" -#define DISASSEM_NAME "ASM" +#define SRC_NAME "src" +#define CMD_NAME "cmd" +#define DATA_NAME "regs" +#define DISASSEM_NAME "asm" #define TUI_NULL_STR "" #define DEFAULT_HISTORY_COUNT 25 #define BOX_WINDOW TRUE diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index 629d54d8a45..215a7f5c875 100644 --- a/gdb/tui/tui-win.c +++ b/gdb/tui/tui-win.c @@ -1036,11 +1036,11 @@ tui_set_focus (char *arg, int from_tty) struct tui_win_info *win_info = (struct tui_win_info *) NULL; for (i = 0; (i < strlen (buf_ptr)); i++) - buf_ptr[i] = toupper (arg[i]); + buf_ptr[i] = tolower (arg[i]); - if (subset_compare (buf_ptr, "NEXT")) + if (subset_compare (buf_ptr, "next")) win_info = tui_next_win (tui_win_with_focus ()); - else if (subset_compare (buf_ptr, "PREV")) + else if (subset_compare (buf_ptr, "prev")) win_info = tui_prev_win (tui_win_with_focus ()); else win_info = tui_partial_win_by_name (buf_ptr); @@ -1167,7 +1167,7 @@ tui_set_win_height (char *arg, int from_tty) /* Validate the window name. */ for (i = 0; i < strlen (wname); i++) - wname[i] = toupper (wname[i]); + wname[i] = tolower (wname[i]); win_info = tui_partial_win_by_name (wname); if (win_info == (struct tui_win_info *) NULL @@ -1689,7 +1689,7 @@ parse_scrolling_args (char *arg, /* Validate the window name. */ for (i = 0; i < strlen (wname); i++) - wname[i] = toupper (wname[i]); + wname[i] = tolower (wname[i]); } else wname = "?";