diff options
-rw-r--r-- | gdb/ChangeLog | 5 | ||||
-rw-r--r-- | gdb/tui/tui-disasm.c | 4 |
2 files changed, 7 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index ecdce31..532ab92 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,10 @@ 2020-02-22 Tom Tromey <tom@tromey.com> + * tui/tui-disasm.c (tui_get_low_disassembly_address): Use + TUI_DISASM_WIN, not tui_win_list. + +2020-02-22 Tom Tromey <tom@tromey.com> + * valprint.c (generic_val_print_enum_1) (val_print_type_code_flags): Style member names. * rust-lang.c (val_print_struct, rust_print_enum) diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c index 547d2c9..b0b53d6 100644 --- a/gdb/tui/tui-disasm.c +++ b/gdb/tui/tui-disasm.c @@ -429,8 +429,8 @@ tui_get_low_disassembly_address (struct gdbarch *gdbarch, /* Determine where to start the disassembly so that the pc is about in the middle of the viewport. */ - if (tui_win_list[DISASSEM_WIN] != NULL) - pos = tui_win_list[DISASSEM_WIN]->height; + if (TUI_DISASM_WIN != NULL) + pos = TUI_DISASM_WIN->height; else if (TUI_CMD_WIN == NULL) pos = tui_term_height () / 2 - 2; else |