diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-06 15:06:47 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-15 12:29:28 -0600 |
commit | 088f37dd90eecb647347c1aa53d36b3f5be64b21 (patch) | |
tree | 4453f8eb6169fd83c92be094b406903830a87ef8 /gdb/tui/tui-winsource.h | |
parent | a54700c6c45ea424b668f2201ef14906f2052412 (diff) | |
download | binutils-088f37dd90eecb647347c1aa53d36b3f5be64b21.zip binutils-088f37dd90eecb647347c1aa53d36b3f5be64b21.tar.gz binutils-088f37dd90eecb647347c1aa53d36b3f5be64b21.tar.bz2 |
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 <tom@tromey.com>
* 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) <addr_is_displayed>:
Declare.
* tui/tui-disasm.c (tui_disasm_window::addr_is_displayed): New
method.
(tui_disasm_window::maybe_update): Update.
Diffstat (limited to 'gdb/tui/tui-winsource.h')
-rw-r--r-- | gdb/tui/tui-winsource.h | 3 |
1 files changed, 0 insertions, 3 deletions
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. */ |