platform_bionic/libc/arch-arm/syscalls/__sigaction.S
Matt Fischer e4fa46e75c 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
2010-05-12 14:18:36 -05:00

19 lines
374 B
ArmAsm

/* autogenerated by gensyscalls.py */
#include <sys/linux-syscalls.h>
.text
.type __sigaction, #function
.globl __sigaction
.align 4
.fnstart
__sigaction:
.save {r4, r7}
stmfd sp!, {r4, r7}
ldr r7, =__NR_sigaction
swi #0
ldmfd sp!, {r4, r7}
movs r0, r0
bxpl lr
b __set_syscall_errno
.fnend