diff options
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 |