aboutsummaryrefslogtreecommitdiff
path: root/gdb/tui
diff options
context:
space:
mode:
authorTom Tromey <tom@tromey.com>2019-11-13 15:54:47 -0700
committerTom Tromey <tom@tromey.com>2019-12-20 09:15:56 -0700
commit54217b84bdca3457c16ca7ee9e770f301fc052f9 (patch)
tree8be8d30bba06b9b721b185eb61d9c1eb195e0acd /gdb/tui
parent0ab92974ab9041d80dbd12303d5e8115436fd61e (diff)
downloadgdb-54217b84bdca3457c16ca7ee9e770f301fc052f9.zip
gdb-54217b84bdca3457c16ca7ee9e770f301fc052f9.tar.gz
gdb-54217b84bdca3457c16ca7ee9e770f301fc052f9.tar.bz2
Don't call set_current_source_symtab_and_line from TUI
update_source_window_as_is calls set_current_source_symtab_and_line, but I don't think there is any reason it should be doing this. This patch removes the call. gdb/ChangeLog 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. Change-Id: I1152fc7c78150974bd3d555b8568a6f88b65dbe6
Diffstat (limited to 'gdb/tui')
-rw-r--r--gdb/tui/tui-winsource.c7
1 files changed, 0 insertions, 7 deletions
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);
- }
}
}