X-Git-Url: http://git.shadowcat.co.uk/gitweb/gitweb.cgi?a=blobdiff_plain;f=deb.c;h=20fda2185dd75da65f416d13e9707cc346be05d9;hb=66e2fd5444a96049971bab49da0a163e8fa5e52d;hp=37b42e168748ae8d52eb18b887daed47ff18f729;hpb=d672126634c5e568812ed35d4c8ea53a9a55ee4c;p=p5sagit%2Fp5-mst-13.2.git diff --git a/deb.c b/deb.c index 37b42e1..20fda21 100644 --- a/deb.c +++ b/deb.c @@ -1,6 +1,7 @@ /* deb.c * - * Copyright (c) 1991-2002, Larry Wall + * Copyright (C) 1991, 1992, 1993, 1994, 1995, 1996, 1998, 1999, + * 2000, 2001, 2002, by Larry Wall and others * * You may distribute under the terms of either the GNU General Public * License or the Artistic License, as specified in the README file. @@ -47,15 +48,8 @@ Perl_vdeb(pTHX_ const char *pat, va_list *args) #ifdef DEBUGGING char* file = OutCopFILE(PL_curcop); -#ifdef USE_5005THREADS - PerlIO_printf(Perl_debug_log, "0x%"UVxf" (%s:%ld)\t", - PTR2UV(thr), - (file ? file : ""), - (long)CopLINE(PL_curcop)); -#else PerlIO_printf(Perl_debug_log, "(%s:%ld)\t", (file ? file : ""), (long)CopLINE(PL_curcop)); -#endif /* USE_5005THREADS */ (void) PerlIO_vprintf(Perl_debug_log, pat, *args); #endif /* DEBUGGING */ } @@ -191,14 +185,14 @@ Perl_deb_stack_all(pTHX) else si_name = si_names[si_name_ix]; PerlIO_printf(Perl_debug_log, "STACK %"IVdf": %s\n", - si_ix, si_name); + (IV)si_ix, si_name); for (ix=0; ix<=si->si_cxix; ix++) { cx = &(si->si_cxstack[ix]); PerlIO_printf(Perl_debug_log, " CX %"IVdf": %-6s => ", - ix, PL_block_type[CxTYPE(cx)] + (IV)ix, PL_block_type[CxTYPE(cx)] ); /* substitution contexts don't save stack pointers etc) */ if (CxTYPE(cx) == CXt_SUBST)