MCPcopy Create free account
hub / github.com/HexHive/NASS / __parse_maps

Method __parse_maps

tools/gef.py:10204–10215  ·  view source on GitHub ↗

Return the mapped memory sections

(self)

Source from the content-addressed store, hash-verified

10202 return self.__maps
10203
10204 def __parse_maps(self) -> List[Section]:
10205 """Return the mapped memory sections"""
10206 try:
10207 if is_qemu_system():
10208 return list(self.__parse_info_mem())
10209 except gdb.error:
10210 # Target may not support this command
10211 pass
10212 try:
10213 return list(self.__parse_procfs_maps())
10214 except FileNotFoundError:
10215 return list(self.__parse_gdb_info_sections())
10216
10217 def __parse_procfs_maps(self) -> Generator[Section, None, None]:
10218 """Get the memory mapping from procfs."""

Callers 1

mapsMethod · 0.95

Calls 4

__parse_info_memMethod · 0.95
__parse_procfs_mapsMethod · 0.95
is_qemu_systemFunction · 0.85

Tested by

no test coverage detected