summaryrefslogtreecommitdiffstats
path: root/lldb/source/API/SBDebugger.cpp
diff options
context:
space:
mode:
authorPavel Labath <pavel@labath.sk>2019-09-02 13:33:12 +0000
committerPavel Labath <pavel@labath.sk>2019-09-02 13:33:12 +0000
commiteafede2afeb45c826957d49c7895a04655f1f08d (patch)
treef33f594fa43974a0fc452e74bce5c4317cca8bea /lldb/source/API/SBDebugger.cpp
parent491fc23a600a0aa4903b4be4eefa9b503295d70b (diff)
downloadbcm5719-llvm-eafede2afeb45c826957d49c7895a04655f1f08d.tar.gz
bcm5719-llvm-eafede2afeb45c826957d49c7895a04655f1f08d.zip
[dotest] Add @skipIfCursesSupportMissing and annotate the new gui test
Summary: The gui command requires curses support, which can be disabled at compile time. This patch adds the ability to detect this situation in the test suite and skip the test accordingly. Reviewers: teemperor, jankratochvil Subscribers: lldb-commits Differential Revision: https://reviews.llvm.org/D67073 llvm-svn: 370658
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r--lldb/source/API/SBDebugger.cpp7
1 files changed, 7 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index f5da4677b4e..7e6f8d2c6e9 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -624,6 +624,13 @@ SBStructuredData SBDebugger::GetBuildConfiguration() {
AddBoolConfigEntry(
*config_up, "xml", XMLDocument::XMLEnabled(),
"A boolean value that indicates if XML support is enabled in LLDB");
+ bool have_curses = true;
+#ifdef LLDB_DISABLE_CURSES
+ have_curses = false;
+#endif
+ AddBoolConfigEntry(
+ *config_up, "curses", have_curses,
+ "A boolean value that indicates if curses support is enabled in LLDB");
AddLLVMTargets(*config_up);
SBStructuredData data;
OpenPOWER on IntegriCloud