diff options
author | Wu Zhou <woodzltc@cn.ibm.com> | 2005-07-06 07:25:36 +0000 |
---|---|---|
committer | Wu Zhou <woodzltc@cn.ibm.com> | 2005-07-06 07:25:36 +0000 |
commit | ec502284dbb12a116872948b220a765345a967c0 (patch) | |
tree | 94bed452cd9985f0f46043a4f25bc859c7309067 /gdb/tui/tui-win.c | |
parent | bd49c137fee8212c7e64ce62cc07d398b1278b14 (diff) | |
download | gdb-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/tui/tui-win.c')
-rw-r--r-- | gdb/tui/tui-win.c | 2 |
1 files changed, 1 insertions, 1 deletions
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]; |