Skip to content

Commit

Permalink
Correctly parse offset from info proc mappings output
Browse files Browse the repository at this point in the history
  • Loading branch information
asdasdasd committed May 1, 2024
1 parent 29fb74e commit 3aa5149
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion gef.py
Expand Up @@ -10705,7 +10705,7 @@ def parse_gdb_info_proc_maps(cls) -> Generator[Section, None, None]:
break

parts = [x.strip() for x in line.split()]
addr_start, addr_end, offset = [int(x, 16) for x in parts[0:3]]
addr_start, addr_end, _, offset = [int(x, 16) for x in parts[0:4]]
if mock_permission:
perm = Permission(7)
path = " ".join(parts[4:]) if len(parts) >= 4 else ""
Expand Down

0 comments on commit 3aa5149

Please sign in to comment.