diff options
Diffstat (limited to 'gdb/tui/tui-windata.c')
-rw-r--r-- | gdb/tui/tui-windata.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/tui/tui-windata.c b/gdb/tui/tui-windata.c index 2ddc8cf..84a31e0 100644 --- a/gdb/tui/tui-windata.c +++ b/gdb/tui/tui-windata.c @@ -251,7 +251,7 @@ tui_check_data_values (struct frame_info *frame) data_item_ptr = &TUI_DATA_WIN->detail.data_display_info. data_content[i]->which_element.data_window; data_element_ptr = &((tui_win_content) - data_item_win_ptr->content)[0]->which_element.data; + data_item_win_ptr->content)[0]->which_element.data; if value has changed (data_element_ptr, frame, &new_value) { @@ -273,7 +273,8 @@ tui_vertical_data_scroll (enum tui_scroll_direction scroll_direction, int first_line = (-1); first_element_no = tui_first_data_item_displayed (); - if (first_element_no < TUI_DATA_WIN->detail.data_display_info.regs_content_count) + if (first_element_no + < TUI_DATA_WIN->detail.data_display_info.regs_content_count) first_line = tui_line_from_reg_element_no (first_element_no); else { /* Calculate the first line from the element number which is in |