Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Browse files
Browse the repository at this point in the history
## Description Fix the Offset column in the `vmmap` command by getting the offset from the correct column in `parse_gdb_info_proc_maps`. Before: ``` gef➤ vmmap [ Legend: Code | Heap | Stack ] Start End Offset Perm Path 0x0000555555554000 0x0000555555558000 0x0000000000004000 r-- /usr/bin/ls 0x0000555555558000 0x000055555556e000 0x0000000000016000 r-x /usr/bin/ls 0x000055555556e000 0x0000555555577000 0x0000000000009000 r-- /usr/bin/ls 0x0000555555577000 0x0000555555579000 0x0000000000002000 r-- /usr/bin/ls 0x0000555555579000 0x000055555557a000 0x0000000000001000 rw- /usr/bin/ls 0x000055555557a000 0x000055555557b000 0x0000000000001000 rw- [heap] ``` After: ``` gef➤ vmmap [ Legend: Code | Heap | Stack ] Start End Offset Perm Path 0x0000555555554000 0x0000555555558000 0x0000000000000000 r-- /usr/bin/ls 0x0000555555558000 0x000055555556e000 0x0000000000004000 r-x /usr/bin/ls 0x000055555556e000 0x0000555555577000 0x000000000001a000 r-- /usr/bin/ls 0x0000555555577000 0x0000555555579000 0x0000000000023000 r-- /usr/bin/ls 0x0000555555579000 0x000055555557a000 0x0000000000025000 rw- /usr/bin/ls 0x000055555557a000 0x000055555557b000 0x0000000000000000 rw- [heap] ``` info proc mappings: ``` gef➤ info proc mappings process 18800 Mapped address spaces: Start Addr End Addr Size Offset Perms objfile 0x555555554000 0x555555558000 0x4000 0x0 r--p /usr/bin/ls 0x555555558000 0x55555556e000 0x16000 0x4000 r-xp /usr/bin/ls 0x55555556e000 0x555555577000 0x9000 0x1a000 r--p /usr/bin/ls 0x555555577000 0x555555579000 0x2000 0x23000 r--p /usr/bin/ls 0x555555579000 0x55555557a000 0x1000 0x25000 rw-p /usr/bin/ls 0x55555557a000 0x55555557b000 0x1000 0x0 rw-p [heap] ```
- Loading branch information