Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- (lldb) r
- There is a running process, kill it and restart?: [Y/n] y
- Process 274301 exited with status = 9 (0x00000009) killed
- Process 275040 launched: '/usr/local/google/home/blaikie/dev/carbon/a.out' (x86_64)
- Process 275040 stopped
- * thread #1, name = 'a.out', stop reason = breakpoint 1.1 2.1
- frame #0: 0x0000555555555831 a.out`main at base.carbon:26:3
- 25 fn Run() {
- -> 26 Core.Print(3);
- 27 If(false, 3);
- (lldb) n
- 3
- Process 275040 stopped
- * thread #1, name = 'a.out', stop reason = step over
- frame #0: 0x0000555555555844 a.out`main at base.carbon:27:3
- 26 Core.Print(3);
- -> 27 If(false, 3);
- 28 Core.Print(4);
- (lldb) s
- Process 275040 stopped
- * thread #1, name = 'a.out', stop reason = step in
- frame #0: 0x00005555555557c4 a.out`If at base.carbon:12:3
- 11 fn If(b: bool, limit: i32) {
- -> 12 var counter: i32 = 0;
- 13 if (b) {
- (lldb) n
- Process 275040 stopped
- * thread #1, name = 'a.out', stop reason = step over
- frame #0: 0x00005555555557cc a.out`If at base.carbon:13:6
- 12 var counter: i32 = 0;
- -> 13 if (b) {
- 14 F();
- (lldb)
- Process 275040 stopped
- * thread #1, name = 'a.out', stop reason = step over
- frame #0: 0x0000555555555800 a.out`If at base.carbon:17:12
- 16 } else {
- -> 17 while (counter != limit) {
- 18 Core.Print(2);
- (lldb)
- Process 275040 stopped
- * thread #1, name = 'a.out', stop reason = step over
- frame #0: 0x0000555555555810 a.out`If at base.carbon:18:7
- 17 while (counter != limit) {
- -> 18 Core.Print(2);
- 19 G();
- (lldb)
- 2
- Process 275040 stopped
- * thread #1, name = 'a.out', stop reason = step over
- frame #0: 0x000055555555581f a.out`If at base.carbon:19:7
- 18 Core.Print(2);
- -> 19 G();
- 20 counter = counter + 1;
- (lldb) n
- Process 275040 stopped
- * thread #1, name = 'a.out', stop reason = step over
- frame #0: 0x0000555555555824 a.out`If at base.carbon:20:7
- 19 G();
- -> 20 counter = counter + 1;
- 21 }
- (lldb)
- Process 275040 stopped
- * thread #1, name = 'a.out', stop reason = step over
- frame #0: 0x0000555555555828 a.out`If at base.carbon:17:12
- 16 } else {
- -> 17 while (counter != limit) {
- 18 Core.Print(2);
- (lldb)
- Process 275040 stopped
- * thread #1, name = 'a.out', stop reason = step over
- frame #0: 0x0000555555555810 a.out`If at base.carbon:18:7
- 17 while (counter != limit) {
- -> 18 Core.Print(2);
- 19 G();
- (lldb)
Advertisement
Add Comment
Please, Sign In to add comment