fix handling of new fields in smaps

reported by Loic Minier
This commit is contained in:
Matt Mackall 2013-02-22 14:03:46 -06:00
commit d3a7e5107a

2
smem
View file

@ -149,7 +149,7 @@ def pidmaps(pid):
if f[0].startswith('Pss'):
seen = True
maps[start][f[0][:-1].lower()] = int(f[1])
else:
elif '-' in f[0] and ':' not in f[0]: # looks like a mapping range
start, end = f[0].split('-')
start = int(start, 16)
name = "<anonymous>"