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
This commit is contained in:
Tom Tromey 2019-11-13 15:54:47 -07:00
parent 0ab92974ab
commit 54217b84bd
2 changed files with 6 additions and 7 deletions

View File

@ -1,3 +1,9 @@
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>:

View File

@ -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);
}
}
}