diff options
Diffstat (limited to 'gdb/tui/tui-winsource.c')
-rw-r--r-- | gdb/tui/tui-winsource.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c index e68efad..a05f648 100644 --- a/gdb/tui/tui-winsource.c +++ b/gdb/tui/tui-winsource.c @@ -459,7 +459,7 @@ tui_source_window_base::rerender () struct gdbarch *gdbarch = get_frame_arch (frame); struct symtab *s = find_pc_line_symtab (get_frame_pc (frame)); - if (this != TUI_SRC_WIN) + if (this != tui_src_win ()) find_line_pc (s, cursal.line, &cursal.pc); /* This centering code is copied from tui_source_window::maybe_update. @@ -492,7 +492,7 @@ tui_source_window_base::refill () { symtab_and_line sal {}; - if (this == TUI_SRC_WIN) + if (this == tui_src_win ()) { sal = get_current_source_symtab_and_line (); if (sal.symtab == NULL) |