Go to file
Pavel Labath c4e25c9648 Report inferior SIGSEGV as a signal instead of an exception on linux
Summary:
Previously, we reported inferior receiving SIGSEGV (or SIGILL, SIGFPE, SIGBUS) as an "exception"
to LLDB, presumably to match OSX behaviour. Beside the fact that we were basically lying to the
user, this was also causing problems with inferiors which handle SIGSEGV by themselves, since
LLDB was unable to reinject this signal back into the inferior.

This commit changes LLGS to report SIGSEGV as a signal. This has necessitated some changes in the
test-suite, which had previously used eStopReasonException to locate threads that crashed. Now it
uses platform-specific logic, which in the case of linux searches for eStopReasonSignaled with
signal=SIGSEGV.

I have also added the ability to set the description of StopInfoUnixSignal using the description
field of the gdb-remote packet. The linux stub uses this to display additional information about
the segfault (invalid address, address access protected, etc.).

Test Plan: All tests pass on linux and osx.

Reviewers: ovyalov, clayborg, emaste

Subscribers: emaste, lldb-commits

Differential Revision: http://reviews.llvm.org/D10057

llvm-svn: 238549
2015-05-29 10:13:03 +00:00
clang Refactor MacroInfo so macro arguments can be iterated with range-based for loops. 2015-05-29 09:15:24 +00:00
clang-tools-extra [clang-tidy] Fix for llvm.org/PR23355 2015-05-29 09:49:59 +00:00
compiler-rt [ASan] Fix flaky tests (see https://llvm.org/bugs/show_bug.cgi?id=23230). 2015-05-29 06:45:13 +00:00
debuginfo-tests New round of fixes for "Always compile debuginfo-tests for the host triple" 2014-10-18 23:47:59 +00:00
libclc Use a more accurate implementation for exp 2015-05-13 03:55:09 +00:00
libcxx Fix PR#23647 - make_shared<volatile bool> - second try 2015-05-27 22:44:47 +00:00
libcxxabi Make sure !empty() before calling String::front(). 2015-05-26 23:14:26 +00:00
libunwind Code cleanup: Remove duplicated line. 2015-05-17 13:49:18 +00:00
lld COFF: Return an error_code directly. 2015-05-28 20:39:29 +00:00
lldb Report inferior SIGSEGV as a signal instead of an exception on linux 2015-05-29 10:13:03 +00:00
llgo [llgo] cmd/llgoi: use line editor 2015-05-23 15:16:09 +00:00
llvm [TableGen] Remove convertValue functions for UnOpInit, BinOpInit, and TernOpInit as they weren't able to be called. 2015-05-29 05:51:32 +00:00
openmp Fix comment about balanced affinity 2015-05-27 23:27:33 +00:00
polly Update isl to 93b8e43d 2015-05-28 13:32:11 +00:00