about summary refs log tree commit diff
path: root/utils/aflpp_driver/aflpp_driver.c
diff options
context:
space:
mode:
authorvanhauser-thc <vh@thc.org>2021-03-16 14:38:13 +0100
committervanhauser-thc <vh@thc.org>2021-03-16 14:38:13 +0100
commit862cb3217f5983e5cfff6568f6b31fcf1e960802 (patch)
tree846353204e04f44ea5b74ac5f6a11eb4fa9366a1 /utils/aflpp_driver/aflpp_driver.c
parent8e11546536979c8d462d927a61f28df5e909b2a0 (diff)
downloadafl++-862cb3217f5983e5cfff6568f6b31fcf1e960802.tar.gz
fix cmplog rtn
Diffstat (limited to 'utils/aflpp_driver/aflpp_driver.c')
-rw-r--r--utils/aflpp_driver/aflpp_driver.c10
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();