From 0025a86411145eb7cd4971f9234fc21c7b4aced1 Mon Sep 17 00:00:00 2001 From: Nicolas Geoffray Date: Fri, 11 Jul 2014 08:26:40 +0000 Subject: Revert "Revert "Revert "Add implicit null and stack checks for x86""" Broke the build. This reverts commit 7fb36ded9cd5b1d254b63b3091f35c1e6471b90e. Change-Id: I9df0e7446ff0913a0e1276a558b2ccf6c8f4c949 --- sigchainlib/Android.mk | 13 ------------- sigchainlib/sigchain.cc | 16 ---------------- 2 files changed, 29 deletions(-) (limited to 'sigchainlib') diff --git a/sigchainlib/Android.mk b/sigchainlib/Android.mk index 20c8cac..8e25339 100644 --- a/sigchainlib/Android.mk +++ b/sigchainlib/Android.mk @@ -28,16 +28,3 @@ LOCAL_SHARED_LIBRARIES := liblog libdl LOCAL_ADDITIONAL_DEPENDENCIES := $(LOCAL_PATH)/Android.mk LOCAL_ADDITIONAL_DEPENDENCIES += art/build/Android.common_build.mk include $(BUILD_SHARED_LIBRARY) - -# Build host library. -include $(CLEAR_VARS) -LOCAL_CPP_EXTENSION := $(ART_CPP_EXTENSION) -LOCAL_MODULE_TAGS := optional -LOCAL_IS_HOST_MODULE := true -LOCAL_CFLAGS += $(ART_HOST_CFLAGS) -LOCAL_SRC_FILES := sigchain.cc -LOCAL_MODULE:= libsigchain -LOCAL_ADDITIONAL_DEPENDENCIES += $(LOCAL_PATH)/Android.mk -LOCAL_LDLIBS = -ldl -LOCAL_MULTILIB := both -include $(BUILD_HOST_SHARED_LIBRARY) diff --git a/sigchainlib/sigchain.cc b/sigchainlib/sigchain.cc index 458ad69..5a5805f 100644 --- a/sigchainlib/sigchain.cc +++ b/sigchainlib/sigchain.cc @@ -14,13 +14,7 @@ * limitations under the License. */ -#ifdef HAVE_ANDROID_OS #include -#else -#include -#include -#endif - #include #include #include @@ -73,11 +67,7 @@ static void log(const char* format, ...) { va_list ap; va_start(ap, format); vsnprintf(buf, sizeof(buf), format, ap); -#ifdef HAVE_ANDROID_OS __android_log_write(ANDROID_LOG_ERROR, "libsigchain", buf); -#else - std::cout << buf << "\n"; -#endif va_end(ap); } @@ -114,16 +104,10 @@ void InvokeUserSignalHandler(int sig, siginfo_t* info, void* context) { if ((action.sa_flags & SA_SIGINFO) == 0) { if (action.sa_handler != NULL) { action.sa_handler(sig); - } else { - signal(sig, SIG_DFL); - raise(sig); } } else { if (action.sa_sigaction != NULL) { action.sa_sigaction(sig, info, context); - } else { - signal(sig, SIG_DFL); - raise(sig); } } } -- cgit v1.1