X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FPrinter.h;h=f874fbe5d03dc65297a78bfb25b6fe0f9049757f;hb=2c5525a9fae00927d8068dc5294421868350daf9;hp=bb92b6ba813fd4e13f079ebd789a057b28417787;hpb=7f309f1c021e7583f724cce599ce2dd3c439361b;p=ghc-hetmet.git diff --git a/ghc/rts/Printer.h b/ghc/rts/Printer.h index bb92b6b..f874fbe 100644 --- a/ghc/rts/Printer.h +++ b/ghc/rts/Printer.h @@ -1,7 +1,7 @@ /* ----------------------------------------------------------------------------- - * $Id: Printer.h,v 1.3 1999/02/05 16:02:47 simonm Exp $ + * $Id: Printer.h,v 1.7 2002/12/11 15:36:45 simonmar Exp $ * - * (c) The GHC Team, 1998-1999 + * (c) The GHC Team, 1998-2000 * * Prototypes for functions in Printer.c * @@ -9,16 +9,18 @@ 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 ); -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 ); - - +extern const char *lookupGHCName( void *addr ); +#endif