compiler.lldb 1.4 KB

1234567891011121314151617181920212223242526272829303132333435363738394041
  1. # create a breakpoint on `debugutils.enteringDebugSection` named enteringDebugSection
  2. breakpoint set -n 'enteringDebugSection' -N enteringDebugSection
  3. # run these commands once breakpoint enteringDebugSection is hit
  4. breakpoint command add enteringDebugSection
  5. # enable all breakpoints
  6. breakpoint enable
  7. # enable all watchpoints
  8. # watchpoint enable # FIXME: not currently working for unknown reason
  9. # continue execution
  10. continue
  11. DONE
  12. # create a breakpoint on `debugutils.exitingDebugSection` named exitingDebugSection
  13. breakpoint set -n 'exitingDebugSection' -N exitingDebugSection
  14. # run these commands once breakpoint exitingDebugSection is hit
  15. breakpoint command add exitingDebugSection
  16. # disable all breakpoints
  17. breakpoint disable
  18. # disable all watchpoints
  19. # watchpoint disable # FIXME: not currently working for unknown reason
  20. breakpoint enable enteringDebugSection
  21. # continue execution
  22. continue
  23. DONE
  24. # some commands can't be set until the process is running, so set an entry breakpoint
  25. breakpoint set -n NimMain -N NimMain
  26. # run these commands once breakpoint NimMain is hit
  27. breakpoint command add NimMain
  28. # disable all breakpoints
  29. breakpoint disable
  30. # disable all watchpoints
  31. # watchpoint disable # FIXME: not currently working for unknown reason
  32. # enable the enteringDebugSection breakpoint though
  33. breakpoint enable enteringDebugSection
  34. # no longer need this breakpoint
  35. breakpoint delete NimMain
  36. # continue execution
  37. continue
  38. DONE