summaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorWu Zhou <woodzltc@cn.ibm.com>2005-07-06 07:25:36 +0000
committerWu Zhou <woodzltc@cn.ibm.com>2005-07-06 07:25:36 +0000
commit56019de8b90e42d9b1b43b6637181eb41e8ba819 (patch)
tree78ba5eed481721eab5cdba063e8682c6e27a9dce /gdb/tui
parent2c961d6cc67e2be4920cb748c69f73be98650173 (diff)
downloadgdb-56019de8b90e42d9b1b43b6637181eb41e8ba819.tar.gz
* tui/tui-win.c (parse_scrolling_args): Fix SEGV error with invalid
scroll commands.
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-win.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c
index d7dd070003d..cdd2550d2ce 100644
--- a/gdb/tui/tui-win.c
+++ b/gdb/tui/tui-win.c
@@ -1543,7 +1543,7 @@ parse_scrolling_args (char *arg, struct tui_win_info * * win_to_scroll,
if (*win_to_scroll == (struct tui_win_info *) NULL ||
!(*win_to_scroll)->generic.is_visible)
- warning (_("Invalid window specified. \n\
+ error (_("Invalid window specified. \n\
The window name specified must be valid and visible.\n"));
else if (*win_to_scroll == TUI_CMD_WIN)
*win_to_scroll = (struct tui_win_info *) (tui_source_windows ())->list[0];