mirror of
https://github.com/proot-me/proot.git
synced 2024-11-23 17:06:18 +00:00
d8bf141fea
If we are simply restarting a syscall, there's no need to do anything afterwards to restore any register values so we don't really need to keep a record of it ourselves in the chain syscall list. By simply resetting the PC and the arguments, we avoid issue #292 for this function when we get a signal before we run the restarted syscall and confused syscall from the signal handler as the one we restarted (chained).
14 lines
430 B
Bash
14 lines
430 B
Bash
if [ ! -x ${ROOTFS}/bin/gdb-ptrace-test ] || [ ! -x ${ROOTFS}/bin/gdb-ptrace-test-signal ]; then
|
|
exit 125;
|
|
fi
|
|
|
|
${ROOTFS}/bin/gdb-ptrace-test
|
|
${ROOTFS}/bin/gdb-ptrace-test 1
|
|
${PROOT} ${ROOTFS}/bin/gdb-ptrace-test
|
|
${PROOT} ${ROOTFS}/bin/gdb-ptrace-test 1
|
|
|
|
${ROOTFS}/bin/gdb-ptrace-test-signal
|
|
${ROOTFS}/bin/gdb-ptrace-test-signal 1
|
|
${PROOT} ${ROOTFS}/bin/gdb-ptrace-test-signal
|
|
${PROOT} ${ROOTFS}/bin/gdb-ptrace-test-signal 1
|