mirror of
https://github.com/QuasarApp/LIEF.git
synced 2025-05-03 07:39:34 +00:00
add IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS
This commit is contained in:
parent
b023698df8
commit
cd05f34bae
@ -266,7 +266,8 @@ void init_enums(py::module& m) {
|
|||||||
.value(PY_ENUM(LIEF::PE::DEBUG_TYPES::IMAGE_DEBUG_TYPE_POGO))
|
.value(PY_ENUM(LIEF::PE::DEBUG_TYPES::IMAGE_DEBUG_TYPE_POGO))
|
||||||
.value(PY_ENUM(LIEF::PE::DEBUG_TYPES::IMAGE_DEBUG_TYPE_ILTCG))
|
.value(PY_ENUM(LIEF::PE::DEBUG_TYPES::IMAGE_DEBUG_TYPE_ILTCG))
|
||||||
.value(PY_ENUM(LIEF::PE::DEBUG_TYPES::IMAGE_DEBUG_TYPE_MPX))
|
.value(PY_ENUM(LIEF::PE::DEBUG_TYPES::IMAGE_DEBUG_TYPE_MPX))
|
||||||
.value(PY_ENUM(LIEF::PE::DEBUG_TYPES::IMAGE_DEBUG_TYPE_REPRO));
|
.value(PY_ENUM(LIEF::PE::DEBUG_TYPES::IMAGE_DEBUG_TYPE_REPRO))
|
||||||
|
.value(PY_ENUM(LIEF::PE::DEBUG_TYPES::IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS));
|
||||||
|
|
||||||
|
|
||||||
LIEF::enum_<LIEF::PE::RESOURCE_TYPES>(m, "RESOURCE_TYPES")
|
LIEF::enum_<LIEF::PE::RESOURCE_TYPES>(m, "RESOURCE_TYPES")
|
||||||
|
@ -263,23 +263,24 @@ enum _LIEF_EN(DLL_CHARACTERISTICS) {
|
|||||||
|
|
||||||
|
|
||||||
enum _LIEF_EN(DEBUG_TYPES) {
|
enum _LIEF_EN(DEBUG_TYPES) {
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_UNKNOWN) = 0,
|
_LIEF_EI(IMAGE_DEBUG_TYPE_UNKNOWN) = 0,
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_COFF) = 1, ///< COFF debug information
|
_LIEF_EI(IMAGE_DEBUG_TYPE_COFF) = 1, ///< COFF debug information
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_CODEVIEW) = 2, ///< CodeView debug information (pdb & cie)
|
_LIEF_EI(IMAGE_DEBUG_TYPE_CODEVIEW) = 2, ///< CodeView debug information (pdb & cie)
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_FPO) = 3, ///< Frame pointer omission information
|
_LIEF_EI(IMAGE_DEBUG_TYPE_FPO) = 3, ///< Frame pointer omission information
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_MISC) = 4, ///< CodeView Debug Information
|
_LIEF_EI(IMAGE_DEBUG_TYPE_MISC) = 4, ///< CodeView Debug Information
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_EXCEPTION) = 5, ///< A copy of .pdata section.
|
_LIEF_EI(IMAGE_DEBUG_TYPE_EXCEPTION) = 5, ///< A copy of .pdata section.
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_FIXUP) = 6, ///< Reserved.
|
_LIEF_EI(IMAGE_DEBUG_TYPE_FIXUP) = 6, ///< Reserved.
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_OMAP_TO_SRC) = 7, ///< The mapping from an RVA in image to an RVA in source image.
|
_LIEF_EI(IMAGE_DEBUG_TYPE_OMAP_TO_SRC) = 7, ///< The mapping from an RVA in image to an RVA in source image.
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_OMAP_FROM_SRC) = 8, ///< The mapping from an RVA in source image to an RVA in image.
|
_LIEF_EI(IMAGE_DEBUG_TYPE_OMAP_FROM_SRC) = 8, ///< The mapping from an RVA in source image to an RVA in image.
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_BORLAND) = 9, ///< Reserved for Borland.
|
_LIEF_EI(IMAGE_DEBUG_TYPE_BORLAND) = 9, ///< Reserved for Borland.
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_RESERVED10) = 10, ///< Reserved for future use.
|
_LIEF_EI(IMAGE_DEBUG_TYPE_RESERVED10) = 10, ///< Reserved for future use.
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_CLSID) = 11,
|
_LIEF_EI(IMAGE_DEBUG_TYPE_CLSID) = 11,
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_VC_FEATURE) = 12,
|
_LIEF_EI(IMAGE_DEBUG_TYPE_VC_FEATURE) = 12,
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_POGO) = 13,
|
_LIEF_EI(IMAGE_DEBUG_TYPE_POGO) = 13,
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_ILTCG) = 14,
|
_LIEF_EI(IMAGE_DEBUG_TYPE_ILTCG) = 14,
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_MPX) = 15,
|
_LIEF_EI(IMAGE_DEBUG_TYPE_MPX) = 15,
|
||||||
_LIEF_EI(IMAGE_DEBUG_TYPE_REPRO) = 16,
|
_LIEF_EI(IMAGE_DEBUG_TYPE_REPRO) = 16,
|
||||||
|
_LIEF_EI(IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS) = 20,
|
||||||
};
|
};
|
||||||
|
|
||||||
|
|
||||||
|
@ -392,24 +392,25 @@ const char* to_string(RELOCATIONS_BASE_TYPES e) {
|
|||||||
|
|
||||||
|
|
||||||
const char* to_string(DEBUG_TYPES e) {
|
const char* to_string(DEBUG_TYPES e) {
|
||||||
CONST_MAP(DEBUG_TYPES, const char*, 17) enumStrings {
|
CONST_MAP(DEBUG_TYPES, const char*, 18) enumStrings {
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_UNKNOWN, "UNKNOWN" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_UNKNOWN, "UNKNOWN" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_COFF, "COFF" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_COFF, "COFF" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_CODEVIEW, "CODEVIEW" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_CODEVIEW, "CODEVIEW" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_FPO, "FPO" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_FPO, "FPO" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_MISC, "MISC" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_MISC, "MISC" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_EXCEPTION, "EXCEPTION" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_EXCEPTION, "EXCEPTION" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_FIXUP, "FIXUP" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_FIXUP, "FIXUP" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_OMAP_TO_SRC, "OMAP_TO_SRC" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_OMAP_TO_SRC, "OMAP_TO_SRC" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_OMAP_FROM_SRC, "OMAP_FROM_SRC" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_OMAP_FROM_SRC, "OMAP_FROM_SRC" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_BORLAND, "BORLAND" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_BORLAND, "BORLAND" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_RESERVED10, "RESERVED" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_RESERVED10, "RESERVED" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_CLSID, "CLSID" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_CLSID, "CLSID" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_VC_FEATURE, "VC_FEATURE" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_VC_FEATURE, "VC_FEATURE" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_POGO, "POGO" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_POGO, "POGO" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_ILTCG, "ILTCG" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_ILTCG, "ILTCG" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_MPX, "MPX" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_MPX, "MPX" },
|
||||||
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_REPRO, "REPRO" },
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_REPRO, "REPRO" },
|
||||||
|
{ DEBUG_TYPES::IMAGE_DEBUG_TYPE_EX_DLLCHARACTERISTICS, "EX_DLLCHARACTERISTICS" },
|
||||||
};
|
};
|
||||||
|
|
||||||
auto it = enumStrings.find(e);
|
auto it = enumStrings.find(e);
|
||||||
|
Loading…
x
Reference in New Issue
Block a user