Make a start on x86 instruction emission.
git-svn-id: svn://svn.valgrind.org/vex/trunk@101 8f6e269a-dfd6-0310-a8e1-e2731360e62c
diff --git a/priv/main/vex_main.c b/priv/main/vex_main.c
index 1c44df8..7b70455 100644
--- a/priv/main/vex_main.c
+++ b/priv/main/vex_main.c
@@ -185,7 +185,16 @@
UChar insn_bytes[32];
out_used = 0; /* tracks along the host_bytes array */
for (i = 0; i < rcode->arr_used; i++) {
+ if (vex_verbosity > 0) {
+ ppInstr(rcode->arr[i]);
+ vex_printf("\n");
+ }
j = (*emit)( insn_bytes, 32, rcode->arr[i] );
+ if (vex_verbosity > 0) {
+ for (k = 0; k < j; k++)
+ vex_printf("0x%-2x ", (UInt)insn_bytes[k]);
+ vex_printf("\n\n");
+ }
if (out_used + j > host_bytes_size) {
LibVEX_ClearTemporary(False);
return TransOutputFull;