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
Ben Gamari
ghc-utils
Commits
c7398440
Commit
c7398440
authored
Dec 07, 2020
by
Ben Gamari
🐢
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
gdb/find_refs: Fix next_free_snap lookup
parent
0678f43c
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
1 deletion
+4
-1
gdb/ghc_gdb/find_refs.py
gdb/ghc_gdb/find_refs.py
+4
-1
No files found.
gdb/ghc_gdb/find_refs.py
View file @
c7398440
...
...
@@ -223,7 +223,10 @@ def refs_dot(edges: List[Edge], roots: Set[Ptr], mut_list_reachables: Dict[int,
seg_blkIdx
=
get_nonmoving_segment
(
ref
.
referring_field
)
if
seg_blkIdx
is
not
None
:
seg
,
blk
=
seg_blkIdx
snap
=
int
(
seg
[
'next_free_snap'
])
if
'next_free_snap'
in
seg
.
type
.
fields
():
snap
=
int
(
seg
[
'next_free_snap'
])
else
:
snap
=
int
(
gdb
.
parse_and_eval
(
'Bdescr(%d)->nonmoving_segment.next_free_snap'
%
ref
.
referring_field
.
addr
()))
mark
=
seg
[
'bitmap'
][
blk
]
if
mark
!=
0
:
color
=
'blue'
...
...
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