X-Git-Url: http://git.megacz.com/?a=blobdiff_plain;f=rts%2FPrinter.c;h=666b7db6ce55ed09b9040c9718b7c941611bb3d8;hb=8b08c15b8ace5a76e341939081fbb6ad2736ddd1;hp=8290d220a0b0498373ec5ec47e4b370f2b09bcd4;hpb=0065d5ab628975892cea1ec7303f968c3338cbe1;p=ghc-hetmet.git diff --git a/rts/Printer.c b/rts/Printer.c index 8290d22..666b7db 100644 --- a/rts/Printer.c +++ b/rts/Printer.c @@ -15,7 +15,6 @@ #include "RtsFlags.h" #include "MBlock.h" -#include "Storage.h" #include "Bytecodes.h" /* for InstrPtr */ #include "Disassembler.h" #include "Apply.h" @@ -37,10 +36,10 @@ static void printStdObjPayload( StgClosure *obj ); #ifdef USING_LIBBFD static void reset_table ( int size ); static void prepare_table ( void ); -static void insert ( unsigned value, const char *name ); +static void insert ( StgWord value, const char *name ); #endif #if 0 /* unused but might be useful sometime */ -static rtsBool lookup_name ( char *name, unsigned *result ); +static rtsBool lookup_name ( char *name, StgWord *result ); static void enZcode ( char *in, char *out ); #endif static char unZcode ( char ch ); @@ -133,8 +132,6 @@ printClosure( StgClosure *obj ) case CONSTR: case CONSTR_1_0: case CONSTR_0_1: case CONSTR_1_1: case CONSTR_0_2: case CONSTR_2_0: - case CONSTR_INTLIKE: - case CONSTR_CHARLIKE: case CONSTR_STATIC: case CONSTR_NOCAF_STATIC: { @@ -381,7 +378,7 @@ printClosure( StgClosure *obj ) case TSO: debugBelch("TSO("); - debugBelch("%d (%p)",((StgTSO*)obj)->id, (StgTSO*)obj); + debugBelch("%lu (%p)",(unsigned long)(((StgTSO*)obj)->id), (StgTSO*)obj); debugBelch(")\n"); break; @@ -657,8 +654,6 @@ static char *closure_type_names[] = { "CONSTR_2", "CONSTR_1", "CONSTR_0", - "CONSTR_INTLIKE", - "CONSTR_CHARLIKE", "CONSTR_STATIC", "CONSTR_NOCAF_STATIC", "FUN", @@ -718,7 +713,9 @@ static char *closure_type_names[] = { "RBH", "EVACUATED", "REMOTE_REF", - "TVAR_WAIT_QUEUE", + "TVAR_WATCH_QUEUE", + "INVARIANT_CHECK_QUEUE", + "ATOMIC_INVARIANT", "TVAR", "TREC_CHUNK", "TREC_HEADER", @@ -755,7 +752,7 @@ info_hdr_type(StgClosure *closure, char *res){ * ------------------------------------------------------------------------*/ struct entry { - nat value; + StgWord value; const char *name; }; @@ -777,7 +774,7 @@ static void prepare_table( void ) /* Could sort it... */ } -static void insert( unsigned value, const char *name ) +static void insert( StgWord value, const char *name ) { if ( table_size >= max_table_size ) { barf( "Symbol table overflow\n" ); @@ -789,9 +786,9 @@ static void insert( unsigned value, const char *name ) #endif #if 0 -static rtsBool lookup_name( char *name, unsigned *result ) +static rtsBool lookup_name( char *name, StgWord *result ) { - int i; + nat i; for( i = 0; i < table_size && strcmp(name,table[i].name) != 0; ++i ) { } if (i < table_size) { @@ -934,7 +931,7 @@ static void enZcode( char *in, char *out ) const char *lookupGHCName( void *addr ) { nat i; - for( i = 0; i < table_size && table[i].value != (unsigned) addr; ++i ) { + for( i = 0; i < table_size && table[i].value != (StgWord) addr; ++i ) { } if (i < table_size) { return table[i].name;