summaryrefslogtreecommitdiff
path: root/src/format/mangling/itanium/component-int.h
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2013-12-29 14:07:38 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2013-12-29 14:07:38 (GMT)
commit944461f7af1995b08783dc761772908ec7c204a6 (patch)
tree21a50208c650390e9649bb0892f94bab26d5fc8f /src/format/mangling/itanium/component-int.h
parent11634a93003e7b5dd339bb52f2cde04f29f4c4e4 (diff)
Handled Itanium demangling with C code (first part).
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@361 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format/mangling/itanium/component-int.h')
-rw-r--r--src/format/mangling/itanium/component-int.h79
1 files changed, 79 insertions, 0 deletions
diff --git a/src/format/mangling/itanium/component-int.h b/src/format/mangling/itanium/component-int.h
new file mode 100644
index 0000000..e6d86b6
--- /dev/null
+++ b/src/format/mangling/itanium/component-int.h
@@ -0,0 +1,79 @@
+
+
+#ifndef _FORMAT_MANGLING_ITANIUM_ABI2_H
+#define _FORMAT_MANGLING_ITANIUM_ABI2_H
+
+
+#include "component.h"
+
+
+
+/* Composant extrait de l'encodage */
+struct _itanium_component
+{
+ ItaniumComponentType type; /* Type de composant */
+
+ GItaniumDContext *context; /* Regroupement de composants */
+ unsigned int refcount; /* Compteur de références */
+
+ fnv64_t hash; /* Empreinte en cache */
+
+ union
+ {
+ /* ICT_NAME */
+ struct
+ {
+ const char *str;
+ size_t len;
+
+ } s_name;
+
+ /* ICT_OPERATOR_NAME */
+ struct
+ {
+ ItaniumOperatorType otype; /* Sélection dans l'union */
+
+ union
+ {
+ itanium_operator_info info; /* Opérateur simple */
+
+
+ };
+
+ } operator;
+
+ /* ICT_NON_VIRTUAL_OFFSET */
+ /* ICT_VIRTUAL_OFFSET */
+ ssize_t offset; /* Décallage de fonction */
+
+ /* ICT_TYPE */
+ GDataType *dtype; /* Type instancié */
+
+
+ /* ICT_* */
+ struct
+ {
+ itanium_component *left; /* Elément premier */
+ itanium_component *right; /* Elément second */
+
+ } binary;
+
+ /* ICT_* */
+ struct
+ {
+ itanium_component *first; /* Elément premier */
+ itanium_component *second; /* Elément second */
+ itanium_component *third; /* Elément troisième */
+
+ } ternary;
+
+ /* ICT_* */
+ itanium_component *unary; /* Sous-élément */
+
+ };
+
+};
+
+
+
+#endif /* _FORMAT_MANGLING_ITANIUM_ABI2_H */