11// ignore-windows failing on win32 bot
22// ignore-freebsd: gdb package too new
3- // ignore-test // Test temporarily ignored due to debuginfo tests being disabled, see PR 47155
43// ignore-android: FIXME(#10381)
54// compile-flags:-g
65// min-gdb-version 7.7
2322// gdb-check:$4 = "IAMA string!"
2423
2524// gdb-command: print some
26- // gdb-check:$5 = Some = {8}
25+ // gdbg-check:$5 = Some = {8}
26+ // gdbr-check:$5 = core::option::Option<i16>::Some(8)
2727
2828// gdb-command: print none
2929// gdbg-check:$6 = None
30- // gdbr-check:$6 = core::option::Option::None
30+ // gdbr-check:$6 = core::option::Option<i64> ::None
3131
3232// gdb-command: print os_string
33- // gdb-check:$7 = "IAMA OS string 😃 "
33+ // gdb-check:$7 = "IAMA OS string"
3434
3535// gdb-command: print some_string
36- // gdb-check:$8 = Some = {"IAMA optional string!"}
36+ // gdbg-check:$8 = {RUST$ENCODED$ENUM$0$None = Some = {"IAMA optional string!"}}
37+ // gdbr-check:$8 = core::option::Option<alloc::string::String>::Some("IAMA optional string!")
3738
38- // gdb-command: set print length 5
39+ // gdb-command: set print elements 5
3940// gdb-command: print some_string
40- // gdb-check:$8 = Some = {"IAMA "...}
41+ // gdbg-check:$9 = {RUST$ENCODED$ENUM$0$None = Some = {"IAMA "...}}
42+ // gdbr-check:$9 = core::option::Option<alloc::string::String>::Some("IAMA "...)
4143
44+ // gdb-command: print empty_str
45+ // gdb-check:$10 = ""
4246
4347// === LLDB TESTS ==================================================================================
4448
4549// lldb-command: run
4650
47- // lldb-command: print slice
48- // lldb-check:[...]$0 = &[0, 1, 2, 3]
51+ // lldb-command: fr v slice
52+ // lldb-check:[...]slice = &[0, 1, 2, 3]
4953
50- // lldb-command: print vec
51- // lldb-check:[...]$1 = vec![4, 5, 6, 7]
54+ // lldb-command: fr v vec
55+ // lldb-check:[...]vec = vec![4, 5, 6, 7]
5256
53- // lldb-command: print str_slice
54- // lldb-check:[...]$2 = "IAMA string slice!"
57+ // lldb-command: fr v str_slice
58+ // lldb-check:[...]str_slice = "IAMA string slice!"
5559
56- // lldb-command: print string
57- // lldb-check:[...]$3 = "IAMA string!"
60+ // lldb-command: fr v string
61+ // lldb-check:[...]string = "IAMA string!"
5862
59- // lldb-command: print some
60- // lldb-check:[...]$4 = Some(8)
63+ // FIXME #58492
64+ // lldb-command: fr v some
65+ // lldb-check:[...]some = Option<i16> { }
6166
62- // lldb-command: print none
63- // lldb-check:[...]$5 = None
67+ // FIXME #58492
68+ // lldb-command: fr v none
69+ // lldb-check:[...]none = Option<i64> { }
6470
71+ // lldb-command: fr v empty_str
72+ // lldb-check:[...]empty_str = ""
6573
6674#![ allow( unused_variables) ]
6775use std:: ffi:: OsString ;
@@ -82,14 +90,16 @@ fn main() {
8290 let string = "IAMA string!" . to_string ( ) ;
8391
8492 // OsString
85- let os_string = OsString :: from ( "IAMA OS string \u{1F603} " ) ;
93+ let os_string = OsString :: from ( "IAMA OS string" ) ;
8694
8795 // Option
8896 let some = Some ( 8i16 ) ;
8997 let none: Option < i64 > = None ;
9098
9199 let some_string = Some ( "IAMA optional string!" . to_owned ( ) ) ;
92100
101+ let empty_str = "" ;
102+
93103 zzz ( ) ; // #break
94104}
95105
0 commit comments