Simplify show_source_disasm_command
authorTom Tromey <tom@tromey.com>
Mon, 1 Jul 2019 02:46:18 +0000 (20:46 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:19:16 +0000 (12:19 -0600)
commitf4e049775aa3b025501d6b4aae1cdb975505a767
tree4bf2a315859770d8cf37e7f204623c88af766064
parent0379b8837a875403866e2cf1a0315bee1d8d5694
Simplify show_source_disasm_command

This is the first of a few patches to further simplify window
(re-)initialization in tui-layout.c.  When changing the layout, a
window may be created or, if it already exists, simply resized.  These
two cases normally are identical, but this was obscured by the way the
code was written.  This patch changes show_source_disasm_command to
unify the creation and re-initialization cases.

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

* tui/tui-layout.c (show_source_disasm_command): Simplify window
resetting.
gdb/ChangeLog
gdb/tui/tui-layout.c
This page took 0.054339 seconds and 4 git commands to generate.