Simplify command window creation
authorTom Tromey <tom@tromey.com>
Sun, 16 Jun 2019 16:32:35 +0000 (10:32 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 25 Jun 2019 13:48:25 +0000 (07:48 -0600)
commit82432e10143669d4936848d77e2a7b78c62c26e0
treedb4d02a4e1a63733c44df3a39a90ebacd4d913b3
parentec328aa512ee09ab326d59b417836bb950083230
Simplify command window creation

make_command_window is never called when *win_info_ptr is non-NULL, so
this patch simplifies the function by removing the parameter and
having it return its result directly.  This in turn makes it more
obvious that a NULL check in show_source_disasm_command can be
removed.

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

* tui/tui-layout.c (make_command_window): Remove win_info_ptr
parameter.  Return the new window.
(show_source_disasm_command): Update and remove NULL check.
(show_source_or_disasm_and_command): Update.
gdb/ChangeLog
gdb/tui/tui-layout.c