1
0
Fork 0

- ReadDebugDirectory(): add about 20 years worth of missing debug directory type names

- symbolsourcedia.h: Add _global.h #include to prevent various macros like WINVER and _WIN32_WINNT from being redefined because Windows.h was indirectly included first
This commit is contained in:
Mattiwatti 2018-03-18 07:36:08 +01:00 committed by Duncan Ogilvie
parent fc9285ed2e
commit 5ad21c69ee
No known key found for this signature in database
GPG Key ID: FC89E0AAA0C1AAD8
2 changed files with 13 additions and 0 deletions

View File

@ -381,6 +381,17 @@ void ReadDebugDirectory(MODINFO & Info, ULONG_PTR FileMapVA)
return "IMAGE_DEBUG_TYPE_RESERVED10";
case IMAGE_DEBUG_TYPE_CLSID:
return "IMAGE_DEBUG_TYPE_CLSID";
// The following types aren't defined in older Windows SDKs, so just count up from here so we can still return the names for them
case (IMAGE_DEBUG_TYPE_CLSID + 1):
return "IMAGE_DEBUG_TYPE_VC_FEATURE";
case (IMAGE_DEBUG_TYPE_CLSID + 2):
return "IMAGE_DEBUG_TYPE_POGO"; // For anyone grepping this: /NOCOFFGRPINFO is the undocumented linker switch to get rid of this crap. You're welcome
case (IMAGE_DEBUG_TYPE_CLSID + 3):
return "IMAGE_DEBUG_TYPE_ILTCG";
case (IMAGE_DEBUG_TYPE_CLSID + 4):
return "IMAGE_DEBUG_TYPE_MPX";
case (IMAGE_DEBUG_TYPE_CLSID + 5):
return "IMAGE_DEBUG_TYPE_REPRO";
default:
return "unknown";
}

View File

@ -1,6 +1,8 @@
#ifndef _SYMBOLSOURCEDIA_H_
#define _SYMBOLSOURCEDIA_H_
#include "_global.h"
#include "pdbdiafile.h"
#include "symbolsourcebase.h"
#include "sortedlru.h"