Printer.h 888 Bytes
Newer Older
1
/* -----------------------------------------------------------------------------
2
 *
3
 * (c) The GHC Team, 1998-2000
4 5 6 7 8 9 10
 *
 * Prototypes for functions in Printer.c
 *
 * ---------------------------------------------------------------------------*/

extern void   	   printPtr        ( StgPtr p );
extern void   	   printObj        ( StgClosure *obj );
11 12

#ifdef DEBUG
13 14 15 16 17
extern void   	   printClosure    ( StgClosure *obj );
extern StgStackPtr printStackObj   ( StgStackPtr sp );
extern void        printStackChunk ( StgStackPtr sp, StgStackPtr spLim );
extern void        printTSO        ( StgTSO *tso );

18 19 20
void   	           info_hdr_type   ( StgClosure *closure, char *res );
char  *	           info_type       ( StgClosure *closure );
char  *	           info_type_by_ip ( StgInfoTable *ip );
21 22 23

extern void DEBUG_LoadSymbols( char *name );

24
extern const char *lookupGHCName( void *addr );
25
#endif