From 088f37dd90eecb647347c1aa53d36b3f5be64b21 Mon Sep 17 00:00:00 2001 From: Tom Tromey Date: Sat, 6 Jul 2019 15:06:47 -0600 Subject: Change tui_addr_is_displayed into a method This changes tui_addr_is_displayed to be a method on tui_disasm_window, now that it is obvious that it can only be called for this type. gdb/ChangeLog 2019-08-15 Tom Tromey * tui/tui-winsource.h (tui_addr_is_displayed): Don't declare. * tui/tui-winsource.c (tui_addr_is_displayed): Move to tui-disasm.c. * tui/tui-disasm.h (struct tui_disasm_window) : Declare. * tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New method. (tui_disasm_window::maybe_update): Update. --- gdb/tui/tui-winsource.h | 3 --- 1 file changed, 3 deletions(-) (limited to 'gdb/tui/tui-winsource.h') diff --git a/gdb/tui/tui-winsource.h b/gdb/tui/tui-winsource.h index f2fd1eb..b03ba2f 100644 --- a/gdb/tui/tui-winsource.h +++ b/gdb/tui/tui-winsource.h @@ -177,9 +177,6 @@ extern void tui_alloc_source_buffer (struct tui_source_window_base *); extern int tui_line_is_displayed (int, struct tui_source_window_base *, int); -extern int tui_addr_is_displayed (CORE_ADDR, - struct tui_source_window_base *, - int); /* Constant definitions. */ -- cgit v1.1