diff options
author | Matt Fischer <matt.fischer@garmin.com> | 2010-01-11 10:02:06 +0800 |
---|---|---|
committer | Garmin Android technology group <android@garmin.com> | 2010-05-12 14:18:36 -0500 |
commit | e4fa46e75cd0d433b5c6c064720ed7e195cba7c8 (patch) | |
tree | 88ab07e29e66cff45b3588718fa778c8218c4b6e /libc/include/sys/linux-unistd.h | |
parent | c3581dc78a51180d3550d0d04596657cb2db852c (diff) | |
download | bionic-e4fa46e75cd0d433b5c6c064720ed7e195cba7c8.zip bionic-e4fa46e75cd0d433b5c6c064720ed7e195cba7c8.tar.gz bionic-e4fa46e75cd0d433b5c6c064720ed7e195cba7c8.tar.bz2 |
Set SA_RESTORER in sigaction()
GDB looks for specific opcode sequences when trying to recognize a stack
frame as a signal trampoline. The sequences it looks for happen to be those
created when SA_RESTORER is set, since glibc always sets a restorer. This
patch does the same here, so that the trampolines can be correctly identified.
Change-Id: I0ac574a68818cb24d939c3527f3aaeb04b853d04
Diffstat (limited to 'libc/include/sys/linux-unistd.h')
-rw-r--r-- | libc/include/sys/linux-unistd.h | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/libc/include/sys/linux-unistd.h b/libc/include/sys/linux-unistd.h index 12f7704..eb04011 100644 --- a/libc/include/sys/linux-unistd.h +++ b/libc/include/sys/linux-unistd.h @@ -141,6 +141,7 @@ int __rt_sigaction (int sig, const struct sigaction *act, struct si int __rt_sigprocmask (int how, const sigset_t *set, sigset_t *oset, size_t sigsetsize); int __rt_sigtimedwait (const sigset_t *set, struct siginfo_t *info, struct timespec_t *timeout, size_t sigset_size); int sigpending (sigset_t *); +int __sigaction (int, const struct sigaction *, struct sigaction *); int socket (int, int, int); int socketpair (int, int, int, int*); int bind (int, struct sockaddr *, int); |