summaryrefslogtreecommitdiffstats
path: root/lldb/source/Target/UnixSignals.cpp
diff options
context:
space:
mode:
authorGreg Clayton <gclayton@apple.com>2011-07-06 04:07:21 +0000
committerGreg Clayton <gclayton@apple.com>2011-07-06 04:07:21 +0000
commit34132754bdfd94be8199945b3f4c8dbe8bd67cf3 (patch)
treea5484c20520094a78a9d9cc93656d414f9df6dc2 /lldb/source/Target/UnixSignals.cpp
parenta98034a25e3084073f1068568e1d1b95ed243f71 (diff)
downloadbcm5719-llvm-34132754bdfd94be8199945b3f4c8dbe8bd67cf3.tar.gz
bcm5719-llvm-34132754bdfd94be8199945b3f4c8dbe8bd67cf3.zip
Fixed some issues with ARM backtraces by not processing any push/pop
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
Diffstat (limited to 'lldb/source/Target/UnixSignals.cpp')
-rw-r--r--lldb/source/Target/UnixSignals.cpp66
1 files changed, 33 insertions, 33 deletions
diff --git a/lldb/source/Target/UnixSignals.cpp b/lldb/source/Target/UnixSignals.cpp
index 1398639facd..7fe81f85e85 100644
--- a/lldb/source/Target/UnixSignals.cpp
+++ b/lldb/source/Target/UnixSignals.cpp
@@ -59,39 +59,39 @@ UnixSignals::Reset ()
// order, you can either subclass this class, and use Add & Remove to change them
// or you can subclass and build them afresh in your constructor;
m_signals.clear();
- // SIGNO NAME SHORT NAME SUPPRESS STOP NOTIFY DESCRIPTION
- // ====== ============ ========== ========= ====== ====== ===================================================
- AddSignal (1, "SIGHUP", "HUP", false, true, true, "hangup");
- AddSignal (2, "SIGINT", "INT", true, true, true, "interrupt");
- AddSignal (3, "SIGQUIT", "QUIT", false, true, true, "quit");
- AddSignal (4, "SIGILL", "ILL", false, true, true, "illegal instruction");
- AddSignal (5, "SIGTRAP", "TRAP", true, true, true, "trace trap (not reset when caught)");
- AddSignal (6, "SIGABRT", "ABRT", false, true, true, "abort()");
- AddSignal (7, "SIGEMT", "EMT", false, true, true, "pollable event");
- AddSignal (8, "SIGFPE", "FPE", false, true, true, "floating point exception");
- AddSignal (9, "SIGKILL", "KILL", false, true, true, "kill");
- AddSignal (10, "SIGBUS", "BUS", false, true, true, "bus error");
- AddSignal (11, "SIGSEGV", "SEGV", false, true, true, "segmentation violation");
- AddSignal (12, "SIGSYS", "SYS", false, true, true, "bad argument to system call");
- AddSignal (13, "SIGPIPE", "PIPE", false, true, true, "write on a pipe with no one to read it");
- AddSignal (14, "SIGALRM", "ALRM", false, false, true, "alarm clock");
- AddSignal (15, "SIGTERM", "TERM", false, true, true, "software termination signal from kill");
- AddSignal (16, "SIGURG", "URG", false, false, false, "urgent condition on IO channel");
- AddSignal (17, "SIGSTOP", "STOP", false, true, true, "sendable stop signal not from tty");
- AddSignal (18, "SIGTSTP", "TSTP", false, true, true, "stop signal from tty");
- AddSignal (19, "SIGCONT", "CONT", false, true, true, "continue a stopped process");
- AddSignal (20, "SIGCHLD", "CHLD", false, false, true, "to parent on child stop or exit");
- AddSignal (21, "SIGTTIN", "TTIN", false, true, true, "to readers process group upon background tty read");
- AddSignal (22, "SIGTTOU", "TTOU", false, true, true, "to readers process group upon background tty write");
- AddSignal (23, "SIGIO", "IO", false, false, false, "input/output possible signal");
- AddSignal (24, "SIGXCPU", "XCPU", false, true, true, "exceeded CPU time limit");
- AddSignal (25, "SIGXFSZ", "XFSZ", false, true, true, "exceeded file size limit");
- AddSignal (26, "SIGVTALRM", "VTALRM", false, false, false, "virtual time alarm");
- AddSignal (27, "SIGPROF", "PROF", false, false, false, "profiling time alarm");
- AddSignal (28, "SIGWINCH", "WINCH", false, false, false, "window size changes");
- AddSignal (29, "SIGINFO", "INFO", false, true, true, "information request");
- AddSignal (30, "SIGUSR1", "USR1", false, true, true, "user defined signal 1");
- AddSignal (31, "SIGUSR2", "USR2", false, true, true, "user defined signal 2");
+ // SIGNO NAME SHORT NAME SUPPRESS STOP NOTIFY DESCRIPTION
+ // ====== ============ ========== ======== ====== ====== ===================================================
+ AddSignal (1, "SIGHUP", "HUP", false, true , true , "hangup");
+ AddSignal (2, "SIGINT", "INT", true , true , true , "interrupt");
+ AddSignal (3, "SIGQUIT", "QUIT", false, true , true , "quit");
+ AddSignal (4, "SIGILL", "ILL", false, true , true , "illegal instruction");
+ AddSignal (5, "SIGTRAP", "TRAP", true , true , true , "trace trap (not reset when caught)");
+ AddSignal (6, "SIGABRT", "ABRT", false, true , true , "abort()");
+ AddSignal (7, "SIGEMT", "EMT", false, true , true , "pollable event");
+ AddSignal (8, "SIGFPE", "FPE", false, true , true , "floating point exception");
+ AddSignal (9, "SIGKILL", "KILL", false, true , true , "kill");
+ AddSignal (10, "SIGBUS", "BUS", false, true , true , "bus error");
+ AddSignal (11, "SIGSEGV", "SEGV", false, true , true , "segmentation violation");
+ AddSignal (12, "SIGSYS", "SYS", false, true , true , "bad argument to system call");
+ AddSignal (13, "SIGPIPE", "PIPE", false, true , true , "write on a pipe with no one to read it");
+ AddSignal (14, "SIGALRM", "ALRM", false, false, true , "alarm clock");
+ AddSignal (15, "SIGTERM", "TERM", false, true , true , "software termination signal from kill");
+ AddSignal (16, "SIGURG", "URG", false, false, false, "urgent condition on IO channel");
+ AddSignal (17, "SIGSTOP", "STOP", true , true , true , "sendable stop signal not from tty");
+ AddSignal (18, "SIGTSTP", "TSTP", false, true , true , "stop signal from tty");
+ AddSignal (19, "SIGCONT", "CONT", false, true , true , "continue a stopped process");
+ AddSignal (20, "SIGCHLD", "CHLD", false, false, true , "to parent on child stop or exit");
+ AddSignal (21, "SIGTTIN", "TTIN", false, true , true , "to readers process group upon background tty read");
+ AddSignal (22, "SIGTTOU", "TTOU", false, true , true , "to readers process group upon background tty write");
+ AddSignal (23, "SIGIO", "IO", false, false, false, "input/output possible signal");
+ AddSignal (24, "SIGXCPU", "XCPU", false, true , true , "exceeded CPU time limit");
+ AddSignal (25, "SIGXFSZ", "XFSZ", false, true , true , "exceeded file size limit");
+ AddSignal (26, "SIGVTALRM", "VTALRM", false, false, false, "virtual time alarm");
+ AddSignal (27, "SIGPROF", "PROF", false, false, false, "profiling time alarm");
+ AddSignal (28, "SIGWINCH", "WINCH", false, false, false, "window size changes");
+ AddSignal (29, "SIGINFO", "INFO", false, true , true , "information request");
+ AddSignal (30, "SIGUSR1", "USR1", false, true , true , "user defined signal 1");
+ AddSignal (31, "SIGUSR2", "USR2", false, true , true , "user defined signal 2");
}
void
OpenPOWER on IntegriCloud