pal.gdb 582 B

123456789101112131415161718192021222324252627282930313233343536
  1. handle SIGCONT pass noprint nostop
  2. handle SIGKILL pass print stop
  3. set disable-randomization off
  4. set detach-on-fork off
  5. set schedule-multiple on
  6. set follow-exec-mode same
  7. set follow-fork-mode child
  8. catch vfork
  9. commands
  10. echo [A child process created]\n
  11. set scheduler-locking on
  12. continue
  13. end
  14. catch fork
  15. commands
  16. echo [A child process created]\n
  17. set scheduler-locking on
  18. continue
  19. end
  20. catch exec
  21. commands
  22. echo [Child process begin running]\n
  23. set scheduler-locking off
  24. continue
  25. end
  26. define hook-stop
  27. if $_thread == 0
  28. echo [Child process exited]\n
  29. info inferior
  30. end
  31. end