aboutsummaryrefslogtreecommitdiff
path: root/src/tools
diff options
context:
space:
mode:
authorvapier@chromium.org <vapier@chromium.org>2015-07-20 06:19:49 +0000
committervapier@chromium.org <vapier@chromium.org>2015-07-20 06:19:49 +0000
commit85e4cf80298364680e00dcf86d346dac51d53fd5 (patch)
tree9b16ecb9eba5e22ceb9edf949faff002c584de1c /src/tools
parentAdd ELF header analysis when checking for instruction pointer in code. (diff)
downloadbreakpad-85e4cf80298364680e00dcf86d346dac51d53fd5.tar.xz
tests: InstructionPointerMemoryNullPointer: make it work under llvm
When LLVM sees an attempt to dereference a NULL pointer, it will generate invalid opcodes (undefined behavior) which leads to SIGILL which breaks this unittest. Upstream's recommendation in this case is to add volatile markings to get the actual dereference to happen. This is documented in the blog post under "Dereferencing a NULL Pointer": http://blog.llvm.org/2011/05/what-every-c-programmer-should-know.html git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1473 4c0a9323-5329-0410-9bdc-e9ce6186880e
Diffstat (limited to 'src/tools')
0 files changed, 0 insertions, 0 deletions