Merge branch 'GP-2428_ryanmkurtz_PR-4501_xiaoyinl_pdbpath'

This commit is contained in:
Ryan Kurtz
2022-08-08 13:20:03 -04:00
2 changed files with 4 additions and 4 deletions

View File

@@ -103,8 +103,8 @@ public class PdbInfoCodeView implements StructConverter, PdbInfo {
struct.add(new DWordDataType(), "offset", null);
struct.add(new DWordDataType(), "sig", null);
struct.add(new DWordDataType(), "age", null);
if (pdbName.length() > 0) {
struct.add(new StringDataType(), pdbName.length(), "pdbname", null);
if (pdbPath.length() > 0) {
struct.add(new StringDataType(), pdbPath.length(), "pdbpath", null);
}
struct.setCategoryPath(new CategoryPath("/PDB"));
return struct;

View File

@@ -121,8 +121,8 @@ public class PdbInfoDotNet implements StructConverter, PdbInfo {
struct.add(new StringDataType(), magic.length, "signature", null);
struct.add(new GuidDataType(), "guid", null);
struct.add(new DWordDataType(), "age", null);
if (pdbName.length() > 0) {
struct.add(new StringDataType(), pdbName.length(), "pdbname", null);
if (pdbPath.length() > 0) {
struct.add(new StringDataType(), pdbPath.length(), "pdbpath", null);
}
struct.setCategoryPath(new CategoryPath("/PDB"));
return struct;