diff options
| author | Jonas Devlieghere <jonas@devlieghere.com> | 2025-04-10 15:36:28 -0700 |
|---|---|---|
| committer | GitHub <noreply@github.com> | 2025-04-10 15:36:28 -0700 |
| commit | 2b984fd0e396fe6ab30cd823ea2f65f33f75409c (patch) | |
| tree | cb4bdce09e837dabfb9de67bb1535ff0457502c8 /lldb/source/Core/Debugger.cpp | |
| parent | 613601978073058f4a4620e93bb84ac8f387934a (diff) | |
[lldb] Support programmatically setting the statusline format (NFC) (#135250)
Support programmatically setting the statusline format. I want to use
this API downstream, to change the statusline format for the Swift REPL.
Diffstat (limited to 'lldb/source/Core/Debugger.cpp')
| -rw-r--r-- | lldb/source/Core/Debugger.cpp | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/lldb/source/Core/Debugger.cpp b/lldb/source/Core/Debugger.cpp index 51029f91eb12..bfec1fa64ea5 100644 --- a/lldb/source/Core/Debugger.cpp +++ b/lldb/source/Core/Debugger.cpp @@ -484,6 +484,11 @@ const FormatEntity::Entry *Debugger::GetStatuslineFormat() const { return GetPropertyAtIndexAs<const FormatEntity::Entry *>(idx); } +bool Debugger::SetStatuslineFormat(const FormatEntity::Entry &format) { + constexpr uint32_t idx = ePropertyStatuslineFormat; + return SetPropertyAtIndex(idx, format); +} + bool Debugger::GetUseAutosuggestion() const { const uint32_t idx = ePropertyShowAutosuggestion; return GetPropertyAtIndexAs<bool>( |
