From a7a554f3c4ce2349f0bed7748bf0aefe33aae3c7 Mon Sep 17 00:00:00 2001 From: CptGibbon <16000770+CptGibbon@users.noreply.github.com> Date: Tue, 14 Sep 2021 13:48:43 -0700 Subject: [PATCH] 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. --- pwndbg/vmmap.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/pwndbg/vmmap.py b/pwndbg/vmmap.py index 9f7604c3b..456603b0e 100644 --- a/pwndbg/vmmap.py +++ b/pwndbg/vmmap.py @@ -212,7 +212,7 @@ def proc_pid_maps(): try: inode, objfile = inode_objfile.split(None, 1) except: - objfile = 'anon_' + start[:-3] + objfile = '[anon_' + start[:-3] + ']' start = int(start, 16) stop = int(stop, 16)