aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--gdb/ChangeLog6
-rw-r--r--gdb/tui/tui-winsource.c7
2 files changed, 6 insertions, 7 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index 887e04e..2bdfba7 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -1,5 +1,11 @@
2019-12-20 Tom Tromey <tom@tromey.com>
+ * tui/tui-winsource.c
+ (tui_source_window_base::update_source_window_as_is): Don't call
+ set_current_source_symtab_and_line.
+
+2019-12-20 Tom Tromey <tom@tromey.com>
+
* tui/tui-stack.h (struct tui_locator_window) <set_locator_info>:
Take a symtab_and_line.
* tui/tui-stack.c (tui_locator_window::set_locator_info): Take a
diff --git a/gdb/tui/tui-winsource.c b/gdb/tui/tui-winsource.c
index 3305c8c..1ac650b 100644
--- a/gdb/tui/tui-winsource.c
+++ b/gdb/tui/tui-winsource.c
@@ -190,13 +190,6 @@ tui_source_window_base::update_source_window_as_is
update_breakpoint_info (nullptr, false);
show_source_content ();
update_exec_info ();
- if (type == SRC_WIN)
- {
- symtab_and_line new_sal = sal;
-
- new_sal.line = sal.line + (content.size () - 2);
- set_current_source_symtab_and_line (new_sal);
- }
}
}