aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-disasm.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-07-06 15:04:12 -0600
committerTom Tromey <tom@tromey.com>2019-08-15 12:29:28 -0600
commita54700c6c45ea424b668f2201ef14906f2052412 (patch)
treee379e5c24176b5ea9c3017b56a66374f144932f4 /gdb/tui/tui-disasm.h
parente2a678a557b52816a7aa45902a6519bc1cae918e (diff)
downloadgdb-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-disasm.h')
-rw-r--r--gdb/tui/tui-disasm.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/tui/tui-disasm.h b/gdb/tui/tui-disasm.h
index 19672a7..20bc429 100644
--- a/gdb/tui/tui-disasm.h
+++ b/gdb/tui/tui-disasm.h
@@ -44,6 +44,10 @@ struct tui_disasm_window : public tui_source_window_base
bool location_matches_p (struct bp_location *loc, int line_no) override;
+ 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;