Ghidra is a software reverse engineering (SRE) framework
Merge remote-tracking branch 'origin/patch'
ghidra1b66aaa337d13
diff --cc Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb/DefaultCompositeMember.javaindex 81b105e3d4,0e54367097..62fe5c8cfe--- a/Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb/DefaultCompositeMember.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb/DefaultCompositeMember.java@@@ -469,35 -486,35 +486,6 @@@ class DefaultCompositeMember extends Coreturn "[CompositeMember: " + memberOffset + " " + memberName + " " + type + "]";}-- /**-- * <code>DataTypeResolver</code> provides the ability to resolve a member's data-type-- * at the time of construction.-- */-- interface DataTypeResolver {-- /**-- * Find the specified member's data type-- * @param member composite member to be resolved-- * @return data-type which corresponds to the specified member's data-type name or null-- * if unable to resolve.-- * @throws CancelledException if operation cancelled-- */-- WrappedDataType findDataType(DefaultCompositeMember member) throws CancelledException;---- /**-- * Callback to resolve and finalize composite definition. The caller may return immediately-- * if composite as previously been resolved as reflected by the composite datatype.-- * This callback is necessary to ensure that the composite alignment has been-- * established prior to finalizing the compsoite currently being resolved.-- * @param memberDefinition member definition object-- * @param composite composite member datatype which corresponds to the specified-- * memberDefinition.-- * @param monitor task monitor-- * @throws CancelledException-- */-- void resolveComposite(PdbMember compositeDefinition, Composite composite,-- TaskMonitor monitor) throws CancelledException;-- }--/*** Attempt to add a child member to this composite hierarchy* @param child PDB data-type member recorddiff --cc Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb/PdbParser.javaindex a96af01f10,9c358026c4..0b075e2e54--- a/Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb/PdbParser.java+++ b/Ghidra/Features/PDB/src/main/java/ghidra/app/util/bin/format/pdb/PdbParser.java@@@ -436,10 -435,10 +435,10 @@@ public class PdbParsermonitor.checkCanceled();boolean isClass = namespaceMap.get(path);Namespace parentNamespace =- NamespaceUtils.getNamespace(program, path.getParent(), null);+ NamespaceUtils.getNonFunctionNamespace(program, path.getParent());if (parentNamespace == null) {String type = isClass ? "class" : "namespace";- log.appendMsg("Error: failed to define " + type + ": " + path);+ log.appendMsg("PDB", "Failed to define " + type + ": " + path);continue;}defineNamespace(parentNamespace, path.getName(), isClass, log);@@@ -478,8 -478,8 +478,8 @@@}}catch (Exception e) {- log.appendMsg("Unable to create class namespace: " + parentNamespace.getName(true) +- Namespace.DELIMITER + name);+ log.appendMsg("PDB", "Unable to create class namespace: " +- parentNamespace.getName(true) + Namespace.NAMESPACE_DELIMITER + name);++ parentNamespace.getName(true) + Namespace.DELIMITER + name);}}