Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
GHC
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Iterations
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package Registry
Container Registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
haskell-wasm
GHC
Commits
3e5bfdd3
Commit
3e5bfdd3
authored
7 months ago
by
Ben Gamari
Committed by
Marge Bot
7 months ago
Browse files
Options
Downloads
Patches
Plain Diff
rts: Introduce printIPE
This is a convenience utility for use in GDB.
parent
831aab22
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
rts/IPE.c
+17
-0
17 additions, 0 deletions
rts/IPE.c
rts/include/rts/IPE.h
+4
-0
4 additions, 0 deletions
rts/include/rts/IPE.h
with
21 additions
and
0 deletions
rts/IPE.c
+
17
−
0
View file @
3e5bfdd3
...
@@ -277,3 +277,20 @@ void decompressIPEBufferListNodeIfCompressed(IpeBufferListNode *node) {
...
@@ -277,3 +277,20 @@ void decompressIPEBufferListNodeIfCompressed(IpeBufferListNode *node) {
}
}
}
}
#if defined(DEBUG)
void
printIPE
(
const
StgInfoTable
*
info
)
{
InfoProvEnt
ipe
;
if
(
lookupIPE
(
info
,
&
ipe
))
{
debugBelch
(
"%p:
\n
"
,
info
);
debugBelch
(
" name: %s
\n
"
,
ipe
.
prov
.
table_name
);
debugBelch
(
" desc: %"
PRIu32
"
\n
"
,
ipe
.
prov
.
closure_desc
);
debugBelch
(
" type: %s
\n
"
,
ipe
.
prov
.
ty_desc
);
debugBelch
(
" label: %s
\n
"
,
ipe
.
prov
.
label
);
debugBelch
(
" module: %s:%s
\n
"
,
ipe
.
prov
.
unit_id
,
ipe
.
prov
.
module
);
debugBelch
(
" src loc: %s:%s
\n
"
,
ipe
.
prov
.
src_file
,
ipe
.
prov
.
src_span
);
}
else
{
debugBelch
(
"%p: no IPE entry
\n
"
,
info
);
}
}
#endif
This diff is collapsed.
Click to expand it.
rts/include/rts/IPE.h
+
4
−
0
View file @
3e5bfdd3
...
@@ -97,3 +97,7 @@ void formatClosureDescIpe(const InfoProvEnt *ipe_buf, char *str_buf);
...
@@ -97,3 +97,7 @@ void formatClosureDescIpe(const InfoProvEnt *ipe_buf, char *str_buf);
// Returns true on success, initializes `out`.
// Returns true on success, initializes `out`.
bool
lookupIPE
(
const
StgInfoTable
*
info
,
InfoProvEnt
*
out
);
bool
lookupIPE
(
const
StgInfoTable
*
info
,
InfoProvEnt
*
out
);
#if defined(DEBUG)
void
printIPE
(
const
StgInfoTable
*
info
);
#endif
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment