aboutsummaryrefslogtreecommitdiff
path: root/dm
diff options
context:
space:
mode:
authormtklein <mtklein@chromium.org>2014-06-18 11:44:15 -0700
committerCommit bot <commit-bot@chromium.org>2014-06-18 11:44:18 -0700
commit30e6e2af14e84216b1c113fd7500d0822bc81daa (patch)
tree16243d88ccd219ee59df299ad1304c2f566e1051 /dm
parentf01a6c3663970ccd6e1882e76a887e0fda467b77 (diff)
downloadskia-30e6e2af14e84216b1c113fd7500d0822bc81daa.tar.gz
Add basic stacktrace handler using libunwind.
This means we will all have to apt-get install libunwind8-dev on Linux. Mac comes with everything we need already. BUG=skia: R=reed@google.com, mtklein@google.com Author: mtklein@chromium.org Review URL: https://codereview.chromium.org/343583005
Diffstat (limited to 'dm')
-rw-r--r--dm/DM.cpp2
1 files changed, 2 insertions, 0 deletions
diff --git a/dm/DM.cpp b/dm/DM.cpp
index 776b642e7b..0de661677a 100644
--- a/dm/DM.cpp
+++ b/dm/DM.cpp
@@ -9,6 +9,7 @@
#include "SkString.h"
#include "Test.h"
#include "gm.h"
+#include "CrashHandler.h"
#include "DMBenchTask.h"
#include "DMCpuGMTask.h"
@@ -215,6 +216,7 @@ static void append_matching_factories(Registry* head, SkTDArray<typename Registr
int tool_main(int argc, char** argv);
int tool_main(int argc, char** argv) {
+ SetupCrashHandler();
SkAutoGraphics ag;
SkCommandLineFlags::Parse(argc, argv);