diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2015-10-14 19:33:06 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2015-10-14 19:33:06 (GMT) |
commit | c9449c389834c580196527c4e1cb010a701e7a32 (patch) | |
tree | 224396e26a8fc11a6106c754b3870f854b7796f2 /src/format | |
parent | 48726043e2f07874e7a09a866c4cc537a65a683c (diff) |
Discarded code symbols as symbols already containing instructions when disassembling.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@595 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format')
-rw-r--r-- | src/format/symbol.c | 4 |
1 files changed, 4 insertions, 0 deletions
diff --git a/src/format/symbol.c b/src/format/symbol.c index 2346c63..58fdfb3 100644 --- a/src/format/symbol.c +++ b/src/format/symbol.c @@ -494,6 +494,8 @@ void g_binary_symbol_attach_instruction(GBinSymbol *symbol, GArchInstruction *in GBinRoutine *g_binary_symbol_get_routine(const GBinSymbol *symbol) { + /* TODO : rajouter des assert() sur le type de symbole */ + return symbol->extra.routine; } @@ -513,6 +515,8 @@ GBinRoutine *g_binary_symbol_get_routine(const GBinSymbol *symbol) GArchInstruction *g_binary_symbol_get_instruction(const GBinSymbol *symbol) { + /* TODO : rajouter des assert() sur le type de symbole */ + return symbol->extra.instr; } |