Skip to content

Commit

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

def DemangleName(mangled_name: str) -> str:
try:
demangled_name: str = subprocess.check_output(
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()
except subprocess.CalledProcessError:
return mangled_name

Expand Down
2 changes: 1 addition & 1 deletion README.MD
Original file line number Diff line number Diff line change
Expand Up @@ -79,7 +79,7 @@ This plugin installs as a normal binja plugin - just clone it into the plugins'
Edit the Config.py file for values suitable to your environment.

## Limitations:
- Supports MSVC Only
- Supports MSVC compiled binaries Only
- x86 32\64 bit architecture only
- Currently no support for Multiple Virtual Inheritence (Support for this will be added in the future)

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.5.0",
"version": "1.6.0",
"author": "CyShell",
"minimumbinaryninjaversion": 3233
}

0 comments on commit 53caf88

Please sign in to comment.