Simplify source and disassembly window creation
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 16:37:25 +0000 (10:37 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:26 +0000 (07:48 -0600)
commit0ed69edaab683b9290a05962faa50d970facfa84
tree71cf4c2c1a9aa4430a3105d0023c36e7912795f5
parent82432e10143669d4936848d77e2a7b78c62c26e0
Simplify source and disassembly window creation

Similar to the previous patch, neither make_source_window nor
make_disasm_window could be called when *win_info_ptr was non-NULL.
This patch simplifies the functions by removing the parameter and
having them return their results directly.

gdb/ChangeLog
2019-06-25  Tom Tromey  <tom@tromey.com>

* tui/tui-layout.c (make_source_window, make_disasm_window)
(make_source_or_disasm_window): Remove win_info_ptr parameter.
Return the new window.
(show_source_disasm_command, show_data)
(show_source_or_disasm_and_command): Update.
gdb/ChangeLog
gdb/tui/tui-layout.c