Use libdl to get symbols for backtraces
authorjochen <jochen@chromium.org>
Thu, 19 Mar 2015 15:43:22 +0000 (08:43 -0700)
committerCommit bot <commit-bot@chromium.org>
Thu, 19 Mar 2015 15:43:35 +0000 (15:43 +0000)
commit843634994fce8da65323d3ba046d32aefd6eba1a
treeb62faa2594a67975afbde55b6db1fe2bcf04a0d7
parent22d62cea4d4d01d30286411cd11a6f3e15083cc0
Use libdl to get symbols for backtraces

With this patch, it'll look like this:

$ out/x64.optdebug/d8 --expose-trigger-failure test/mjsunit/mjsunit.js test/mjsunit/verify-assert-false.js

==== C stack trace ===============================

 1: V8_Fatal
 2: v8::internal::FunctionCallbackArguments::Call(void (*)(v8::FunctionCallbackInfo<v8::Value> const&))
 3: 0x727ced
 4: 0x72b6ba
 5: 0x188c7f607f9b

BUG=none
R=svenpanne@chromium.org
LOG=y

Review URL: https://codereview.chromium.org/1018313003

Cr-Commit-Position: refs/heads/master@{#27318}
BUILD.gn
src/base/logging.cc
tools/gyp/v8.gyp