Warn and be ok with symbol services failing.

This commit is contained in:
Ben Vanik
2016-02-21 14:26:16 -08:00
parent 8bf5eba098
commit 06ba273492
3 changed files with 10 additions and 4 deletions

View File

@@ -140,10 +140,15 @@ bool Processor::Setup() {
frontend_ = std::move(frontend);
// Stack walker is used when profiling, debugging, and dumping.
// Note that creation may fail, in which case we'll have to disable those
// features.
stack_walker_ = StackWalker::Create(backend_->code_cache());
if (!stack_walker_) {
XELOGE("Unable to create stack walker");
return false;
// TODO(benvanik): disable features.
if (FLAGS_debug) {
XELOGW("Disabling --debug due to lack of stack walker");
FLAGS_debug = false;
}
}
// Open the trace data path, if requested.