aboutsummaryrefslogtreecommitdiff
path: root/gdb
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
commitec502284dbb12a116872948b220a765345a967c0 (patch)
tree94bed452cd9985f0f46043a4f25bc859c7309067 /gdb
parentbd49c137fee8212c7e64ce62cc07d398b1278b14 (diff)
downloadgdb-ec502284dbb12a116872948b220a765345a967c0.zip
gdb-ec502284dbb12a116872948b220a765345a967c0.tar.gz
gdb-ec502284dbb12a116872948b220a765345a967c0.tar.bz2
* tui/tui-win.c (parse_scrolling_args): Fix SEGV error with invalid
scroll commands.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/tui/tui-win.c2
2 files changed, 6 insertions, 1 deletions
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 <woodzltc@cn.ibm.com>
+ * tui/tui-win.c (parse_scrolling_args): Fix SEGV error with invalid
+ scroll command.
+
+2005-07-06 Wu Zhou <woodzltc@cn.ibm.com>
+
* 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];