|
5 | 5 | // compile-flags:-g
|
6 | 6 | // min-gdb-version: 7.7
|
7 | 7 | // min-lldb-version: 310
|
| 8 | +// min-cdb-version: 10.0.18317.1001 |
8 | 9 |
|
9 | 10 | // === GDB TESTS ===================================================================================
|
10 | 11 |
|
|
71 | 72 | // cdb-command: g
|
72 | 73 |
|
73 | 74 | // cdb-command: dx slice,d
|
74 |
| -// cdb-check:slice,d [...] |
75 |
| -// NOTE: While slices have a .natvis entry that works in VS & VS Code, it fails in CDB 10.0.18362.1 |
| 75 | +// cdb-check:slice,d : { len=4 } [Type: slice<i32>] |
| 76 | +// cdb-check: [len] : 4 [Type: [...]] |
| 77 | +// cdb-check: [0] : 0 [Type: int] |
| 78 | +// cdb-check: [1] : 1 [Type: int] |
| 79 | +// cdb-check: [2] : 2 [Type: int] |
| 80 | +// cdb-check: [3] : 3 [Type: int] |
76 | 81 |
|
77 | 82 | // cdb-command: dx vec,d
|
78 | 83 | // cdb-check:vec,d [...] : { len=4 } [Type: [...]::Vec<u64, alloc::alloc::Global>]
|
|
84 | 89 | // cdb-check: [3] : 7 [Type: unsigned __int64]
|
85 | 90 |
|
86 | 91 | // cdb-command: dx str_slice
|
87 |
| -// cdb-check:str_slice [...] |
88 |
| -// NOTE: While string slices have a .natvis entry that works in VS & VS Code, it fails in CDB |
| 92 | +// cdb-check:str_slice : "IAMA string slice!" [Type: str] |
89 | 93 |
|
90 | 94 | // cdb-command: dx string
|
91 | 95 | // cdb-check:string : "IAMA string!" [Type: [...]::String]
|
|
113 | 117 |
|
114 | 118 | // cdb-command: dx some
|
115 | 119 | // cdb-check:some : Some [Type: enum$<core::option::Option<i16>>]
|
| 120 | +// cdb-check: [...] variant$ : Some (0x1) [Type: core::option::Option] |
| 121 | +// cdb-check: [...] __0 : 8 [Type: short] |
| 122 | + |
116 | 123 | // cdb-command: dx none
|
117 | 124 | // cdb-check:none : None [Type: enum$<core::option::Option<i64>>]
|
| 125 | +// cdb-check: [...] variant$ : None (0x0) [Type: core::option::Option] |
| 126 | + |
118 | 127 | // cdb-command: dx some_string
|
| 128 | +// NOTE: cdb fails to interpret debug info of Option enums on i686. |
119 | 129 | // cdb-check:some_string [Type: enum$<core::option::Option<alloc::string::String>, 1, [...], Some>]
|
120 | 130 |
|
121 | 131 | #![allow(unused_variables)]
|
|
0 commit comments