mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2024-11-23 12:49:45 +00:00
Merge branch 'GP-4898_ryanmkurtz_swift-demangler-fix'
This commit is contained in:
commit
9be248dae9
@ -106,15 +106,6 @@ public class SwiftDemangler implements Demangler {
|
||||
return null;
|
||||
}
|
||||
|
||||
@Override
|
||||
public DemangledObject demangle(MangledContext context) throws DemangledException {
|
||||
DemanglerOptions op = context.getOptions();
|
||||
String mangled = context.getMangled();
|
||||
DemangledObject demangledObject = demangle(mangled, op);
|
||||
demangledObject.setMangledContext(context);
|
||||
return demangledObject;
|
||||
}
|
||||
|
||||
/**
|
||||
* Get a new {@link Demangled} by demangling the given mangled string
|
||||
*
|
||||
|
@ -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.
|
||||
@ -702,4 +702,10 @@ public class SwiftDemanglerTest extends AbstractGenericTest {
|
||||
}
|
||||
assertEquals(demangled, function.toString());
|
||||
}
|
||||
|
||||
@Test
|
||||
public void testUnsupportedString() throws Exception {
|
||||
String mangled = "__mh_execute_header";
|
||||
assertNull(demangler.demangle(mangled));
|
||||
}
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user