aboutsummaryrefslogtreecommitdiff
path: root/lldb/source/API/SBDebugger.cpp
diff options
context:
space:
mode:
authorJonas Devlieghere <jonas@devlieghere.com>2023-09-14 22:16:24 -0700
committerGitHub <noreply@github.com>2023-09-14 22:16:24 -0700
commit111bc6f1fe6536ac091d4490c112ce7242e00349 (patch)
tree790b19e9887a06ae35f4742de9644867139e819a /lldb/source/API/SBDebugger.cpp
parent7c229f6e85478bb0626a5e598f47b7be94bb50b0 (diff)
downloadllvm-111bc6f1fe6536ac091d4490c112ce7242e00349.zip
llvm-111bc6f1fe6536ac091d4490c112ce7242e00349.tar.gz
llvm-111bc6f1fe6536ac091d4490c112ce7242e00349.tar.bz2
[lldb] Add config and decorator for wide character support in Editline (#66447)
Add a configuration entry for whether LLDB was configured with wide character support in Editline and use it in a decorator to guard the UTF-8 prompt test.
Diffstat (limited to 'lldb/source/API/SBDebugger.cpp')
-rw-r--r--lldb/source/API/SBDebugger.cpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/lldb/source/API/SBDebugger.cpp b/lldb/source/API/SBDebugger.cpp
index 5328e07..fbcf30e 100644
--- a/lldb/source/API/SBDebugger.cpp
+++ b/lldb/source/API/SBDebugger.cpp
@@ -781,6 +781,9 @@ SBStructuredData SBDebugger::GetBuildConfiguration() {
AddBoolConfigEntry(
*config_up, "editline", LLDB_ENABLE_LIBEDIT,
"A boolean value that indicates if editline support is enabled in LLDB");
+ AddBoolConfigEntry(*config_up, "editline_wchar", LLDB_EDITLINE_USE_WCHAR,
+ "A boolean value that indicates if editline wide "
+ "characters support is enabled in LLDB");
AddBoolConfigEntry(
*config_up, "lzma", LLDB_ENABLE_LZMA,
"A boolean value that indicates if lzma support is enabled in LLDB");