4 // min-lldb-version: 310
5 // ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
7 // aux-build:macro-stepping.rs
12 extern crate macro_stepping; // exports new_scope!()
16 // === GDB TESTS ===================================================================================
21 // gdb-check:[...]#loc1[...]
24 // gdb-check:[...]#loc2[...]
27 // gdb-check:[...]#loc3[...]
30 // gdb-check:[...]#loc4[...]
33 // gdb-check:[...]#loc5[...]
36 // gdb-check:[...]#loc6[...]
38 // gdb-command:continue
41 // gdb-check:[...]#inc-loc1[...]
44 // gdb-check:[...]#inc-loc2[...]
47 // gdb-check:[...]#inc-loc3[...]
49 // === LLDB TESTS ==================================================================================
51 // lldb-command:set set stop-line-count-before 0
52 // lldb-command:set set stop-line-count-after 1
53 // Can't set both to zero or lldb will stop printing source at all. So it will output the current
54 // line and the next. We deal with this by having at least 2 lines between the #loc's
58 // lldb-command:frame select
59 // lldb-check:[...]#loc1[...]
61 // lldb-command:frame select
62 // lldb-check:[...]#loc2[...]
64 // lldb-command:frame select
65 // lldb-check:[...]#loc3[...]
67 // lldb-command:frame select
68 // lldb-check:[...]#loc4[...]
70 // lldb-command:frame select
71 // lldb-check:[...]#loc5[...]
73 // lldb-command:continue
75 // lldb-command:frame select
76 // lldb-check:[...]#inc-loc1[...]
78 // lldb-command:frame select
79 // lldb-check:[...]#inc-loc2[...]
81 // lldb-command:frame select
82 // lldb-check:[...]#inc-loc3[...]
107 let x = vec![42]; // #loc3
109 new_scope!(); // #loc4
111 println!("Hello {}", // #loc5
116 included(); // #break
121 include!("macro-stepping.inc");