GP-0 - MDMang fix Qualification spelling

This commit is contained in:
ghizard
2023-06-29 10:27:22 -04:00
parent 24dbe4d6c7
commit f73a4999ca
2 changed files with 8 additions and 8 deletions
@@ -189,7 +189,7 @@ public class MDMangGhidra extends MDMang {
else { else {
variable = variable =
new DemangledVariable(mangledSource, demangledSource, objectCPP.getName()); new DemangledVariable(mangledSource, demangledSource, objectCPP.getName());
variable.setNamespace(processNamespace(objectCPP.getQualfication())); variable.setNamespace(processNamespace(objectCPP.getQualification()));
} }
variable.setDatatype(dt); variable.setDatatype(dt);
resultObject = variable; resultObject = variable;
@@ -214,7 +214,7 @@ public class MDMangGhidra extends MDMang {
else { else {
DemangledFunction function = DemangledFunction function =
new DemangledFunction(mangledSource, demangledSource, objectCPP.getName()); new DemangledFunction(mangledSource, demangledSource, objectCPP.getName());
function.setNamespace(processNamespace(objectCPP.getQualfication())); function.setNamespace(processNamespace(objectCPP.getQualification()));
resultObject = function; resultObject = function;
objectResult = processFunction((MDFunctionInfo) typeinfo, function); objectResult = processFunction((MDFunctionInfo) typeinfo, function);
// Any other special values to be set? // Any other special values to be set?
@@ -244,7 +244,7 @@ public class MDMangGhidra extends MDMang {
MDVxTable vxtable = (MDVxTable) typeinfo; MDVxTable vxtable = (MDVxTable) typeinfo;
DemangledVariable variable = DemangledVariable variable =
new DemangledVariable(mangledSource, demangledSource, objectCPP.getName()); new DemangledVariable(mangledSource, demangledSource, objectCPP.getName());
variable.setNamespace(processNamespace(objectCPP.getQualfication())); variable.setNamespace(processNamespace(objectCPP.getQualification()));
variable.setConst(vxtable.isConst()); variable.setConst(vxtable.isConst());
variable.setVolatile(vxtable.isVolatile()); variable.setVolatile(vxtable.isVolatile());
variable.setPointer64(vxtable.isPointer64()); variable.setPointer64(vxtable.isPointer64());
@@ -256,7 +256,7 @@ public class MDMangGhidra extends MDMang {
else if (typeinfo instanceof AbstractMDMetaClass) { //Includes all RTTI, except RTTI4 else if (typeinfo instanceof AbstractMDMetaClass) { //Includes all RTTI, except RTTI4
DemangledVariable variable = DemangledVariable variable =
new DemangledVariable(mangledSource, demangledSource, objectCPP.getName()); new DemangledVariable(mangledSource, demangledSource, objectCPP.getName());
variable.setNamespace(processNamespace(objectCPP.getQualfication())); variable.setNamespace(processNamespace(objectCPP.getQualification()));
resultObject = variable; resultObject = variable;
// The following code would be an alternative, depending on whether we get // The following code would be an alternative, depending on whether we get
// customer complaints or other fall-out from having created a variable here. // customer complaints or other fall-out from having created a variable here.
@@ -265,7 +265,7 @@ public class MDMangGhidra extends MDMang {
else if (typeinfo instanceof MDGuard) { else if (typeinfo instanceof MDGuard) {
DemangledVariable variable = DemangledVariable variable =
new DemangledVariable(mangledSource, demangledSource, objectCPP.getName()); new DemangledVariable(mangledSource, demangledSource, objectCPP.getName());
variable.setNamespace(processNamespace(objectCPP.getQualfication())); variable.setNamespace(processNamespace(objectCPP.getQualification()));
resultObject = variable; resultObject = variable;
// The following code would be an alternative, depending on whether we get // The following code would be an alternative, depending on whether we get
// customer complaints or other fall-out from having created a variable here. // customer complaints or other fall-out from having created a variable here.
@@ -275,7 +275,7 @@ public class MDMangGhidra extends MDMang {
// Any others (e.g., case '9') // Any others (e.g., case '9')
DemangledVariable variable = DemangledVariable variable =
new DemangledVariable(mangledSource, demangledSource, objectCPP.getName()); new DemangledVariable(mangledSource, demangledSource, objectCPP.getName());
variable.setNamespace(processNamespace(objectCPP.getQualfication())); variable.setNamespace(processNamespace(objectCPP.getQualification()));
resultObject = variable; resultObject = variable;
// The following code would be an alternative, depending on whether we get // The following code would be an alternative, depending on whether we get
// customer complaints or other fall-out from having created a variable here. // customer complaints or other fall-out from having created a variable here.
@@ -309,7 +309,7 @@ public class MDMangGhidra extends MDMang {
else if (baseName.length() != 0) { else if (baseName.length() != 0) {
DemangledVariable variable; DemangledVariable variable;
variable = new DemangledVariable(mangledSource, demangledSource, baseName); variable = new DemangledVariable(mangledSource, demangledSource, baseName);
variable.setNamespace(processNamespace(objectCPP.getQualfication())); variable.setNamespace(processNamespace(objectCPP.getQualification()));
resultObject = variable; resultObject = variable;
} }
} }
@@ -72,7 +72,7 @@ public class MDObjectCPP extends MDObject {
* Returns the {@link MDQualification} component that represents the namespace. * Returns the {@link MDQualification} component that represents the namespace.
* @return the namespace information. * @return the namespace information.
*/ */
public MDQualification getQualfication() { public MDQualification getQualification() {
if (hashedObjectFlag) { if (hashedObjectFlag) {
return hashedObject.getQualification(); return hashedObject.getQualification();
} }