diff options
author | van Hauser <vh@thc.org> | 2020-06-05 09:42:17 +0200 |
---|---|---|
committer | van Hauser <vh@thc.org> | 2020-06-05 09:42:17 +0200 |
commit | e01cad2f7de77c4704243d7011de2bff95fd59f7 (patch) | |
tree | abcb7cc5dae9b35b3199d871136e343c528521b9 /qemu_mode/patches/afl-qemu-cpu-inl.h | |
parent | a1beb72cad5a9993e4bd437c55523824d515a72f (diff) | |
download | afl++-e01cad2f7de77c4704243d7011de2bff95fd59f7.tar.gz |
qemu debug
Diffstat (limited to 'qemu_mode/patches/afl-qemu-cpu-inl.h')
-rw-r--r-- | qemu_mode/patches/afl-qemu-cpu-inl.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/qemu_mode/patches/afl-qemu-cpu-inl.h b/qemu_mode/patches/afl-qemu-cpu-inl.h index d3893066..8feb7613 100644 --- a/qemu_mode/patches/afl-qemu-cpu-inl.h +++ b/qemu_mode/patches/afl-qemu-cpu-inl.h @@ -341,6 +341,8 @@ void afl_forkserver(CPUState *cpu) { status |= (FS_OPT_SET_MAPSIZE(MAP_SIZE) | FS_OPT_MAPSIZE); if (sharedmem_fuzzing != 0) status |= FS_OPT_SHDMEM_FUZZ; if (status) status |= (FS_OPT_ENABLED); + if (getenv("AFL_DEBUG")) + fprintf(stderr, "Debug: Sending status %08x\n", status); memcpy(tmp, &status, 4); /* Tell the parent that we're alive. If the parent doesn't want |