fix mac_dump_maps for the new number of parameters yielded by mac_proc_maps.calculate()

This commit is contained in:
iMHLv2
2013-01-31 04:05:04 +00:00
parent 5ad3243ed0
commit fca57c5951
+2 -2
View File
@@ -45,9 +45,9 @@ class mac_dump_maps(proc_maps.mac_proc_maps):
map_address = self._config.MAP_ADDRESS
size = 0
for (proc, start, end, perms, name) in data:
for proc, map in data:
if not map_address or map_address == start:
for page in self._read_addr_range(proc, start, end):
for page in self._read_addr_range(proc, map.links.start, map.links.end):
size += len(page)
outfile.write(page)