X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=ghc%2Frts%2FPrinter.h;h=54bf611250d4f5c34ae9bbf240ef15053cad5983;hb=3eacdc7faf0d0e87a7201253f9f12c1fb4db7249;hp=e43589513f3c1fc5fff312724a6038a94ed1a5bb;hpb=438596897ebbe25a07e1c82085cfbc5bdb00f09e;p=ghc-hetmet.git diff --git a/ghc/rts/Printer.h b/ghc/rts/Printer.h index e435895..54bf611 100644 --- a/ghc/rts/Printer.h +++ b/ghc/rts/Printer.h @@ -1,22 +1,31 @@ /* ----------------------------------------------------------------------------- - * $Id: Printer.h,v 1.2 1998/12/02 13:28:34 simonm Exp $ + * + * (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 ); + +#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 +#endif /* PRINTER_H */