[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:
Jonas Devlieghere
2018-11-15 01:05:40 +00:00
parent bfb75348e2
commit df14b94243
3 changed files with 14 additions and 8 deletions

View File

@@ -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);