Skip to content

Commit ec239e3

Browse files
authored
Merge pull request #4208 from apple/🍒/5.7/cbcb3bcee3ef
[lldb] Don't report progress in the REPL
2 parents 284540d + 824c448 commit ec239e3

File tree

3 files changed

+9
-0
lines changed

3 files changed

+9
-0
lines changed

lldb/include/lldb/Core/Debugger.h

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -305,6 +305,8 @@ class Debugger : public std::enable_shared_from_this<Debugger>,
305305

306306
bool GetShowProgress() const;
307307

308+
bool SetShowProgress(bool show_progress);
309+
308310
llvm::StringRef GetShowProgressAnsiPrefix() const;
309311

310312
llvm::StringRef GetShowProgressAnsiSuffix() const;

lldb/source/Core/Debugger.cpp

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -385,6 +385,12 @@ bool Debugger::GetShowProgress() const {
385385
nullptr, idx, g_debugger_properties[idx].default_uint_value != 0);
386386
}
387387

388+
bool Debugger::SetShowProgress(bool show_progress) {
389+
const uint32_t idx = ePropertyShowProgress;
390+
return m_collection_sp->SetPropertyAtIndexAsBoolean(nullptr, idx,
391+
show_progress);
392+
}
393+
388394
llvm::StringRef Debugger::GetShowProgressAnsiPrefix() const {
389395
const uint32_t idx = ePropertyShowProgressAnsiPrefix;
390396
return m_collection_sp->GetPropertyAtIndexAsString(nullptr, idx, "");

lldb/source/Expression/REPL.cpp

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -25,6 +25,7 @@ using namespace lldb_private;
2525
REPL::REPL(LLVMCastKind kind, Target &target) : m_target(target), m_kind(kind) {
2626
// Make sure all option values have sane defaults
2727
Debugger &debugger = m_target.GetDebugger();
28+
debugger.SetShowProgress(false);
2829
auto exe_ctx = debugger.GetCommandInterpreter().GetExecutionContext();
2930
m_format_options.OptionParsingStarting(&exe_ctx);
3031
m_varobj_options.OptionParsingStarting(&exe_ctx);

0 commit comments

Comments
 (0)