X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FPrinter.h;h=54bf611250d4f5c34ae9bbf240ef15053cad5983;hb=7985849b10db59b566d1864075b97b5d11d3a31d;hp=b44847e9fde0e34c6548d5e895a976a3f6e90365;hpb=34533246b5686e1948e6a014a6e2dc72befe94c7;p=ghc-hetmet.git diff --git a/ghc/rts/Printer.h b/ghc/rts/Printer.h index b44847e..54bf611 100644 --- a/ghc/rts/Printer.h +++ b/ghc/rts/Printer.h @@ -1,12 +1,14 @@ /* ----------------------------------------------------------------------------- - * $Id: Printer.h,v 1.4 1999/06/29 13:04:40 panne Exp $ * - * (c) The GHC Team, 1998-1999 + * (c) The GHC Team, 1998-2005 * * Prototypes for functions in Printer.c * * ---------------------------------------------------------------------------*/ +#ifndef PRINTER_H +#define PRINTER_H + extern void printPtr ( StgPtr p ); extern void printObj ( StgClosure *obj ); @@ -14,12 +16,16 @@ extern void printObj ( StgClosure *obj ); 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 + +#endif /* PRINTER_H */ +