diff options
-rw-r--r-- | include/perk/perk_output.h | 7 | ||||
-rw-r--r-- | src/driver/pe_driver_ctx.c | 10 | ||||
-rw-r--r-- | src/internal/perk_driver_impl.h | 1 |
3 files changed, 17 insertions, 1 deletions
diff --git a/include/perk/perk_output.h b/include/perk/perk_output.h index d6e2529..313f609 100644 --- a/include/perk/perk_output.h +++ b/include/perk/perk_output.h @@ -35,7 +35,12 @@ #define PERK_PRETTY_TABLE PERK_PRETTY(0x00000002) #define PERK_PRETTY_READOBJ PERK_PRETTY(0x00000004) #define PERK_PRETTY_OBJDUMP PERK_PRETTY(0x00000008) + #define PERK_PRETTY_YAML PERK_PRETTY(0x00000010) -#define PERK_PRETTY_DLLTOOL PERK_PRETTY(0x00000020) +#define PERK_PRETTY_POSIX PERK_PRETTY(0x00000020) +#define PERK_PRETTY_HEXDATA PERK_PRETTY(0x00000040) +#define PERK_PRETTY_VERBOSE PERK_PRETTY(0x00000080) + +#define PERK_PRETTY_DLLTOOL PERK_PRETTY(0x10000000) #endif diff --git a/src/driver/pe_driver_ctx.c b/src/driver/pe_driver_ctx.c index 77a51d9..af9a30d 100644 --- a/src/driver/pe_driver_ctx.c +++ b/src/driver/pe_driver_ctx.c @@ -225,6 +225,10 @@ static int pe_cctx_update( pretty = entry->arg; break; + case TAG_VERBOSE: + cctx->fmtflags |= PERK_PRETTY_VERBOSE; + break; + case TAG_CATEGORY: cctx->fmtflags |= PERK_OUTPUT_IMAGE_CATEGORY; break; @@ -306,6 +310,12 @@ static int pe_cctx_update( if (pretty && !strcmp(pretty,"yaml")) { cctx->fmtflags |= PERK_PRETTY_YAML; + } else if (pretty && !strcmp(pretty,"posix")) { + cctx->fmtflags |= PERK_PRETTY_POSIX; + + } else if (pretty && !strcmp(pretty,"hexdata")) { + cctx->fmtflags |= PERK_PRETTY_HEXDATA; + } else if (pretty && !strcmp(pretty,"dlltool")) { cctx->fmtflags |= PERK_PRETTY_DLLTOOL; } diff --git a/src/internal/perk_driver_impl.h b/src/internal/perk_driver_impl.h index 3948eae..569d2d2 100644 --- a/src/internal/perk_driver_impl.h +++ b/src/internal/perk_driver_impl.h @@ -21,6 +21,7 @@ enum app_tags { TAG_VERSION, TAG_CMD, TAG_PRETTY, + TAG_VERBOSE, TAG_CATEGORY, TAG_SECTIONS, TAG_SYMBOLS, |