binutils-gdb/gdb/tui
Tom Tromey 52469d7673 Reimplement tui_get_begin_asm_address
tui_get_begin_asm_address looks for the inferior's "main" to display
it.  I think this is incorrect in two ways.

First, it should probably instead use the user's most recent source
context, if one has been set.

Second, it uses a hard-coded list of "main" names, but gdb already has
a better approach to handling this.

This patch fixes both of these problems.

gdb/ChangeLog
2019-12-20  Tom Tromey  <tom@tromey.com>

	* tui/tui-disasm.c (tui_get_begin_asm_address): Use
	get_current_source_symtab_and_line, and main_name.

Change-Id: I77dc13d49148e8dec5aa3eeb357ce3968a68d0bd
2019-12-20 09:15:54 -07:00
..
ChangeLog-1998-2003
tui-command.c Remove struct tui_point 2019-12-11 15:49:01 -07:00
tui-command.h Remove can_highlight from TUI windows 2019-11-10 10:33:07 -07:00
tui-data.c Fix the "winheight" command 2019-11-19 13:27:25 -07:00
tui-data.h Remove struct tui_point 2019-12-11 15:49:01 -07:00
tui-disasm.c Reimplement tui_get_begin_asm_address 2019-12-20 09:15:54 -07:00
tui-disasm.h Use symtab_and_line when updating TUI windows 2019-12-20 09:15:53 -07:00
tui-file.c Update copyright year range in all GDB files. 2019-01-01 10:01:51 +04:00
tui-file.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-hooks.c Remove some includes of readline.h 2019-11-06 07:29:43 -07:00
tui-hooks.h Normalize include guards in gdb 2019-02-07 03:27:23 -07:00
tui-interp.c Remove some includes of readline.h 2019-11-06 07:29:43 -07:00
tui-io.c Make isearch change readline prompt in TUI 2019-12-20 08:49:52 -07:00
tui-io.h Add TUI border colors 2019-12-01 11:59:23 -07:00
tui-layout.c Change "winheight" resizing to use new layout code 2019-12-11 15:49:03 -07:00
tui-layout.h Add virtual destructor to tui_layout_base 2019-12-17 15:01:15 -05:00
tui-out.c Remove parameters from tui_show_source 2019-12-20 09:15:49 -07:00
tui-out.h Introduce metadata style 2019-10-01 15:12:40 -06:00
tui-regs.c Don't call erase_data_content from tui_data_window::show_registers 2019-10-09 16:50:36 -06:00
tui-regs.h Introduce the tui_gen_win_info::min_height method 2019-12-11 15:49:00 -07:00
tui-source.c Use symtab_and_line when updating TUI windows 2019-12-20 09:15:53 -07:00
tui-source.h Use symtab_and_line when updating TUI windows 2019-12-20 09:15:53 -07:00
tui-stack.c Simplify tui_source_window_base::maybe_update method 2019-12-20 09:15:50 -07:00
tui-stack.h Change tui_update_locator_fullname to take a symtab 2019-12-20 09:15:48 -07:00
tui-win.c Change "winheight" resizing to use new layout code 2019-12-11 15:49:03 -07:00
tui-win.h Allow using less horizontal space in TUI source window 2019-12-01 11:59:23 -07:00
tui-wingeneral.c Remove struct tui_point 2019-12-11 15:49:01 -07:00
tui-wingeneral.h Make TUI window handle a unique_ptr 2019-10-09 16:50:35 -06:00
tui-winsource.c Simplify tui_update_source_windows_with_line 2019-12-20 09:15:54 -07:00
tui-winsource.h Simplify tui_update_source_windows_with_line 2019-12-20 09:15:54 -07:00
tui.c Simplify tui_update_source_windows_with_line 2019-12-20 09:15:54 -07:00
tui.h Remove parameters from tui_show_source 2019-12-20 09:15:49 -07:00