summaryrefslogtreecommitdiff
path: root/src/arch/target.c
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2017-05-16 21:56:55 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2017-05-16 21:56:55 (GMT)
commit4691a434a34a19317156a761967f719e408b73bb (patch)
tree1daaf5be5d4a9f52d492380c2862580129d2ad12 /src/arch/target.c
parent1996274a43883aa58e8c565f7698bc7c338a9ce0 (diff)
Merged routines into symbols.
Diffstat (limited to 'src/arch/target.c')
-rw-r--r--src/arch/target.c10
1 files changed, 2 insertions, 8 deletions
diff --git a/src/arch/target.c b/src/arch/target.c
index a863d69..056ace3 100644
--- a/src/arch/target.c
+++ b/src/arch/target.c
@@ -34,6 +34,7 @@
#include "operand-int.h"
#include "sharing/manager.h"
+#include "../analysis/routine.h"
#include "../common/extstr.h"
#include "../format/format.h"
@@ -433,7 +434,6 @@ static char *g_target_operand_build_tooltip(const GTargetOperand *operand, const
{
char *result; /* Description à retourner */
SymbolType stype; /* Type de symbole identifié */
- GBinRoutine *routine; /* Routine à manipuler */
const mrange_t *srange; /* Emplacement du symbole */
GBufferCache *cache; /* Tampon de désassemblage */
size_t index; /* Indice de ligne à traiter */
@@ -449,13 +449,7 @@ static char *g_target_operand_build_tooltip(const GTargetOperand *operand, const
{
case STP_ROUTINE:
case STP_ENTRY_POINT:
-
- routine = g_binary_symbol_get_routine(operand->symbol);
-
- result = g_binary_routine_build_tooltip(routine, binary);
-
- //g_object_unref(G_OBJECT(routine)); // TODO
-
+ result = g_binary_routine_build_tooltip(G_BIN_ROUTINE(operand->symbol), binary);
break;
case STP_STRING: