Skip to content

Commit

Permalink
memory: Allow info proc mapping on older gdb
Browse files Browse the repository at this point in the history
This works now that we assume rwx if the Perms column is missing
  • Loading branch information
Grazfather committed Feb 23, 2024
1 parent 0fca698 commit 677eb7f
Showing 1 changed file with 0 additions and 3 deletions.
3 changes: 0 additions & 3 deletions gef.py
Original file line number Diff line number Diff line change
Expand Up @@ -10585,9 +10585,6 @@ def parse_procfs_maps(cls) -> Generator[Section, None, None]:
@classmethod
def parse_gdb_info_proc_maps(cls) -> Generator[Section, None, None]:
"""Get the memory mapping from GDB's command `maintenance info sections` (limited info)."""
if GDB_VERSION < (11, 0):
raise AttributeError("Disregarding old format")

output = (gdb.execute("info proc mappings", to_string=True) or "")
if not output:
raise AttributeError
Expand Down

0 comments on commit 677eb7f

Please sign in to comment.