From: Malcolm Beattie Date: Mon, 23 Feb 1998 10:03:39 +0000 (+0000) Subject: Remove old Linux+threads segfault degugging kludge. X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=commitdiff_plain;h=eefabb09a1a549c1747d7c554d375ecb16cafff1;p=p5sagit%2Fp5-mst-13.2.git Remove old Linux+threads segfault degugging kludge. p4raw-id: //depot/perl@573 --- diff --git a/perl.c b/perl.c index ec232e4..41d2e04 100644 --- a/perl.c +++ b/perl.c @@ -83,19 +83,6 @@ static void validate_suid _((char *, char*)); static int fdscript = -1; -#if defined(DEBUGGING) && defined(USE_THREADS) && defined(__linux__) -#include -static void -catch_sigsegv(int signo, struct sigcontext_struct sc) -{ - PerlProc_signal(SIGSEGV, SIG_DFL); - fprintf(stderr, "Segmentation fault dereferencing 0x%lx\n" - "return_address = 0x%lx, eip = 0x%lx\n", - sc.cr2, __builtin_return_address(0), sc.eip); - fprintf(stderr, "thread = 0x%lx\n", (unsigned long)THR); -} -#endif - PerlInterpreter * perl_alloc(void) { @@ -901,10 +888,6 @@ print \" \\@INC:\\n @INC\\n\";"); init_os_extras(); #endif -#if defined(DEBUGGING) && defined(USE_THREADS) && defined(__linux__) - DEBUG_L(PerlProc_signal(SIGSEGV, (void(*)(int))catch_sigsegv);); -#endif - init_predump_symbols(); if (!do_undump) init_postdump_symbols(argc,argv,env);