aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorLars Volker <lv@cloudera.com>2017-03-24 19:57:23 +0100
committerMike Frysinger <vapier@chromium.org>2017-03-28 19:41:00 +0000
commit219d0b15c4f71b2030fc81d8f6396b446fff4ce9 (patch)
tree06f2d9e2ecd028cb06710d6815b967d3e7889b06
parentminidump_dump: fix up init paths (diff)
downloadbreakpad-219d0b15c4f71b2030fc81d8f6396b446fff4ce9.tar.xz
Increase maximum number of threads for minidump_stackwalk.
BUG= Change-Id: I361d8812df7b2977fe2630289059d31c3c9a4cc3 Reviewed-on: https://chromium-review.googlesource.com/459010 Reviewed-by: Mike Frysinger <vapier@chromium.org>
-rw-r--r--src/processor/minidump_stackwalk.cc4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/processor/minidump_stackwalk.cc b/src/processor/minidump_stackwalk.cc
index 8f83969f..650e1efe 100644
--- a/src/processor/minidump_stackwalk.cc
+++ b/src/processor/minidump_stackwalk.cc
@@ -35,6 +35,7 @@
#include <stdio.h>
#include <string.h>
+#include <limits>
#include <string>
#include <vector>
@@ -53,6 +54,7 @@ namespace {
using google_breakpad::BasicSourceLineResolver;
using google_breakpad::Minidump;
+using google_breakpad::MinidumpThreadList;
using google_breakpad::MinidumpProcessor;
using google_breakpad::ProcessState;
using google_breakpad::SimpleSymbolSupplier;
@@ -81,6 +83,8 @@ bool PrintMinidumpProcess(const string &minidump_file,
BasicSourceLineResolver resolver;
MinidumpProcessor minidump_processor(symbol_supplier.get(), &resolver);
+ // Increase the maximum number of threads.
+ MinidumpThreadList::set_max_threads(std::numeric_limits<uint32_t>::max());
// Process the minidump.
Minidump dump(minidump_file);
if (!dump.Read()) {