Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
What's new
10
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Sign in / Register
Toggle navigation
Open sidebar
Alex D
GHC
Commits
f8048112
Commit
f8048112
authored
May 29, 2018
by
Ömer Sinan Ağacan
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Factor stack chunk printing out of printTSO
Makes it possible to print STACK (StgStack) objects easily in gdb
parent
60fb2b21
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
6 additions
and
2 deletions
+6
-2
rts/Printer.c
rts/Printer.c
+6
-2
No files found.
rts/Printer.c
View file @
f8048112
...
...
@@ -624,10 +624,14 @@ printStackChunk( StgPtr sp, StgPtr spBottom )
}
}
static
void
printStack
(
StgStack
*
stack
)
{
printStackChunk
(
stack
->
sp
,
stack
->
stack
+
stack
->
stack_size
);
}
void
printTSO
(
StgTSO
*
tso
)
{
printStackChunk
(
tso
->
stackobj
->
sp
,
tso
->
stackobj
->
stack
+
tso
->
stackobj
->
stack_size
);
printStack
(
tso
->
stackobj
);
}
/* --------------------------------------------------------------------------
...
...
Write
Preview
Markdown
is supported
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