Introduce reset_locator function in tui-layout.c
authorTom Tromey <tom@tromey.com>
Sat, 29 Jun 2019 05:56:25 +0000 (23:56 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:19:13 +0000 (12:19 -0600)
commit1bf605de8e9ae4fcf77c21067ddaf4a242a873f7
treef0f403f374afd5da10bf993ea25e49ac2bbfb396
parent098f9ed48e1c94a2624c825ba93d72b163d41196
Introduce reset_locator function in tui-layout.c

init_and_make_win in tui-layout.c is now only called for the locator
-- earlier changes have made most of the cases here obsolete.  This
patch removes init_and_make_win and introduces a reset_locator
function.  Window creation is now much simpler to follow, because it
is no longer quite so dynamic.  (Though it will become even simpler in
coming patches.)

gdb/ChangeLog
2019-07-17  Tom Tromey  <tom@tromey.com>

* tui/tui-layout.c (show_source_disasm_command): Use
reset_locator.
(reset_locator): New function.
(init_and_make_win): Remove.
(show_source_or_disasm_and_command): Use reset_locator.
gdb/ChangeLog
gdb/tui/tui-layout.c