1 // This test case makes sure that we get proper break points for binaries
2 // compiled with multiple codegen units. (see #39160)
5 // min-lldb-version: 310
7 // compile-flags:-g -Ccodegen-units=2
9 // === GDB TESTS ===============================================================
13 // gdb-command:print xxx
14 // gdb-check:$1 = 12345
15 // gdb-command:continue
17 // gdb-command:print yyy
18 // gdb-check:$2 = 67890
19 // gdb-command:continue
22 // === LLDB TESTS ==============================================================
26 // lldb-command:print xxx
27 // lldbg-check:[...]$0 = 12345
28 // lldbr-check:(u32) xxx = 12345
29 // lldb-command:continue
31 // lldb-command:print yyy
32 // lldbg-check:[...]$1 = 67890
33 // lldbr-check:(u64) yyy = 67890
34 // lldb-command:continue
37 #![feature(omit_gdb_pretty_printer_section)]
38 #![omit_gdb_pretty_printer_section]
41 pub fn foo(xxx: u32) {
42 super::_zzz(); // #break
47 pub fn bar(yyy: u64) {
48 super::_zzz(); // #break