summaryrefslogtreecommitdiff
path: root/src/gallium/drivers/llvmpipe/lp_bld_debug.c
diff options
context:
space:
mode:
authorJosé Fonseca <jfonseca@vmware.com>2009-12-05 05:43:10 +0000
committerJosé Fonseca <jfonseca@vmware.com>2009-12-05 05:43:10 +0000
commitdd51b4f9091abf762e470f0cd4c802215a108290 (patch)
tree3521e808eba06880659c2d3222b2ce5baf04b42a /src/gallium/drivers/llvmpipe/lp_bld_debug.c
parentc0a13bbae15a471fea278e37b92b874fed1f6b3b (diff)
llvmpipe: Stop disassembling when an unsupported opcode is found.
Otherwise the terminal gets full of garbage.
Diffstat (limited to 'src/gallium/drivers/llvmpipe/lp_bld_debug.c')
-rw-r--r--src/gallium/drivers/llvmpipe/lp_bld_debug.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/src/gallium/drivers/llvmpipe/lp_bld_debug.c b/src/gallium/drivers/llvmpipe/lp_bld_debug.c
index 59d8f492e6..354b3af49e 100644
--- a/src/gallium/drivers/llvmpipe/lp_bld_debug.c
+++ b/src/gallium/drivers/llvmpipe/lp_bld_debug.c
@@ -115,7 +115,8 @@ lp_disassemble(const void* func)
}
}
- if (ud_insn_off(&ud_obj) >= max_jmp_pc && ud_obj.mnemonic == UD_Iret)
+ if ((ud_insn_off(&ud_obj) >= max_jmp_pc && ud_obj.mnemonic == UD_Iret) ||
+ ud_obj.mnemonic == UD_Iinvalid)
break;
}
debug_printf("\n");