Consolidate "if"s in tui_show_frame_info
authorTom Tromey <tom@tromey.com>
Mon, 24 Jun 2019 03:00:01 +0000 (21:00 -0600)
committerTom Tromey <tom@tromey.com>
Wed, 17 Jul 2019 18:18:52 +0000 (12:18 -0600)
commit9ad7fdef7c72b2aca0398ce8e63b89e560873807
tree84ba4c66969d0db89890d40a1209cca4a078abc0
parent5813316fa4aeaf52f374c20c7fdb9747b88fa8ca
Consolidate "if"s in tui_show_frame_info

tui_show_frame_info has two parallel "if"s with the same condition and
no intervening code.  The second "if" perhaps wasn't obviously
identical, but earlier refactorings made it clearer, by pointing out
that only source and disassembly windows can be handled here.  This
merges the two statements.

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

* tui/tui-stack.c (tui_show_frame_info): Consolidate "if"s.
gdb/ChangeLog
gdb/tui/tui-stack.c