1 // Copyright 2013-2016 The Rust Project Developers. See the COPYRIGHT
2 // file at the top-level directory of this distribution and at
3 // http://rust-lang.org/COPYRIGHT.
5 // Licensed under the Apache License, Version 2.0 <LICENSE-APACHE or
6 // http://www.apache.org/licenses/LICENSE-2.0> or the MIT license
7 // <LICENSE-MIT or http://opensource.org/licenses/MIT>, at your
8 // option. This file may not be copied, modified, or distributed
9 // except according to those terms.
14 // min-lldb-version: 310
15 // ignore-gdb // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
17 // aux-build:macro-stepping.rs
22 extern crate macro_stepping; // exports new_scope!()
26 // === GDB TESTS ===================================================================================
31 // gdb-check:[...]#loc1[...]
34 // gdb-check:[...]#loc2[...]
37 // gdb-check:[...]#loc3[...]
40 // gdb-check:[...]#loc4[...]
43 // gdb-check:[...]#loc5[...]
46 // gdb-check:[...]#loc6[...]
48 // gdb-command:continue
51 // gdb-check:[...]#inc-loc1[...]
54 // gdb-check:[...]#inc-loc2[...]
57 // gdb-check:[...]#inc-loc3[...]
59 // === LLDB TESTS ==================================================================================
61 // lldb-command:set set stop-line-count-before 0
62 // lldb-command:set set stop-line-count-after 1
63 // Can't set both to zero or lldb will stop printing source at all. So it will output the current
64 // line and the next. We deal with this by having at least 2 lines between the #loc's
68 // lldb-command:frame select
69 // lldb-check:[...]#loc1[...]
71 // lldb-command:frame select
72 // lldb-check:[...]#loc2[...]
74 // lldb-command:frame select
75 // lldb-check:[...]#loc3[...]
77 // lldb-command:frame select
78 // lldb-check:[...]#loc4[...]
80 // lldb-command:frame select
81 // lldb-check:[...]#loc5[...]
83 // lldb-command:continue
85 // lldb-command:frame select
86 // lldb-check:[...]#inc-loc1[...]
88 // lldb-command:frame select
89 // lldb-check:[...]#inc-loc2[...]
91 // lldb-command:frame select
92 // lldb-check:[...]#inc-loc3[...]
117 let x = vec![42]; // #loc3
119 new_scope!(); // #loc4
121 println!("Hello {}", // #loc5
126 included(); // #break
131 include!("macro-stepping.inc");