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.
13 // min-lldb-version: 310
15 // aux-build:macro-stepping.rs
20 extern crate macro_stepping; // exports new_scope!()
24 // === GDB TESTS ===================================================================================
29 // gdb-check:[...]#loc1[...]
32 // gdb-check:[...]#loc2[...]
35 // gdb-check:[...]#loc3[...]
38 // gdb-check:[...]#loc4[...]
41 // gdb-check:[...]#loc5[...]
44 // gdb-check:[...]#loc6[...]
46 // === LLDB TESTS ==================================================================================
48 // lldb-command:set set stop-line-count-before 0
49 // lldb-command:set set stop-line-count-after 1
50 // Can't set both to zero or lldb will stop printing source at all. So it will output the current
51 // line and the next. We deal with this by having at least 2 lines between the #loc's
55 // lldb-command:frame select
56 // lldb-check:[...]#loc1[...]
58 // lldb-command:frame select
59 // lldb-check:[...]#loc2[...]
61 // lldb-command:frame select
62 // lldb-check:[...]#loc3[...]
64 // lldb-command:frame select
65 // lldb-check:[...]#loc4[...]
67 // lldb-command:frame select
68 // lldb-check:[...]#loc5[...]
93 let x = vec![42]; // #loc3
95 new_scope!(); // #loc4
97 println!("Hello {}", // #loc5