diff options
author | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2018-05-30 13:02:53 +0300 |
---|---|---|
committer | Ömer Sinan Ağacan <omeragacan@gmail.com> | 2018-05-30 13:09:59 +0300 |
commit | 857005a762a12e021c3cc65b729bd6263b7145fb (patch) | |
tree | beb87bb7f5dc352d595264af44e8fa3bd7301d7d /rts/Printer.c | |
parent | 929bbe4fb2bc701d4820bcf7a1b1ff074f8d6226 (diff) | |
download | haskell-857005a762a12e021c3cc65b729bd6263b7145fb.tar.gz |
Move printMutableList to Printer.c next to other printers
Diffstat (limited to 'rts/Printer.c')
-rw-r--r-- | rts/Printer.c | 22 |
1 files changed, 15 insertions, 7 deletions
diff --git a/rts/Printer.c b/rts/Printer.c index ae76a4143e..01f16921cf 100644 --- a/rts/Printer.c +++ b/rts/Printer.c @@ -425,6 +425,21 @@ printClosure( const StgClosure *obj ) } } +void +printMutableList(bdescr *bd) +{ + StgPtr p; + + debugBelch("mutable list %p: ", bd); + + for (; bd != NULL; bd = bd->link) { + for (p = bd->start; p < bd->free; p++) { + debugBelch("%p (%s), ", (void *)*p, info_type((StgClosure *)*p)); + } + } + debugBelch("\n"); +} + // If you know you have an UPDATE_FRAME, but want to know exactly which. const char *info_update_frame(const StgClosure *closure) { @@ -444,13 +459,6 @@ const char *info_update_frame(const StgClosure *closure) } } -/* -void printGraph( StgClosure *obj ) -{ - printClosure(obj); -} -*/ - static void printSmallBitmap( StgPtr spBottom, StgPtr payload, StgWord bitmap, uint32_t size ) |