* tui/tui-win.c (parse_scrolling_args): Fix SEGV error with invalid
authorWu Zhou <woodzltc@cn.ibm.com>
Wed, 6 Jul 2005 07:25:36 +0000 (07:25 +0000)
committerWu Zhou <woodzltc@cn.ibm.com>
Wed, 6 Jul 2005 07:25:36 +0000 (07:25 +0000)
scroll commands.

gdb/ChangeLog
gdb/tui/tui-win.c

index 8fda4dd4f683a39698e959b16ee8b9e7b665f79d..85ba233991b4ee40a772e1eac4437db816c0a8d3 100644 (file)
@@ -1,3 +1,8 @@
+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.
index d7dd070003dbf176edb8be393b40465516d31c26..cdd2550d2cea08e1c764d43629558b930f310503 100644 (file)
@@ -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];