From 24c6c0aaefa5e508ce58dc06a68f051260050ebc Mon Sep 17 00:00:00 2001 From: "mseaborn@chromium.org" Date: Thu, 5 Sep 2013 21:34:38 +0000 Subject: Update to build against the latest revision of linux_syscall_support.h The prctl() calls must be updated following this LSS change: https://code.google.com/p/linux-syscall-support/source/detail?r=24 BUG=none TEST=build Review URL: https://breakpad.appspot.com/627002 git-svn-id: http://google-breakpad.googlecode.com/svn/trunk@1210 4c0a9323-5329-0410-9bdc-e9ce6186880e --- src/client/linux/handler/exception_handler.cc | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) (limited to 'src/client/linux/handler/exception_handler.cc') diff --git a/src/client/linux/handler/exception_handler.cc b/src/client/linux/handler/exception_handler.cc index ec1f16a3..2808fc90 100644 --- a/src/client/linux/handler/exception_handler.cc +++ b/src/client/linux/handler/exception_handler.cc @@ -391,7 +391,7 @@ bool ExceptionHandler::HandleSignal(int sig, siginfo_t* info, void* uc) { bool signal_pid_trusted = info->si_code == SI_USER || info->si_code == SI_TKILL; if (signal_trusted || (signal_pid_trusted && info->si_pid == getpid())) { - sys_prctl(PR_SET_DUMPABLE, 1); + sys_prctl(PR_SET_DUMPABLE, 1, 0, 0, 0); } CrashContext context; memcpy(&context.siginfo, info, sizeof(siginfo_t)); @@ -469,7 +469,7 @@ bool ExceptionHandler::GenerateDump(CrashContext *context) { int r, status; // Allow the child to ptrace us - sys_prctl(PR_SET_PTRACER, child); + sys_prctl(PR_SET_PTRACER, child, 0, 0, 0); SendContinueSignalToChild(); do { r = sys_waitpid(child, &status, __WALL); @@ -573,7 +573,7 @@ bool ExceptionHandler::WriteMinidump() { } // Allow this process to be dumped. - sys_prctl(PR_SET_DUMPABLE, 1); + sys_prctl(PR_SET_DUMPABLE, 1, 0, 0, 0); CrashContext context; int getcontext_result = getcontext(&context.context); -- cgit v1.2.1