diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-06 15:04:12 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-15 12:29:28 -0600 |
commit | a54700c6c45ea424b668f2201ef14906f2052412 (patch) | |
tree | e379e5c24176b5ea9c3017b56a66374f144932f4 /gdb/tui/tui-source.h | |
parent | e2a678a557b52816a7aa45902a6519bc1cae918e (diff) | |
download | gdb-a54700c6c45ea424b668f2201ef14906f2052412.zip gdb-a54700c6c45ea424b668f2201ef14906f2052412.tar.gz gdb-a54700c6c45ea424b668f2201ef14906f2052412.tar.bz2 |
Move contents of tui_show_frame_info to new method
This moves much of the body of tui_show_frame_info to a new method on
tui_source_window_base. This removes a check for the type of a
window.
gdb/ChangeLog
2019-08-15 Tom Tromey <tom@tromey.com>
* tui/tui-winsource.h (struct tui_source_window_base)
<maybe_update>: Declare.
* tui/tui-stack.c (tui_show_frame_info): Call maybe_update
method.
* tui/tui-source.h (struct tui_source_window) <maybe_update>:
Declare.
* tui/tui-source.c (tui_source_window::maybe_update): New method.
* tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
Declare.
* tui/tui-disasm.c (tui_disasm_window::maybe_update): New method.
Diffstat (limited to 'gdb/tui/tui-source.h')
-rw-r--r-- | gdb/tui/tui-source.h | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/tui/tui-source.h b/gdb/tui/tui-source.h index 49d79ab..dc4470e 100644 --- a/gdb/tui/tui-source.h +++ b/gdb/tui/tui-source.h @@ -47,6 +47,10 @@ struct tui_source_window : public tui_source_window_base bool showing_source_p (const char *filename) const; + void maybe_update (struct frame_info *fi, symtab_and_line sal, + int line_no, CORE_ADDR addr) + override; + protected: void do_scroll_vertical (int num_to_scroll) override; |