diff options
author | hexcoder <hexcoder-@users.noreply.github.com> | 2021-03-17 08:00:32 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-03-17 08:00:32 +0100 |
commit | d17abce59b846d2008eac3dd1a73939e91f4b653 (patch) | |
tree | e2715f85ccae8a64a0bce669a7a767dea363f673 /utils/aflpp_driver | |
parent | 62f067ec71aff384a197511b33142002ca284c66 (diff) | |
parent | b715050de9846ab4b1f30a811af83b7a4b9e09a3 (diff) | |
download | afl++-d17abce59b846d2008eac3dd1a73939e91f4b653.tar.gz |
Merge branch 'dev' into atat-plusplus
Diffstat (limited to 'utils/aflpp_driver')
-rw-r--r-- | utils/aflpp_driver/aflpp_driver.c | 10 |
1 files changed, 10 insertions, 0 deletions
diff --git a/utils/aflpp_driver/aflpp_driver.c b/utils/aflpp_driver/aflpp_driver.c index 9c97607c..f0f3a47d 100644 --- a/utils/aflpp_driver/aflpp_driver.c +++ b/utils/aflpp_driver/aflpp_driver.c @@ -208,6 +208,16 @@ int main(int argc, char **argv) { "======================================================\n", argv[0], argv[0]); + if (getenv("AFL_GDB")) { + + char cmd[64]; + snprintf(cmd, sizeof(cmd), "cat /proc/%d/maps", getpid()); + system(cmd); + fprintf(stderr, "DEBUG: aflpp_driver pid is %d\n", getpid()); + sleep(1); + + } + output_file = stderr; maybe_duplicate_stderr(); maybe_close_fd_mask(); |