strace/tests/stack-fcall-3.c
Eugene Syromyatnikov 8b58aa17fb tests: check stack unwinding for signals
* tests/stack-fcall-3.c: Call etpid or kill depending on argument,
store getpid result.
* tests/stack-fcall.c: Call f0(0) and f0(1).
* tests/strace-k-demangle.expected: Updat eexpected output.
* tests/strace-k.expected: Likewise.
* tests/strace-k.test: Update matching code.
2018-09-01 00:14:26 +02:00

20 lines
222 B
C

#include <signal.h>
#include <unistd.h>
#include <sys/types.h>
#include "stack-fcall.h"
static int pid;
int f3(int i)
{
switch (i) {
case 1:
return kill(pid, SIGURG);
default:
return (pid = getpid()) + i;
}
}