Simplify tui_update_source_windows_with_line
authorTom Tromey <tom@tromey.com>
Wed, 13 Nov 2019 01:04:01 +0000 (18:04 -0700)
committerTom Tromey <tom@tromey.com>
Fri, 20 Dec 2019 16:15:54 +0000 (09:15 -0700)
commit5d49bf1b698124fe21017105f84b18e29221b262
tree32acaba0aa5392e0b892ed85e371c57dc79247a5
parent88180c082424fd90e8a5967f8c84533f7cc6380f
Simplify tui_update_source_windows_with_line

This changes tui_update_source_windows_with_line to take a
symtab_and_line, rather than separate parameters, and then updates the
caller.

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

* tui/tui.c (tui_show_source): Update.
* tui/tui-winsource.h (tui_update_source_windows_with_line): Update.
* tui/tui-winsource.c (tui_update_source_windows_with_line): Take
a symtab_symbol_info, not a separate symtab and line.  Simplify.

Change-Id: I8803a0a6fd2938ceee859aea53a57ce582f3e80d
gdb/ChangeLog
gdb/tui/tui-winsource.c
gdb/tui/tui-winsource.h
gdb/tui/tui.c