summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-23 10:03:39 +0000
committerMalcolm Beattie <mbeattie@sable.ox.ac.uk>1998-02-23 10:03:39 +0000
commiteefabb09a1a549c1747d7c554d375ecb16cafff1 (patch)
tree193123970ed21b0aaa647123a18f2742723c52b2
parente21c45ac3eeaa7a94c61f7c376ce867a862637e4 (diff)
downloadperl-eefabb09a1a549c1747d7c554d375ecb16cafff1.tar.gz
Remove old Linux+threads segfault degugging kludge.
p4raw-id: //depot/perl@573
-rw-r--r--perl.c17
1 files changed, 0 insertions, 17 deletions
diff --git a/perl.c b/perl.c
index ec232e48ac..41d2e04025 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 <asm/sigcontext.h>
-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);