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
This commit is contained in:
mseaborn@chromium.org 2013-09-05 21:34:38 +00:00
parent b097e31d92
commit 24c6c0aaef

View File

@ -391,7 +391,7 @@ bool ExceptionHandler::HandleSignal(int sig, siginfo_t* info, void* uc) {
bool signal_pid_trusted = info->si_code == SI_USER || bool signal_pid_trusted = info->si_code == SI_USER ||
info->si_code == SI_TKILL; info->si_code == SI_TKILL;
if (signal_trusted || (signal_pid_trusted && info->si_pid == getpid())) { 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; CrashContext context;
memcpy(&context.siginfo, info, sizeof(siginfo_t)); memcpy(&context.siginfo, info, sizeof(siginfo_t));
@ -469,7 +469,7 @@ bool ExceptionHandler::GenerateDump(CrashContext *context) {
int r, status; int r, status;
// Allow the child to ptrace us // Allow the child to ptrace us
sys_prctl(PR_SET_PTRACER, child); sys_prctl(PR_SET_PTRACER, child, 0, 0, 0);
SendContinueSignalToChild(); SendContinueSignalToChild();
do { do {
r = sys_waitpid(child, &status, __WALL); r = sys_waitpid(child, &status, __WALL);
@ -573,7 +573,7 @@ bool ExceptionHandler::WriteMinidump() {
} }
// Allow this process to be dumped. // Allow this process to be dumped.
sys_prctl(PR_SET_DUMPABLE, 1); sys_prctl(PR_SET_DUMPABLE, 1, 0, 0, 0);
CrashContext context; CrashContext context;
int getcontext_result = getcontext(&context.context); int getcontext_result = getcontext(&context.context);