diff options
| author | Your Name <you@example.com> | 2022-07-29 18:24:22 +0100 |
|---|---|---|
| committer | Your Name <you@example.com> | 2022-07-29 19:33:31 +0100 |
| commit | 4fdd64d6d6ca98145873057115d059704a79aeeb (patch) | |
| tree | 7a75e7d5ab8848731981bf248dd59832cd7983ba /frida_mode/src/instrument/instrument_debug.c | |
| parent | f2b7104cd6c808c2caceb1314a19f4dbcfd087d7 (diff) | |
| download | afl++-4fdd64d6d6ca98145873057115d059704a79aeeb.tar.gz | |
Added framework for logging register contents at the end of each basic block
Diffstat (limited to 'frida_mode/src/instrument/instrument_debug.c')
| -rw-r--r-- | frida_mode/src/instrument/instrument_debug.c | 4 |
1 files changed, 1 insertions, 3 deletions
diff --git a/frida_mode/src/instrument/instrument_debug.c b/frida_mode/src/instrument/instrument_debug.c index d26f9cec..17245d65 100644 --- a/frida_mode/src/instrument/instrument_debug.c +++ b/frida_mode/src/instrument/instrument_debug.c @@ -63,14 +63,12 @@ static void instrument_disasm(guint8 *start, guint8 *end, count = cs_disasm(capstone, curr, size, GPOINTER_TO_SIZE(curr), 0, &insn); if (insn == NULL) { - instrument_debug("\t0x%" G_GINT64_MODIFIER "x\t* 0x%016" G_GSIZE_MODIFIER "x\n", - (uint64_t)curr, *(size_t *)curr); + (uint64_t)(size_t)curr, *(size_t *)curr); len += sizeof(size_t); continue; - } for (i = 0; i != count; i++) { |
