summaryrefslogtreecommitdiff
path: root/src/analysis
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2015-07-12 22:26:49 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2015-07-12 22:26:49 (GMT)
commit7e1c5ac72a317d39952843239023c0fa506f2322 (patch)
tree206b4f7ca4165c22b796d90e3343f677296b0857 /src/analysis
parent254254db8c09eb4b4f8523e73551c13ec281d194 (diff)
Cleaned the code handling binary symbols.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@548 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/analysis')
-rw-r--r--src/analysis/disass/area.c2
-rw-r--r--src/analysis/disass/output.c4
2 files changed, 3 insertions, 3 deletions
diff --git a/src/analysis/disass/area.c b/src/analysis/disass/area.c
index 94d659b..4c54a27 100644
--- a/src/analysis/disass/area.c
+++ b/src/analysis/disass/area.c
@@ -435,7 +435,7 @@ static void update_address_as_routine(GBinFormat *format, const vmpa2t *addr)
if (!found)
{
- symbol = g_binary_symbol_new(STP_ROUTINE, NULL, ~0);
+ symbol = g_binary_symbol_new(STP_ROUTINE);
g_binary_symbol_attach_routine(symbol, routine);
g_binary_format_add_symbol(G_BIN_FORMAT(format), symbol);
}
diff --git a/src/analysis/disass/output.c b/src/analysis/disass/output.c
index 324975b..91c865a 100644
--- a/src/analysis/disass/output.c
+++ b/src/analysis/disass/output.c
@@ -114,10 +114,10 @@ void print_disassembled_instructions(GCodeBuffer *buffer, const GExeFormat *form
saddr = get_mrange_addr(g_binary_symbol_get_range(symbols[i]));
if (saddr == NULL) continue;
- //if (g_binary_symbol_to_string(symbols[i]) == NULL) continue;
+ //if (g_binary_symbol_get_label(symbols[i]) == NULL) continue;
printf(" <symbol> '%s' -> 0x%08lx\n",
- "g_binary_symbol_to_string(symbols[i])",
+ "g_binary_symbol_get_label(symbols[i])",
saddr->virtual);
}