Guest User

Untitled

a guest
Aug 23rd, 2024
67
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.50 KB | None | 0 0
  1. (lldb) r
  2. There is a running process, kill it and restart?: [Y/n] y
  3. Process 274301 exited with status = 9 (0x00000009) killed
  4. Process 275040 launched: '/usr/local/google/home/blaikie/dev/carbon/a.out' (x86_64)
  5. Process 275040 stopped
  6. * thread #1, name = 'a.out', stop reason = breakpoint 1.1 2.1
  7. frame #0: 0x0000555555555831 a.out`main at base.carbon:26:3
  8. 25 fn Run() {
  9. -> 26 Core.Print(3);
  10. 27 If(false, 3);
  11. (lldb) n
  12. 3
  13. Process 275040 stopped
  14. * thread #1, name = 'a.out', stop reason = step over
  15. frame #0: 0x0000555555555844 a.out`main at base.carbon:27:3
  16. 26 Core.Print(3);
  17. -> 27 If(false, 3);
  18. 28 Core.Print(4);
  19. (lldb) s
  20. Process 275040 stopped
  21. * thread #1, name = 'a.out', stop reason = step in
  22. frame #0: 0x00005555555557c4 a.out`If at base.carbon:12:3
  23. 11 fn If(b: bool, limit: i32) {
  24. -> 12 var counter: i32 = 0;
  25. 13 if (b) {
  26. (lldb) n
  27. Process 275040 stopped
  28. * thread #1, name = 'a.out', stop reason = step over
  29. frame #0: 0x00005555555557cc a.out`If at base.carbon:13:6
  30. 12 var counter: i32 = 0;
  31. -> 13 if (b) {
  32. 14 F();
  33. (lldb)
  34. Process 275040 stopped
  35. * thread #1, name = 'a.out', stop reason = step over
  36. frame #0: 0x0000555555555800 a.out`If at base.carbon:17:12
  37. 16 } else {
  38. -> 17 while (counter != limit) {
  39. 18 Core.Print(2);
  40. (lldb)
  41. Process 275040 stopped
  42. * thread #1, name = 'a.out', stop reason = step over
  43. frame #0: 0x0000555555555810 a.out`If at base.carbon:18:7
  44. 17 while (counter != limit) {
  45. -> 18 Core.Print(2);
  46. 19 G();
  47. (lldb)
  48. 2
  49. Process 275040 stopped
  50. * thread #1, name = 'a.out', stop reason = step over
  51. frame #0: 0x000055555555581f a.out`If at base.carbon:19:7
  52. 18 Core.Print(2);
  53. -> 19 G();
  54. 20 counter = counter + 1;
  55. (lldb) n
  56. Process 275040 stopped
  57. * thread #1, name = 'a.out', stop reason = step over
  58. frame #0: 0x0000555555555824 a.out`If at base.carbon:20:7
  59. 19 G();
  60. -> 20 counter = counter + 1;
  61. 21 }
  62. (lldb)
  63. Process 275040 stopped
  64. * thread #1, name = 'a.out', stop reason = step over
  65. frame #0: 0x0000555555555828 a.out`If at base.carbon:17:12
  66. 16 } else {
  67. -> 17 while (counter != limit) {
  68. 18 Core.Print(2);
  69. (lldb)
  70. Process 275040 stopped
  71. * thread #1, name = 'a.out', stop reason = step over
  72. frame #0: 0x0000555555555810 a.out`If at base.carbon:18:7
  73. 17 while (counter != limit) {
  74. -> 18 Core.Print(2);
  75. 19 G();
  76. (lldb)
Advertisement
Add Comment
Please, Sign In to add comment