qemu debug

This commit is contained in:
van Hauser
2020-06-05 09:42:17 +02:00
parent a1beb72cad
commit e01cad2f7d
4 changed files with 12 additions and 9 deletions

View File

@ -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