aboutsummaryrefslogtreecommitdiff
path: root/gdb/ChangeLog
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-11-12 17:08:25 -0700
committerTom Tromey <tom@tromey.com>2019-12-20 09:15:50 -0700
commit1ae58f0c640ccef6ae9cc9b349547bb552274b69 (patch)
tree9aba4df958f67834977290f5b9177f1e74bb41d2 /gdb/ChangeLog
parent039298ec451ecf1fa1b9ff1771168b0a5b3a6f68 (diff)
downloadgdb-1ae58f0c640ccef6ae9cc9b349547bb552274b69.zip
gdb-1ae58f0c640ccef6ae9cc9b349547bb552274b69.tar.gz
gdb-1ae58f0c640ccef6ae9cc9b349547bb552274b69.tar.bz2
Simplify tui_source_window_base::maybe_update method
tui_source_window_base::maybe_update takes a symtab_and_line, plus a separate line number and PC. Because a symtab_and_line already holds a line number and a PC, it is possible to remove these extra parameters. gdb/ChangeLog 2019-12-20 Tom Tromey <tom@tromey.com> * tui/tui-winsource.h (struct tui_source_window_base) <maybe_update>: Remove line_no and addr parameters. * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update. * tui/tui-source.h (struct tui_source_window) <maybe_update>: Update. * tui/tui-source.c (tui_source_window::maybe_update): Remove line_no and addr parameters. * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>: Update. * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove line_no and addr parameters. Change-Id: I33d8e1a669a179544edb4197f5f7c5429dfc368e
Diffstat (limited to 'gdb/ChangeLog')
-rw-r--r--gdb/ChangeLog14
1 files changed, 14 insertions, 0 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 1fc603d..9ac1430 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,19 @@
2019-12-20 Tom Tromey <tom@tromey.com>
+ * tui/tui-winsource.h (struct tui_source_window_base)
+ <maybe_update>: Remove line_no and addr parameters.
+ * tui/tui-stack.c (tui_show_frame_info): Set PC on sal. Update.
+ * tui/tui-source.h (struct tui_source_window) <maybe_update>:
+ Update.
+ * tui/tui-source.c (tui_source_window::maybe_update): Remove
+ line_no and addr parameters.
+ * tui/tui-disasm.h (struct tui_disasm_window) <maybe_update>:
+ Update.
+ * tui/tui-disasm.c (tui_disasm_window::maybe_update): Remove
+ line_no and addr parameters.
+
+2019-12-20 Tom Tromey <tom@tromey.com>
+
* tui/tui-winsource.c (tui_source_window_base::set_is_exec_point_at)
(tui_source_window_base::update_breakpoint_info): Remove asserts.