summaryrefslogtreecommitdiff
path: root/rts/Printer.h
blob: 43ccfe9d62efc218f80a039726cd6ed34fbc750f (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
37
38
39
40
41
42
43
44
45
46
47
48
49
/* -----------------------------------------------------------------------------
 *
 * (c) The GHC Team, 1998-2005
 *
 * Prototypes for functions in Printer.c
 *
 * ---------------------------------------------------------------------------*/

#ifndef PRINTER_H
#define PRINTER_H

#include "BeginPrivate.h"

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

extern char *      closure_type_names[];

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

#ifdef DEBUG
extern void        prettyPrintClosure (StgClosure *obj);
extern void        printClosure    ( StgClosure *obj );
extern StgPtr      printStackObj   ( StgPtr sp );
extern void        printStackChunk ( StgPtr sp, StgPtr spLim );
extern void        printTSO        ( StgTSO *tso );

extern void DEBUG_LoadSymbols( char *name );

extern const char *lookupGHCName( void *addr );

extern char *what_next_strs[];
#endif

#include "EndPrivate.h"

#endif /* PRINTER_H */


// Local Variables:
// mode: C
// fill-column: 80
// indent-tabs-mode: nil
// c-basic-offset: 4
// buffer-file-coding-system: utf-8-unix
// End: