gdb/testsuite/tui: Split enter_tui into two procs
authorAndrew Burgess <andrew.burgess@embecosm.com>
Tue, 7 Jan 2020 00:30:35 +0000 (00:30 +0000)
committerAndrew Burgess <andrew.burgess@embecosm.com>
Thu, 9 Jan 2020 23:11:43 +0000 (23:11 +0000)
commitb40aa28fb5de5e84bd3409f54138def0ba904a9a
treed9a17fdda240abb3c3ce436c19f78a9a14d71bcd
parent63ffd7c9131c0e9723016d33cf8d435cc508d02b
gdb/testsuite/tui: Split enter_tui into two procs

Split Term::enter_tui into two procedures, a core which does the
setup, but doesn't actually enable tui mode, and the old enter_tui
that calls the new core, and then enables tui mode.

This is going to be useful in a later commit.

gdb/testsuite/ChangeLog:

* lib/tuiterm.exp (Term::prepare_for_tui): New proc.
(Term::enter_tui): Use Term::prepare_for_tui.

Change-Id: I501dfb2ddaa4a4e7246a5ad319ab428e4f42b3af
gdb/testsuite/ChangeLog
gdb/testsuite/lib/tuiterm.exp