X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FPrinter.h;h=0e3977a993de18b21127b72ded9dc6d6f4c7b777;hb=4746806f20ee36532564c9ff691cdcb0da190fd2;hp=e43589513f3c1fc5fff312724a6038a94ed1a5bb;hpb=438596897ebbe25a07e1c82085cfbc5bdb00f09e;p=ghc-hetmet.git diff --git a/ghc/rts/Printer.h b/ghc/rts/Printer.h index e435895..0e3977a 100644 --- a/ghc/rts/Printer.h +++ b/ghc/rts/Printer.h @@ -1,5 +1,7 @@ /* ----------------------------------------------------------------------------- - * $Id: Printer.h,v 1.2 1998/12/02 13:28:34 simonm Exp $ + * $Id: Printer.h,v 1.5 2000/01/14 14:56:40 simonmar Exp $ + * + * (c) The GHC Team, 1998-2000 * * Prototypes for functions in Printer.c * @@ -7,6 +9,8 @@ extern void printPtr ( StgPtr p ); extern void printObj ( StgClosure *obj ); + +#ifdef DEBUG extern void printClosure ( StgClosure *obj ); extern StgStackPtr printStackObj ( StgStackPtr sp ); extern void printStackChunk ( StgStackPtr sp, StgStackPtr spLim ); @@ -14,9 +18,11 @@ extern void printStack ( StgStackPtr sp, StgStackPtr spLim, StgUpdateFrame* su ); extern void printTSO ( StgTSO *tso ); +void info_hdr_type ( StgClosure *closure, char *res ); +char * info_type ( StgClosure *closure ); +char * info_type_by_ip ( StgInfoTable *ip ); extern void DEBUG_LoadSymbols( char *name ); extern rtsBool lookupGHCName( StgPtr addr, const char **result ); - - +#endif