projects
/
ghc-hetmet.git
/ blobdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
raw
|
inline
| side by side
[project @ 2002-11-08 15:16:50 by simonpj]
[ghc-hetmet.git]
/
ghc
/
rts
/
Printer.c
diff --git
a/ghc/rts/Printer.c
b/ghc/rts/Printer.c
index
abbc91b
..
3ac0e4e
100644
(file)
--- a/
ghc/rts/Printer.c
+++ b/
ghc/rts/Printer.c
@@
-1,5
+1,5
@@
/* -----------------------------------------------------------------------------
/* -----------------------------------------------------------------------------
- * $Id: Printer.c,v 1.51 2002/02/04 20:26:25 sof Exp $
+ * $Id: Printer.c,v 1.53 2002/07/24 18:18:13 sof Exp $
*
* (c) The GHC Team, 1994-2000.
*
*
* (c) The GHC Team, 1994-2000.
*
@@
-11,6
+11,8
@@
#include "Rts.h"
#include "Printer.h"
#include "Rts.h"
#include "Printer.h"
+#include <stdio.h>
+
#ifdef DEBUG
#include "RtsUtils.h"
#ifdef DEBUG
#include "RtsUtils.h"
@@
-20,7
+22,8
@@
#include "Bytecodes.h" /* for InstrPtr */
#include "Disassembler.h"
#include "Bytecodes.h" /* for InstrPtr */
#include "Disassembler.h"
-#include "Printer.h"
+#include <stdlib.h>
+#include <string.h>
#if defined(GRAN) || defined(PAR)
// HWL: explicit fixed header size to make debugging easier
#if defined(GRAN) || defined(PAR)
// HWL: explicit fixed header size to make debugging easier
@@
-977,7
+980,7
@@
findPtr(P_ p, int follow)
if (*q == (W_)p) {
if (i < arr_size) {
r = q;
if (*q == (W_)p) {
if (i < arr_size) {
r = q;
- while (!LOOKS_LIKE_GHC_INFO(*r) || *r == NULL) {
+ while (!LOOKS_LIKE_GHC_INFO(*r) || (P_)*r == NULL) {
r--;
}
fprintf(stdout, "%p = ", r);
r--;
}
fprintf(stdout, "%p = ", r);