mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2025-10-03 17:59:46 +02:00
GP-4898 - All Demanglers: added MangledContext; Microsoft MDMang: added
C-style mangling scheme and moved Demangler type hierarchies out of MDMang
This commit is contained in:
parent
3670d91d80
commit
737ea4d31f
53 changed files with 3016 additions and 1460 deletions
|
@ -4,9 +4,9 @@
|
|||
* Licensed under the Apache License, Version 2.0 (the "License");
|
||||
* you may not use this file except in compliance with the License.
|
||||
* You may obtain a copy of the License at
|
||||
*
|
||||
*
|
||||
* http://www.apache.org/licenses/LICENSE-2.0
|
||||
*
|
||||
*
|
||||
* Unless required by applicable law or agreed to in writing, software
|
||||
* distributed under the License is distributed on an "AS IS" BASIS,
|
||||
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
|
@ -75,8 +75,10 @@ public class DumpAllSymbolsDemangledScript extends GhidraScript {
|
|||
*/
|
||||
private static String getDemangledString(String mangledString) {
|
||||
MDMangGhidra demangler = new MDMangGhidra();
|
||||
demangler.setMangledSymbol(mangledString);
|
||||
demangler.setErrorOnRemainingChars(true);
|
||||
try {
|
||||
MDParsableItem parsableItem = demangler.demangle(mangledString, true);
|
||||
MDParsableItem parsableItem = demangler.demangle();
|
||||
if (parsableItem instanceof MDObjectCPP) {
|
||||
MDObjectCPP mdObject = (MDObjectCPP) parsableItem;
|
||||
return mdObject.getQualifiedName().toString();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue