Consolidate setting of current_layout
authorTom Tromey <tom@tromey.com>
Wed, 9 Oct 2019 02:06:09 +0000 (20:06 -0600)
committerTom Tromey <tom@tromey.com>
Tue, 12 Nov 2019 19:29:15 +0000 (12:29 -0700)
commited2c82c364043cf4726541cc7e8011197185b3f8
tree18369482b2b6e123203d05f16476a3664a71cbe5
parentd9fcefd53a7615b116cab0b0cd2085539d12bb6f
Consolidate setting of current_layout

Currently several functions in tui-layout.c set current_layout after
their work is done.  This moves this assignment to show_layout,
instead.

gdb/ChangeLog
2019-11-12  Tom Tromey  <tom@tromey.com>

* tui/tui-layout.c (show_layout): Set current_layout.
(show_source_disasm_command, show_data)
(show_source_or_disasm_and_command): Don't set current_layout.

Change-Id: Id8b23797d68e607f0fcd6d29b8801869d40d1869
gdb/ChangeLog
gdb/tui/tui-layout.c
This page took 0.026989 seconds and 4 git commands to generate.