diff options
author | Tom Tromey <tom@tromey.com> | 2019-07-05 12:34:31 -0600 |
---|---|---|
committer | Tom Tromey <tom@tromey.com> | 2019-08-13 14:52:09 -0600 |
commit | cc0c3ffbc975fe764f6c4746611a836e7a4ce379 (patch) | |
tree | 77fdb3d0828b251896652ce65af73b997e12e0fb /gdb/xcoffread.c | |
parent | 3f3ffe54e229482bdb0785ae2162f03d60870400 (diff) | |
download | gdb-cc0c3ffbc975fe764f6c4746611a836e7a4ce379.zip gdb-cc0c3ffbc975fe764f6c4746611a836e7a4ce379.tar.gz gdb-cc0c3ffbc975fe764f6c4746611a836e7a4ce379.tar.bz2 |
Two simplifications in tui-layout.c
This patch simplifies some code in tui-layout.c.
In show_layout, all the layout settings can be handled by a single
switch statement. In show_source_disasm_command and
show_source_or_disasm_and_command, there is no need to check the
current layout, as the caller has already done so.
gdb/ChangeLog
2019-08-13 Tom Tromey <tom@tromey.com>
* tui/tui-layout.c (show_layout): Unify all layout cases into a
single switch.
(show_source_disasm_command, show_source_or_disasm_and_command):
Don't check current layout.
Diffstat (limited to 'gdb/xcoffread.c')
0 files changed, 0 insertions, 0 deletions