diff options
author | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-07-06 11:09:05 +0100 |
---|---|---|
committer | Andrew Burgess <andrew.burgess@embecosm.com> | 2015-07-10 12:37:57 +0100 |
commit | 6dce28e413375aa878cf43853d32657d1fc26c6f (patch) | |
tree | b3953e1012d425e9827a442c00aec129e0cd0011 /gdb/tui/tui-win.c | |
parent | a2c59f280dda14a2f68d0175c8879238be1aa200 (diff) | |
download | gdb-6dce28e413375aa878cf43853d32657d1fc26c6f.zip gdb-6dce28e413375aa878cf43853d32657d1fc26c6f.tar.gz gdb-6dce28e413375aa878cf43853d32657d1fc26c6f.tar.bz2 |
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.
Diffstat (limited to 'gdb/tui/tui-win.c')
-rw-r--r-- | gdb/tui/tui-win.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index 629d54d..215a7f5 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 = "?"; |