More visibility for PackHeader when debug(-D)

modified:   packhead.cpp
	modified:   packmast.cpp
	modified:   pefile.h
This commit is contained in:
John Reiser
2017-05-26 13:02:32 -07:00
parent f42a37555d
commit d1a869496b
3 changed files with 14 additions and 7 deletions
+8 -6
View File
@@ -137,12 +137,14 @@ Packer *PackMaster::visitAllPackers(visit_func_t func, InputFile *f, const optio
void *user) {
Packer *p = NULL;
#define D(klass) \
ACC_BLOCK_BEGIN \
if (o->debug.debug_level) \
fprintf(stderr, "visitAllPackers: %s\n", #klass); \
if ((p = func(new klass(f), user)) != NULL) \
return p; \
#define D(Klass) \
ACC_BLOCK_BEGIN \
Klass *const kp = new Klass(f); \
if (o->debug.debug_level) \
fprintf(stderr, "visitAllPackers: (ver=%d, fmt=%3d) %s\n", \
kp->getVersion(), kp->getFormat(), #Klass); \
if ((p = func(kp, user))) \
return p; \
ACC_BLOCK_END
// note: order of tries is important !