aboutsummaryrefslogtreecommitdiffstats
path: root/debuggerd/debuggerd.c
diff options
context:
space:
mode:
authorChris Dearman <chris@mips.com>2012-08-10 17:06:20 -0700
committerRaghu Gandham <raghu@mips.com>2012-08-10 18:16:20 -0700
commit231e3c83a3a70b11160fb0da108ebf2e0e7470e2 (patch)
tree0469db2e9a4118ffdd3eacfa096286adf45d4a8b /debuggerd/debuggerd.c
parent7b682c4787e06be193ac3d2a1071e0feb5e4ba58 (diff)
downloadsystem_core-231e3c83a3a70b11160fb0da108ebf2e0e7470e2.tar.gz
system_core-231e3c83a3a70b11160fb0da108ebf2e0e7470e2.tar.bz2
system_core-231e3c83a3a70b11160fb0da108ebf2e0e7470e2.zip
[MIPS] debuggerd and libcorkscrew support
Change-Id: I5a241dc2e470148be0ad2c138e31f1aba5ab8812
Diffstat (limited to 'debuggerd/debuggerd.c')
-rw-r--r--debuggerd/debuggerd.c7
1 files changed, 6 insertions, 1 deletions
diff --git a/debuggerd/debuggerd.c b/debuggerd/debuggerd.c
index 8009631c..55222c50 100644
--- a/debuggerd/debuggerd.c
+++ b/debuggerd/debuggerd.c
@@ -330,7 +330,10 @@ static void handle_request(int fd) {
case SIGFPE:
case SIGSEGV:
case SIGPIPE:
- case SIGSTKFLT: {
+#ifdef SIGSTKFLT
+ case SIGSTKFLT:
+#endif
+ {
XLOG("stopped -- fatal signal\n");
/*
* Send a SIGSTOP to the process to make all of
@@ -424,7 +427,9 @@ static int do_server() {
signal(SIGFPE, SIG_DFL);
signal(SIGSEGV, SIG_DFL);
signal(SIGPIPE, SIG_DFL);
+#ifdef SIGSTKFLT
signal(SIGSTKFLT, SIG_DFL);
+#endif
logsocket = socket_local_client("logd",
ANDROID_SOCKET_NAMESPACE_ABSTRACT, SOCK_DGRAM);