diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-03-08 16:09:24 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-03-08 16:09:24 (GMT) |
commit | a33dd28e763e3a8b04145fb549aca9320e100a4b (patch) | |
tree | 26a99bc5b7e640c751dfbeba93994aa74b2ea9df /src/gtkext | |
parent | 2a03971cd2b19a6716a0e5e6896dcfcc91031a6a (diff) |
Prepared instructions to generate tooltips.
Diffstat (limited to 'src/gtkext')
-rw-r--r-- | src/gtkext/gtkblockdisplay.c | 6 |
1 files changed, 5 insertions, 1 deletions
diff --git a/src/gtkext/gtkblockdisplay.c b/src/gtkext/gtkblockdisplay.c index e4d9d48..8078e7e 100644 --- a/src/gtkext/gtkblockdisplay.c +++ b/src/gtkext/gtkblockdisplay.c @@ -25,6 +25,7 @@ #include "gtkbufferdisplay-int.h" +#include "../arch/instruction.h" #include "../arch/operand.h" #include "../analysis/loaded.h" @@ -305,7 +306,10 @@ static gboolean gtk_block_display_query_tooltip(GtkWidget *widget, gint x, gint if (creator != NULL) { - if (G_IS_ARCH_OPERAND(creator)) + if (G_IS_ARCH_INSTRUCTION(creator)) + info = g_arch_instruction_build_tooltip(G_ARCH_INSTRUCTION(creator)); + + else if (G_IS_ARCH_OPERAND(creator)) info = g_arch_operand_build_tooltip(G_ARCH_OPERAND(creator), panel->binary); else |