mirror of
https://github.com/intel/llvm.git
synced 2026-01-16 21:55:39 +08:00
[reproducer] Post-commit cleanup
After committing the initial reproducer feature I noticed a few small issues which warranted addressing here. It fixes incorrect documentation in the command object and extract some duplicated code into the debugger object. llvm-svn: 346919
This commit is contained in:
@@ -424,6 +424,13 @@ void Debugger::SetReproducerPath(llvm::StringRef p) {
|
||||
llvm::consumeError(std::move(e));
|
||||
}
|
||||
|
||||
llvm::Error Debugger::SetReproducerCapture(bool b) {
|
||||
auto &r = repro::Reproducer::Instance();
|
||||
if (auto e = r.SetGenerateReproducer(false))
|
||||
return e;
|
||||
return llvm::Error::success();
|
||||
}
|
||||
|
||||
const FormatEntity::Entry *Debugger::GetThreadFormat() const {
|
||||
const uint32_t idx = ePropertyThreadFormat;
|
||||
return m_collection_sp->GetPropertyAtIndexAsFormatEntity(nullptr, idx);
|
||||
|
||||
Reference in New Issue
Block a user