From 34a98c42fd39570f412c58b48bf00ff48f1857ec Mon Sep 17 00:00:00 2001 From: David Jones Date: Fri, 4 Mar 2005 15:53:57 +0000 Subject: Mps: removing some pretty useful printf debugging code from protxcpp Copied from Perforce Change: 147633 ServerID: perforce.ravenbrook.com --- mps/code/protxcpp.c | 31 ------------------------------- 1 file changed, 31 deletions(-) (limited to 'mps/code/protxcpp.c') diff --git a/mps/code/protxcpp.c b/mps/code/protxcpp.c index 44c95b25b7f..5a7c2a237b8 100644 --- a/mps/code/protxcpp.c +++ b/mps/code/protxcpp.c @@ -31,8 +31,6 @@ #include #include -#include /* DO NOT SUBMIT */ - SRCID(protxcpp, "$Id$"); /* The previously-installed signal action, as returned by */ @@ -70,31 +68,6 @@ static void sigHandle(int sig, siginfo_t *info, void *contextArg) ucontext = contextArg; - { - int i; - fprintf(stderr, "sigHandle.\n"); - - for(i=0; i < sizeof *info; ++i) { - fprintf(stderr, "%02x", ((unsigned char *)info)[i]); - } - fprintf(stderr, "\n"); - fprintf(stderr, "signo: %d, code %d, addr %p\n", - info->si_signo, info->si_code, info->si_addr); - - fprintf(stderr, "ucontext:\n"); - for(i=0; i < sizeof *ucontext; ++i) { - fprintf(stderr, "%02x ", ((unsigned char *)ucontext)[i]); - } - fprintf(stderr, "\n"); - fprintf(stderr, "uc_mcontext:\n"); - for(i=0; i< sizeof ucontext->uc_mcontext; ++i) { - fprintf(stderr, "%02x ", ((unsigned char *)&ucontext->uc_mcontext)[i]); - } - fprintf(stderr, "\n"); - fprintf(stderr, "uc_mcontext->es.dar: %08lx\n", - (unsigned long)ucontext->uc_mcontext->es.dar); - } - /* On OS X the si_code field does't appear to be useful. Protection * faults appear as SIGBUS signals, and the only documented code for * SIGBUS is BUS_ADRALN (invalid address alignment) which is what @@ -124,9 +97,7 @@ static void sigHandle(int sig, siginfo_t *info, void *contextArg) /* MutatorFaultContext parameter is a dummy parameter for this */ /* implementation */ - fprintf(stderr, "access: base: %08x mode: %08x\n", (unsigned)base, mode); if(ArenaAccess(base, mode, NULL)) { - fprintf(stderr, "returning\n"); return; } } @@ -134,8 +105,6 @@ static void sigHandle(int sig, siginfo_t *info, void *contextArg) /* The exception was not handled by any known protection structure, */ /* so throw it to the previously installed handler. */ - fprintf(stderr, "Throwing to %08x\n", (unsigned)sigNext.sa_sigaction); - /* @@ This is really weak. * Need to implement rest of the contract of sigaction */ (*sigNext.sa_sigaction)(sig, info, contextArg); -- cgit v1.2.1