Fix build breakage with --disable-tui
authorTom Tromey <tom@tromey.com>
Mon, 2 Dec 2019 23:12:19 +0000 (16:12 -0700)
committerTom Tromey <tom@tromey.com>
Mon, 2 Dec 2019 23:12:19 +0000 (16:12 -0700)
commitde2396d07844ca39a1893a11ead375acf2556890
tree68152e8c591a286123ed15d49dec38d0dbe182fb
parent638d85bce02264cd6180a240a1d033fb1ea58e26
Fix build breakage with --disable-tui

An earlier patch introduced a unit test for tui_copy_source_line.
However if the TUI is not built (as is apparently the case on some of
the buildbot builders), then this will fail to link.

This patch fixes the problem.  Tested by rebuilding with the TUI
disabled.

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

* unittests/tui-selftests.c (run_tests): Make conditional.
(_initialize_tui_selftest): Make conditional.

Change-Id: I964811c7635be24cf6c53920e74e920914503674
gdb/ChangeLog
gdb/unittests/tui-selftests.c
This page took 0.025785 seconds and 4 git commands to generate.