Skip to content

Commit

Permalink
Correctly parse offset from info proc mappings output (hugsy#1096)
Browse files Browse the repository at this point in the history
Fix the Offset column in the `vmmap` command by getting the offset
from the correct column in `parse_gdb_info_proc_maps`.
  • Loading branch information
asdasdasd committed May 1, 2024
1 parent 29fb74e commit 2bc35f3
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 2bc35f3

Please sign in to comment.