Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Menu
Open sidebar
Glasgow Haskell Compiler
GHC
Commits
a8b5e840
Commit
a8b5e840
authored
Aug 25, 2007
by
Ian Lynagh
Browse files
Fix the IF_DEBUG(interpreter in StgCRun.c
parent
0b953024
Changes
2
Hide whitespace changes
Inline
Side-by-side
includes/Rts.h
View file @
a8b5e840
...
...
@@ -258,7 +258,11 @@ TICK_VAR(2)
-------------------------------------------------------------------------- */
#ifdef DEBUG
#if IN_STG_CODE
#define IF_DEBUG(c,s) if (RtsFlags[0].DebugFlags.c) { s; }
#else
#define IF_DEBUG(c,s) if (RtsFlags.DebugFlags.c) { s; }
#endif
#else
#define IF_DEBUG(c,s) doNothing()
#endif
...
...
rts/StgCRun.c
View file @
a8b5e840
...
...
@@ -87,13 +87,11 @@ register double fake_f9 __asm__("$f9");
StgRegTable
*
StgRun
(
StgFunPtr
f
,
StgRegTable
*
basereg
STG_UNUSED
)
{
while
(
f
)
{
/* XXX Disabled due to RtsFlags[]/RtsFlags mismatch
IF_DEBUG
(
interpreter
,
debugBelch
(
"Jumping to "
);
printPtr
((
P_
)
f
);
fflush
(
stdout
);
debugBelch
(
"
\n
"
);
);
*/
f
=
(
StgFunPtr
)
(
f
)();
}
return
(
StgRegTable
*
)
R1
.
p
;
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment