Julian Seward 31b741dc9b Merge the Ptrcheck tool from branches/PTRCHECK r8619.
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@8620
2008-09-18 14:43:05 +00:00

18 lines
281 B
C

#include <stdio.h>
#include <stdlib.h>
#include <signal.h>
#include <setjmp.h>
#include <assert.h>
#include <string.h>
static jmp_buf TTT_jmpbuf;
void SEGV_handler(int signum)
{
//fprintf(stderr, "segv caught\n");
__builtin_longjmp(TTT_jmpbuf, 1);
}
int up[10], up2[10];