Skip to content

Commit

Permalink
Linux \ Mac Support - fixed some bugs
Browse files Browse the repository at this point in the history
  • Loading branch information
CySHell committed Jan 11, 2023
1 parent 53caf88 commit 095cb79
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 3 deletions.
10 changes: 8 additions & 2 deletions Common/Utils.py
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,14 @@ def GetBaseOfFileContainingAddress(bv: bn.binaryninja.binaryview.BinaryView, add

def DemangleName(mangled_name: str) -> str:
try:
demangled_name = subprocess.check_output(
[Config.DEMANGLER_FULL_PATH, mangled_name])
print("Processing mangled name ", mangled_name)
if os.name == 'nt':
CREATE_NO_WINDOW = 0x08000000
demangled_name = subprocess.check_output(
[Config.DEMANGLER_FULL_PATH, mangled_name], creationflags=CREATE_NO_WINDOW)
else:
demangled_name = subprocess.check_output(
[Config.DEMANGLER_FULL_PATH, mangled_name])
# Linux returns demangled_name as a bytes object, need to convert to string.
if type(demangled_name) != str:
demangled_name = demangled_name.decode()
Expand Down
2 changes: 1 addition & 1 deletion plugin.json
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@
"ClassyPP uses an external C++ demangler - Demumble - https://github.com/nico/demumble/releases."
]
},
"version": "1.6.0",
"version": "1.6.1",
"author": "CyShell",
"minimumbinaryninjaversion": 3233
}

0 comments on commit 095cb79

Please sign in to comment.