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.c4
1 files changed, 4 insertions, 0 deletions
diff --git a/src/format/symbol.c b/src/format/symbol.c
index 8ab76b6..37dc45e 100644
--- a/src/format/symbol.c
+++ b/src/format/symbol.c
@@ -222,6 +222,7 @@ SymbolType g_binary_symbol_get_target_type(const GBinSymbol *symbol)
const char *g_binary_symbol_to_string(const GBinSymbol *symbol)
{
+ return "AAAA";
const char *result; /* Désignation à retourner */
switch (symbol->type)
@@ -328,6 +329,7 @@ void g_binary_symbol_fix_range(GBinSymbol *symbol, const vmpa2t *full)
switch (symbol->type)
{
case STP_DATA:
+ case STP_RO_STRING:
instr = g_binary_symbol_get_instruction(symbol);
@@ -385,6 +387,7 @@ const mrange_t *g_binary_symbol_get_range(const GBinSymbol *symbol)
switch (symbol->type)
{
case STP_DATA:
+ case STP_RO_STRING:
result = g_arch_instruction_get_range(symbol->extra.instr);
break;
@@ -460,6 +463,7 @@ void g_binary_symbol_attach_routine(GBinSymbol *symbol, GBinRoutine *routine)
void g_binary_symbol_attach_instruction(GBinSymbol *symbol, GArchInstruction *instr)
{
+ if (symbol->type != STP_RO_STRING)
symbol->type = STP_DATA;
symbol->extra.instr = instr;