diff options
author | vapier@chromium.org <vapier@chromium.org> | 2015-07-20 06:19:49 +0000 |
---|---|---|
committer | vapier@chromium.org <vapier@chromium.org> | 2015-07-20 06:19:49 +0000 |
commit | 85e4cf80298364680e00dcf86d346dac51d53fd5 (patch) | |
tree | 9b16ecb9eba5e22ceb9edf949faff002c584de1c /src/google_breakpad/processor/process_state.h | |
parent | Add ELF header analysis when checking for instruction pointer in code. (diff) | |
download | breakpad-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/google_breakpad/processor/process_state.h')
0 files changed, 0 insertions, 0 deletions