summaryrefslogtreecommitdiff
path: root/makedumpfile.h
diff options
context:
space:
mode:
authorHATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>2012-11-16 15:10:41 +0900
committerAtsushi Kumagai <kumagai-atsushi@mxc.nes.nec.co.jp>2012-11-22 17:58:41 +0900
commitd3b0a1f390c7047824a51ced5e706d5b1d2fd058 (patch)
treecc9392fdd4cbbc8fb7085ee0feb970f383f05a9d /makedumpfile.h
parent4aca5828578c36589203882f1c9f82819e8fa4e4 (diff)
[PATCH v2 02/10] Add debuginfo interface for enum type size.
This is need to determine if a specified enumeration type is present in a given debug information. In this patch set, I'll use this to check if enum pageflags is present. The newly introduced interface is a simple extension from the existing one for enumeration value. Signed-off-by: HATAYAMA Daisuke <d.hatayama@jp.fujitsu.com>
Diffstat (limited to 'makedumpfile.h')
-rw-r--r--makedumpfile.h13
1 files changed, 11 insertions, 2 deletions
diff --git a/makedumpfile.h b/makedumpfile.h
index 8ffef76..6120073 100644
--- a/makedumpfile.h
+++ b/makedumpfile.h
@@ -251,14 +251,23 @@ do { \
#define ARRAY_LENGTH(X) (array_table.X)
#define SIZE_INIT(X, Y) \
do { \
- if ((SIZE(X) = get_structure_size(Y, 0)) == FAILED_DWARFINFO) \
+ if ((SIZE(X) = get_structure_size(Y, DWARF_INFO_GET_STRUCT_SIZE)) \
+ == FAILED_DWARFINFO) \
return FALSE; \
} while (0)
#define TYPEDEF_SIZE_INIT(X, Y) \
do { \
- if ((SIZE(X) = get_structure_size(Y, 1)) == FAILED_DWARFINFO) \
+ if ((SIZE(X) = get_structure_size(Y, DWARF_INFO_GET_TYPEDEF_SIZE)) \
+ == FAILED_DWARFINFO) \
return FALSE; \
} while (0)
+#define ENUM_TYPE_SIZE_INIT(X, Y) \
+do { \
+ if ((SIZE(X) = get_structure_size(Y, \
+ DWARF_INFO_GET_ENUMERATION_TYPE_SIZE)) \
+ == FAILED_DWARFINFO) \
+ return FALSE; \
+} while (0)
#define OFFSET_INIT(X, Y, Z) \
do { \
if ((OFFSET(X) = get_member_offset(Y, Z, DWARF_INFO_GET_MEMBER_OFFSET)) \