diff options
author | Tom Tromey <tom@tromey.com> | 2019-11-12 16:28:40 -0700 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-12-20 09:15:48 -0700 |
commit | c1b167d76ec06c02f1aaa176c3dcfb1b4d8cee0c (patch) | |
tree | 44a58ed8b9a1b3e08fc77d456e5cdf20bf187597 /gdb/tui/tui-disasm.c | |
parent | 364d710448e607e4ae9cb338583179dd6e734f0b (diff) | |
download | gdb-c1b167d76ec06c02f1aaa176c3dcfb1b4d8cee0c.zip gdb-c1b167d76ec06c02f1aaa176c3dcfb1b4d8cee0c.tar.gz gdb-c1b167d76ec06c02f1aaa176c3dcfb1b4d8cee0c.tar.bz2 |
Change tui_update_locator_fullname to take a symtab
This changes tui_update_locator_fullname to take a symtab. This
somewhat consolidates the "??" handling.
gdb/ChangeLog
2019-12-20 Tom Tromey <tom@tromey.com>
* tui/tui.c (tui_show_source): Update.
* tui/tui-winsource.c (tui_display_main): Update.
* tui/tui-stack.h (tui_update_locator_fullname): Change parameter
to symtab.
* tui/tui-stack.c (tui_update_locator_fullname): Change parameter
to symtab.
* tui/tui-disasm.c (tui_show_disassem_and_update_source): Update.
Change-Id: Ic61749517b44ac68561d829ff81f16976b830dec
Diffstat (limited to 'gdb/tui/tui-disasm.c')
-rw-r--r-- | gdb/tui/tui-disasm.c | 8 |
1 files changed, 2 insertions, 6 deletions
diff --git a/gdb/tui/tui-disasm.c b/gdb/tui/tui-disasm.c index 9819cb9..18e281e 100644 --- a/gdb/tui/tui-disasm.c +++ b/gdb/tui/tui-disasm.c @@ -297,12 +297,8 @@ tui_show_disassem_and_update_source (struct gdbarch *gdbarch, val.u.line_no = sal.line; TUI_SRC_WIN->update_source_window (gdbarch, sal.symtab, val); if (sal.symtab) - { - set_current_source_symtab_and_line (sal); - tui_update_locator_fullname (symtab_to_fullname (sal.symtab)); - } - else - tui_update_locator_fullname ("?"); + set_current_source_symtab_and_line (sal); + tui_update_locator_fullname (sal.symtab); } } |