summaryrefslogtreecommitdiff
path: root/rts/Printer.h
blob: d2eaf010c6dd66cb9ed775a3358ee70f5f0d2a82 (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
/* -----------------------------------------------------------------------------
 *
 * (c) The GHC Team, 1998-2005
 *
 * Prototypes for functions in Printer.c
 *
 * ---------------------------------------------------------------------------*/

#pragma once

#include "BeginPrivate.h"

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

extern const char *  closure_type_names[];

void               info_hdr_type   ( const StgClosure *closure, char *res );
const char  *      info_type       ( const StgClosure *closure );
const char  *      info_type_by_ip ( const StgInfoTable *ip );
const char  *      info_update_frame ( const StgClosure *closure );

#if defined(DEBUG)
extern void        printClosure    ( const StgClosure *obj );
extern void        printStackChunk ( StgPtr sp, StgPtr spLim );
extern void        printTSO        ( StgTSO *tso );
extern void        printMutableList( bdescr *bd );

extern void DEBUG_LoadSymbols( const char *name );

extern const char *lookupGHCName( void *addr );

extern const char *what_next_strs[];
#endif

#include "EndPrivate.h"