summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/UnixSignals.cpp
Commit message (Collapse)AuthorAgeFilesLines
* Fix Clang-tidy modernize-use-nullptr warnings in some files in ↵Eugene Zelenko2016-02-181-37/+21
| | | | | | source/Target; other minor fixes. llvm-svn: 261242
* Target: fix -Wcast-qual warningSaleem Abdulrasool2016-01-221-1/+1
| | | | | | | We were unnecessarily stripping the const qualifier on the temporary variable. Restore the constness to avoid the warning. NFC. llvm-svn: 258547
* Welcome to NetBSD signalsKamil Rytarowski2015-12-151-1/+3
| | | | | | | | | | | | | | | | | | | | | | | | | Summary: Signals 1-32 are matching the default UNIX platform. There are platform specific ones above 32. From the `/usr/include/sys/signal.h` header: ``` #define SIGPWR 32 /* power fail/restart (not reset when caught) */ #ifdef _KERNEL #define SIGRTMIN 33 /* Kernel only; not exposed to userland yet */ #define SIGRTMAX 63 /* Kernel only; not exposed to userland yet */ #endif ``` Reviewers: emaste, joerg Subscribers: lldb-commits Differential Revision: http://reviews.llvm.org/D15482 llvm-svn: 255592
* Fix build and some warnings after r250798Tamas Berghammer2015-10-201-2/+2
| | | | llvm-svn: 250810
* [LLDB] Insert names with same signo as alias instead of a new entryMohit K. Bhakkad2015-10-201-41/+52
| | | | | | | | Reviewers: clayborg, labath. Subscribers: jaydeep, dsanders, bhushan, sagar, nitesh.jain, emaste,lldb-commits. Differential Revision: http://reviews.llvm.org/D13646 llvm-svn: 250801
* Refactor Unix signals.Chaoren Lin2015-07-141-5/+59
| | | | | | | | | | | | | | | | | | Summary: - Consolidate Unix signals selection in UnixSignals. - Make Unix signals available from platform. - Add jSignalsInfo packet to retrieve Unix signals from remote platform. - Get a copy of the platform signal for each remote process. - Update SB API for signals. - Update signal utility in test suite. Reviewers: ovyalov, clayborg Subscribers: chaoren, jingham, labath, emaste, tberghammer, lldb-commits Differential Revision: http://reviews.llvm.org/D11094 llvm-svn: 242101
* Moved Args::StringToXIntYZ to StringConvert::ToXIntYZVince Harron2015-01-151-2/+2
| | | | | | | | | | The refactor was motivated by some comments that Greg made http://reviews.llvm.org/D6918 and also to break a dependency cascade that caused functions linking in string->int conversion functions to pull in most of lldb llvm-svn: 226199
* Change the default handling for SIGALRM and SIGCHLD to not notify.Jim Ingham2013-10-281-2/+2
| | | | | | <rdar://problem/15208799> llvm-svn: 193530
* Fixed some issues with ARM backtraces by not processing any push/pop Greg Clayton2011-07-061-33/+33
| | | | | | | | | | | | | | instructions if they are conditional. Also fixed issues where the PC wasn't getting bit zero stripped for ARM targets when a stack frame was thumb. We now properly call through the GetOpcodeLoadAddress() functions to make sure the addresses are properly stripped for any targets that may decorate up their addresses. We now don't pass the SIGSTOP signals along. We can revisit this soon, but currently this was interfering with debugging some older ARM targets that don't have vCont support in the GDB server. llvm-svn: 134461
* Back up both the register AND the stop state when calling functions.Jim Ingham2011-01-201-1/+1
| | | | | | | Set the thread state to "bland" before calling functions so they don't inherit the pending signals and die. llvm-svn: 123869
* Change the default signal setting for SIBABRT to SUPPRESS the signal. Why?Greg Clayton2011-01-101-1/+1
| | | | | | | | | | | | | | | | When debugging, if an expression hits a SIGABRT, it the expression ends up completing and stopping due the the "SIGABRT". Then the next thing that runs (another expression, or continuing the program) ends up progating the SIGABRT and causing the parent processes to die. We should probably think of a different solution where we suppress any signal that resulted due to an expression, or we modifyin the UnixSignals class to contain a row for "suppress for expression". So the settings for SIGABRT are: suppress = true, stop = true, and notify = true. llvm-svn: 123157
* Fixed the UnixSignals class to be able to get a signal by name, short name, ↵Greg Clayton2010-10-151-44/+25
| | | | | | | | or signal number when using: int32_t UnixSignals::GetSignalNumberFromName (const char *name) const; llvm-svn: 116641
* Added short names and descriptions to the UnixSignals class. Also cleaned upGreg Clayton2010-10-151-108/+108
| | | | | | the code a bit. llvm-svn: 116561
* Fixed process.gdb-remote to be able to properly propagate the signals andGreg Clayton2010-10-091-32/+34
| | | | | | obey the UnixSignals table that we have in the process. llvm-svn: 116139
* Initial checkin of lldb code from internal Apple repo.Chris Lattner2010-06-081-0/+310
llvm-svn: 105619
OpenPOWER on IntegriCloud