summaryrefslogtreecommitdiff
path: root/src/format/symbol.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-03-08 21:31:56 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-03-08 21:31:56 (GMT)
commite7ba901892df20045ff3a541b4fa34e36bd05bfb (patch)
tree4ef5307f7cbb39acc4b02419f4b15ef1801c8c0f /src/format/symbol.c
parent68bb7efaf61e4f5ca2f2cffce84995ffd667c4cc (diff)
Listed all idenfied read only strings in a dedicated panel.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@483 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
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;