|
1 | 1 | // ignore-tidy-linelength
|
2 | 2 | //@ ignore-freebsd: gdb package too new
|
3 |
| -//@ only-cdb // "Temporarily" ignored on GDB/LLDB due to debuginfo tests being disabled, see PR 47155 |
| 3 | +//@ ignore-windows-gnu: #128981 |
4 | 4 | //@ ignore-android: FIXME(#10381)
|
5 | 5 | //@ compile-flags:-g
|
6 | 6 | //@ min-gdb-version: 7.7
|
7 |
| -//@ min-lldb-version: 310 |
| 7 | +//@ min-lldb-version: 1800 |
8 | 8 | //@ min-cdb-version: 10.0.18317.1001
|
9 | 9 |
|
10 | 10 | // === GDB TESTS ===================================================================================
|
11 | 11 |
|
12 | 12 | // gdb-command: run
|
13 | 13 |
|
14 | 14 | // gdb-command: print slice
|
15 |
| -// gdb-check:$1 = &[i32](len: 4) = {0, 1, 2, 3} |
| 15 | +// gdb-check:$1 = &[i32](size=4) = {0, 1, 2, 3} |
16 | 16 |
|
17 | 17 | // gdb-command: print vec
|
18 |
| -// gdb-check:$2 = Vec<u64, alloc::alloc::Global>(len: 4, cap: [...]) = {4, 5, 6, 7} |
| 18 | +// gdb-check:$2 = Vec(size=4) = {4, 5, 6, 7} |
19 | 19 |
|
20 | 20 | // gdb-command: print str_slice
|
21 | 21 | // gdb-check:$3 = "IAMA string slice!"
|
|
24 | 24 | // gdb-check:$4 = "IAMA string!"
|
25 | 25 |
|
26 | 26 | // gdb-command: print some
|
27 |
| -// gdb-check:$5 = Some = {8} |
| 27 | +// gdb-check:$5 = core::option::Option<i16>::Some(8) |
28 | 28 |
|
29 | 29 | // gdb-command: print none
|
30 | 30 | // gdbg-check:$6 = None
|
31 |
| -// gdbr-check:$6 = core::option::Option::None |
| 31 | +// gdbr-check:$6 = core::option::Option<i64>::None |
32 | 32 |
|
33 | 33 | // gdb-command: print os_string
|
34 | 34 | // gdb-check:$7 = "IAMA OS string 😃"
|
35 | 35 |
|
36 | 36 | // gdb-command: print some_string
|
37 |
| -// gdb-check:$8 = Some = {"IAMA optional string!"} |
| 37 | +// gdb-check:$8 = core::option::Option<alloc::string::String>::Some("IAMA optional string!") |
38 | 38 |
|
39 |
| -// gdb-command: set print length 5 |
| 39 | +// gdb-command: set print elements 5 |
40 | 40 | // gdb-command: print some_string
|
41 |
| -// gdb-check:$8 = Some = {"IAMA "...} |
| 41 | +// gdb-check:$9 = core::option::Option<alloc::string::String>::Some("IAMA "...) |
42 | 42 |
|
43 | 43 | // === LLDB TESTS ==================================================================================
|
44 | 44 |
|
45 | 45 | // lldb-command:run
|
46 | 46 |
|
47 | 47 | // lldb-command:v slice
|
48 |
| -// lldb-check:[...] slice = &[0, 1, 2, 3] |
| 48 | +// lldb-check:[...] slice = size=4 { [0] = 0 [1] = 1 [2] = 2 [3] = 3 } |
49 | 49 |
|
50 | 50 | // lldb-command:v vec
|
51 |
| -// lldb-check:[...] vec = vec![4, 5, 6, 7] |
| 51 | +// lldb-check:[...] vec = size=4 { [0] = 4 [1] = 5 [2] = 6 [3] = 7 } |
52 | 52 |
|
53 | 53 | // lldb-command:v str_slice
|
54 |
| -// lldb-check:[...] str_slice = "IAMA string slice!" |
| 54 | +// lldb-check:[...] str_slice = "IAMA string slice!" { [0] = 'I' [1] = 'A' [2] = 'M' [3] = 'A' [4] = ' ' [5] = 's' [6] = 't' [7] = 'r' [8] = 'i' [9] = 'n' [10] = 'g' [11] = ' ' [12] = 's' [13] = 'l' [14] = 'i' [15] = 'c' [16] = 'e' [17] = '!' } |
55 | 55 |
|
56 | 56 | // lldb-command:v string
|
57 |
| -// lldb-check:[...] string = "IAMA string!" |
| 57 | +// lldb-check:[...] string = "IAMA string!" { vec = size=12 { [0] = 'I' [1] = 'A' [2] = 'M' [3] = 'A' [4] = ' ' [5] = 's' [6] = 't' [7] = 'r' [8] = 'i' [9] = 'n' [10] = 'g' [11] = '!' } } |
58 | 58 |
|
59 | 59 | // lldb-command:v some
|
60 | 60 | // lldb-check:[...] some = Some(8)
|
|
63 | 63 | // lldb-check:[...] none = None
|
64 | 64 |
|
65 | 65 | // lldb-command:v os_string
|
66 |
| -// lldb-check:[...] os_string = "IAMA OS string 😃"[...] |
| 66 | +// lldb-check:[...] os_string = "IAMA OS string 😃" { inner = { inner = size=19 { [0] = 'I' [1] = 'A' [2] = 'M' [3] = 'A' [4] = ' ' [5] = 'O' [6] = 'S' [7] = ' ' [8] = 's' [9] = 't' [10] = 'r' [11] = 'i' [12] = 'n' [13] = 'g' [14] = ' ' [15] = '\xf0' [16] = '\x9f' [17] = '\x98' [18] = '\x83' } } } |
67 | 67 |
|
68 | 68 | // === CDB TESTS ==================================================================================
|
69 | 69 |
|
|
0 commit comments