summaryrefslogtreecommitdiff
path: root/src/format/symbol.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/symbol.c')
-rw-r--r--src/format/symbol.c15
1 files changed, 15 insertions, 0 deletions
diff --git a/src/format/symbol.c b/src/format/symbol.c
index 7817d5f..8ab76b6 100644
--- a/src/format/symbol.c
+++ b/src/format/symbol.c
@@ -41,6 +41,8 @@ struct _GBinSymbol
char *alt; /* Nom alternatif */
+ char *tmp_label; /* REMME */
+
union
{
GArchInstruction *instr; /* Instruction correspondante */
@@ -255,6 +257,13 @@ vmpa_t g_binary_symbol_get_address(const GBinSymbol *symbol)
+void g_binary_symbol_set_label(GBinSymbol *symbol, const char *lbl)
+{
+ symbol->tmp_label = strdup(lbl);
+
+}
+
+
/******************************************************************************
* *
* Paramètres : symbol = symbole à venir consulter. *
@@ -273,6 +282,12 @@ const char *g_binary_symbol_get_label(const GBinSymbol *symbol)
result = NULL;
+
+ /* TODO : utiliser des types pour les instructions */
+ if (symbol->tmp_label != NULL)
+ return symbol->tmp_label;
+
+
switch (symbol->type)
{
case STP_ROUTINE: