From 37715c4c6b8a790bae97327987e0fc32f6866adf Mon Sep 17 00:00:00 2001 From: Thiago Jung Bauermann Date: Tue, 13 Nov 2007 17:00:11 +0000 Subject: [PATCH] * tui/tui-data.c (tui_prev_win): Guard against NULL. --- gdb/ChangeLog | 4 ++++ gdb/tui/tui-data.c | 3 ++- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 6ddb075..83c5ba9 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,7 @@ +2007-11-13 Thiago Jung Bauermann + + * tui/tui-data.c (tui_prev_win): Guard against NULL. + 2007-11-12 Markus Deuling * gdbarch.sh (gdbarch_alloc): Replace current_gdbarch by gdbarch. Remove diff --git a/gdb/tui/tui-data.c b/gdb/tui/tui-data.c index 190c687..6014dc5 100644 --- a/gdb/tui/tui-data.c +++ b/gdb/tui/tui-data.c @@ -370,7 +370,8 @@ tui_prev_win (struct tui_win_info *cur_win) type = cur_win->generic.type - 1; while (type != cur_win->generic.type && (prev == NULL)) { - if (tui_win_list[type]->generic.is_visible) + if (tui_win_list[type] + && tui_win_list[type]->generic.is_visible) prev = tui_win_list[type]; else { -- 2.7.4