From 29c47defe62fb2b47efa964d1b8486b4f6f19544 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Andr=C3=A9=20Hentschel?= Date: Wed, 27 May 2015 22:33:30 +0200 Subject: [PATCH] winedump: Add more image debug types. --- include/winnt.h | 4 ++++ tools/winedump/pe.c | 19 +++++-------------- 2 files changed, 9 insertions(+), 14 deletions(-) diff --git a/include/winnt.h b/include/winnt.h index 73d4d367bf7..7a08810330d 100644 --- a/include/winnt.h +++ b/include/winnt.h @@ -3531,6 +3531,10 @@ typedef struct _IMAGE_DEBUG_DIRECTORY { #define IMAGE_DEBUG_TYPE_BORLAND 9 #define IMAGE_DEBUG_TYPE_RESERVED10 10 #define IMAGE_DEBUG_TYPE_CLSID 11 +#define IMAGE_DEBUG_TYPE_VC_FEATURE 12 +#define IMAGE_DEBUG_TYPE_POGO 13 +#define IMAGE_DEBUG_TYPE_ILTCG 14 +#define IMAGE_DEBUG_TYPE_MPX 15 typedef enum ReplacesCorHdrNumericDefines { diff --git a/tools/winedump/pe.c b/tools/winedump/pe.c index 51ceba4ff69..dbe5d8f97d1 100644 --- a/tools/winedump/pe.c +++ b/tools/winedump/pe.c @@ -1331,6 +1331,10 @@ static void dump_dir_debug_dir(const IMAGE_DEBUG_DIRECTORY* idd, int idx) case IMAGE_DEBUG_TYPE_BORLAND: str = "BORLAND"; break; case IMAGE_DEBUG_TYPE_RESERVED10: str = "RESERVED10"; break; case IMAGE_DEBUG_TYPE_CLSID: str = "CLSID"; break; + case IMAGE_DEBUG_TYPE_VC_FEATURE: str = "VC_FEATURE"; break; + case IMAGE_DEBUG_TYPE_POGO: str = "POGO"; break; + case IMAGE_DEBUG_TYPE_ILTCG: str = "ILTCG"; break; + case IMAGE_DEBUG_TYPE_MPX: str = "MPX"; break; } printf(" Type: %u (%s)\n", idd->Type, str); printf(" SizeOfData: %u\n", idd->SizeOfData); @@ -1363,20 +1367,7 @@ static void dump_dir_debug_dir(const IMAGE_DEBUG_DIRECTORY* idd, int idx) printf(" Data: %s\n", misc->Data); } break; - case IMAGE_DEBUG_TYPE_EXCEPTION: - break; - case IMAGE_DEBUG_TYPE_FIXUP: - break; - case IMAGE_DEBUG_TYPE_OMAP_TO_SRC: - break; - case IMAGE_DEBUG_TYPE_OMAP_FROM_SRC: - break; - case IMAGE_DEBUG_TYPE_BORLAND: - break; - case IMAGE_DEBUG_TYPE_RESERVED10: - break; - case IMAGE_DEBUG_TYPE_CLSID: - break; + default: break; } printf("\n"); }