Skip to content

Commit

Permalink
PDBExtractor: add ARM machine type
Browse files Browse the repository at this point in the history
  • Loading branch information
Biswa96 authored and wbenny committed Jan 1, 2020
1 parent dba65c0 commit c138afd
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 0 deletions.
2 changes: 2 additions & 0 deletions Source/PDBExtractor.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -450,6 +450,8 @@ PDBExtractor::PrintPDBHeader()
m_PDB.GetMachineType() == IMAGE_FILE_MACHINE_AMD64 ? "AMD64" :
m_PDB.GetMachineType() == IMAGE_FILE_MACHINE_IA64 ? "IA64" :
m_PDB.GetMachineType() == IMAGE_FILE_MACHINE_ARMNT ? "ArmNT" :
m_PDB.GetMachineType() == IMAGE_FILE_MACHINE_ARM64 ? "ARM64" :
m_PDB.GetMachineType() == IMAGE_FILE_MACHINE_CHPE_X86 ? "CHPE_X86" :
"Unknown";

static char HEADER_FILE_HEADER_FORMATTED[16 * 1024];
Expand Down
5 changes: 5 additions & 0 deletions Source/PDBExtractor.h
Original file line number Diff line number Diff line change
Expand Up @@ -7,6 +7,11 @@
#include <memory>
#include <string>

// From ntimage.h
#ifndef IMAGE_FILE_MACHINE_CHPE_X86
#define IMAGE_FILE_MACHINE_CHPE_X86 0x3A64
#endif

#define PDBEX_VERSION_MAJOR 0
#define PDBEX_VERSION_MINOR 18

Expand Down

0 comments on commit c138afd

Please sign in to comment.