Skip to content

Commit

Permalink
Merge pull request #4 from pfnet/fix-resolve_addr
Browse files Browse the repository at this point in the history
Fix resolve_addr
  • Loading branch information
akawashiro authored Jul 3, 2023
2 parents b1a9b07 + 7ff5d19 commit 8ff2531
Showing 1 changed file with 5 additions and 2 deletions.
7 changes: 5 additions & 2 deletions tools/resolve_addr.py
Original file line number Diff line number Diff line change
Expand Up @@ -31,10 +31,13 @@ def parse_maps(maps_filename):
toks = line.split()
if len(toks) == 6:
addrs, perms, off, dev, inode, path = toks
else:
assert len(toks) == 5
elif len(toks) == 5:
addrs, perms, off, dev, inode = toks
path = ''
else:
assert len(toks) == 7
addrs, perms, off, t, inode, dev, msg = toks
path = ''
begin, end = [int(a, 16) for a in addrs.split('-')]
if path not in base_addrs:
base_addrs[path] = begin
Expand Down

0 comments on commit 8ff2531

Please sign in to comment.