1 // Copyright 2017 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.
12 // This test case makes sure that we get proper break points for binaries
13 // compiled with multiple codegen units. (see #39160)
16 // min-lldb-version: 310
18 // compile-flags:-g -Ccodegen-units=2
20 // === GDB TESTS ===============================================================
24 // gdb-command:print xxx
25 // gdb-check:$1 = 12345
26 // gdb-command:continue
28 // gdb-command:print yyy
29 // gdb-check:$2 = 67890
30 // gdb-command:continue
33 // === LLDB TESTS ==============================================================
37 // lldb-command:print xxx
38 // lldb-check:[...]$0 = 12345
39 // lldb-command:continue
41 // lldb-command:print yyy
42 // lldb-check:[...]$1 = 67890
43 // lldb-command:continue
46 #![feature(omit_gdb_pretty_printer_section)]
47 #![omit_gdb_pretty_printer_section]
50 pub fn foo(xxx: u32) {
51 super::_zzz(); // #break
56 pub fn bar(yyy: u64) {
57 super::_zzz(); // #break