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/SYSCALLS.TXT | |
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/SYSCALLS.TXT')
-rw-r--r-- | libc/SYSCALLS.TXT | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/libc/SYSCALLS.TXT b/libc/SYSCALLS.TXT index 684b43e..eaeea2b 100644 --- a/libc/SYSCALLS.TXT +++ b/libc/SYSCALLS.TXT @@ -167,7 +167,7 @@ int __timer_delete:timer_delete(timer_t) int utimes(const char*, const struct timeval tvp[2]) 269, 271 # signals -int sigaction(int, const struct sigaction *, struct sigaction *) 67 +int sigaction(int, const struct sigaction *, struct sigaction *) -1,67,67 int sigprocmask(int, const sigset_t *, sigset_t *) 126 int __sigsuspend:sigsuspend(int unused1, int unused2, unsigned mask) 72 int __rt_sigaction:rt_sigaction (int sig, const struct sigaction *act, struct sigaction *oact, size_t sigsetsize) 174 @@ -175,6 +175,9 @@ int __rt_sigprocmask:rt_sigprocmask (int how, const sigset_t *set, sigset_t int __rt_sigtimedwait:rt_sigtimedwait(const sigset_t *set, struct siginfo_t *info, struct timespec_t *timeout, size_t sigset_size) 177 int sigpending(sigset_t *) 73 +# special stub for ARM, see arch-arm/bionic/sigaction.c +int __sigaction:sigaction(int, const struct sigaction *, struct sigaction *) 67,-1,-1 + # sockets int socket(int, int, int) 281,-1 int socketpair(int, int, int, int*) 288,-1 |