Add square brackets to vmmap's anonymous map names

Addresses #957 by enclosing anonymous map names printed by vmmap in square brackets.
Search still works & xinfo plays nice, but please let me know if you find anything this breaks.
pull/959/head
CptGibbon 4 years ago committed by Disconnect3d
parent 648c7f014e
commit a7a554f3c4

@ -212,7 +212,7 @@ def proc_pid_maps():
try: try:
inode, objfile = inode_objfile.split(None, 1) inode, objfile = inode_objfile.split(None, 1)
except: except:
objfile = 'anon_' + start[:-3] objfile = '[anon_' + start[:-3] + ']'
start = int(start, 16) start = int(start, 16)
stop = int(stop, 16) stop = int(stop, 16)

Loading…
Cancel
Save