From ec502284dbb12a116872948b220a765345a967c0 Mon Sep 17 00:00:00 2001 From: Wu Zhou Date: Wed, 6 Jul 2005 07:25:36 +0000 Subject: [PATCH] * tui/tui-win.c (parse_scrolling_args): Fix SEGV error with invalid scroll commands. --- gdb/ChangeLog | 5 +++++ gdb/tui/tui-win.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 8fda4dd..85ba233 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2005-07-06 Wu Zhou + * tui/tui-win.c (parse_scrolling_args): Fix SEGV error with invalid + scroll command. + +2005-07-06 Wu Zhou + * f-exp.y (yyparse): Add code to support exponentiation expression. (yylex): Add code to scan exponentiation operator. * eval.c (evaluate_subexp_standard): Add support for BINOP_EXP. diff --git a/gdb/tui/tui-win.c b/gdb/tui/tui-win.c index d7dd070..cdd2550 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]; -- 2.7.4