aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui/tui-winsource.h
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-06-16 16:31:37 -0600
committerTom Tromey <tom@tromey.com>2019-06-25 07:48:38 -0600
commitbe4da58857ee4a26b7e58893211ea4f54922e8fd (patch)
tree12ffcea171c9ab418714583c36bec5119f19d959 /gdb/tui/tui-winsource.h
parent5b81daba91b035ce98fb7be4970fc2be0183f6ea (diff)
downloadgdb-be4da58857ee4a26b7e58893211ea4f54922e8fd.zip
gdb-be4da58857ee4a26b7e58893211ea4f54922e8fd.tar.gz
gdb-be4da58857ee4a26b7e58893211ea4f54922e8fd.tar.bz2
Change tui_update_source_window for better type safety
tui_update_source_window can only be called for source and disassembly windows, so change the argument type to enforce this at compile time. gdb/ChangeLog 2019-06-25 Tom Tromey <tom@tromey.com> * tui/tui-winsource.h (tui_update_source_window) (tui_update_source_window_as_is): Change parameter type. * tui/tui-winsource.c (tui_update_source_window): Change win_info to be a tui_source_window_base. (tui_update_source_window_as_is): Likewise. * tui/tui-win.c (make_visible_with_new_height): Update.
Diffstat (limited to 'gdb/tui/tui-winsource.h')
-rw-r--r--gdb/tui/tui-winsource.h4
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/tui/tui-winsource.h b/gdb/tui/tui-winsource.h
index ada3964..6f2dc35 100644
--- a/gdb/tui/tui-winsource.h
+++ b/gdb/tui/tui-winsource.h
@@ -39,11 +39,11 @@ extern int tui_update_breakpoint_info (struct tui_win_info *win,
/* Function to display the "main" routine. */
extern void tui_display_main (void);
-extern void tui_update_source_window (struct tui_win_info *,
+extern void tui_update_source_window (struct tui_source_window_base *,
struct gdbarch *, struct symtab *,
struct tui_line_or_address,
int);
-extern void tui_update_source_window_as_is (struct tui_win_info *,
+extern void tui_update_source_window_as_is (struct tui_source_window_base *,
struct gdbarch *, struct symtab *,
struct tui_line_or_address,
int);