Skip to content

Commit b11c756

Browse files
committed
directly point to tuple summary
1 parent eca09de commit b11c756

17 files changed

Lines changed: 49 additions & 48 deletions

src/etc/lldb_commands

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -77,6 +77,7 @@ type synthetic add -l lldb_lookup.synthetic_lookup -x "^enum2\$<.+>::.*$" --cate
7777

7878
# Tuple
7979
type synthetic add -l lldb_lookup.TupleSyntheticProvider -x "^\(.*\)$" --category Rust
80+
type summary add -F lldb_lookup.TupleSummaryProvider -x "^\(.*\)$" --category Rust
8081

8182
## MSVC
8283
type synthetic add -l lldb_lookup.MSVCTupleSyntheticProvider -x "^tuple\$<.+>$" --category Rust

tests/debuginfo/associated-types.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -53,7 +53,7 @@
5353
//@ lldb-command:continue
5454

5555
//@ lldb-command:v arg
56-
//@ lldb-check:[...] { 0 = 4 1 = 5 }
56+
//@ lldb-check:[...] (4, 5)
5757
//@ lldb-command:continue
5858

5959
//@ lldb-command:v a

tests/debuginfo/borrowed-tuple.rs

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -21,13 +21,13 @@
2121
//@ lldb-command:run
2222

2323
//@ lldb-command:v *stack_val_ref
24-
//@ lldb-check:[...] { 0 = -14 1 = -19 }
24+
//@ lldb-check:[...] (-14, -19)
2525

2626
//@ lldb-command:v *ref_to_unnamed
27-
//@ lldb-check:[...] { 0 = -15 1 = -20 }
27+
//@ lldb-check:[...] (-15, -20)
2828

2929
//@ lldb-command:v *unique_val_ref
30-
//@ lldb-check:[...] { 0 = -17 1 = -22 }
30+
//@ lldb-check:[...] (-17, -22)
3131

3232

3333
#![allow(unused_variables)]

tests/debuginfo/box.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
//@ lldb-command:v *a
1919
//@ lldb-check:[...] 1
2020
//@ lldb-command:v *b
21-
//@ lldb-check:[...] { 0 = 2 1 = 3.5 }
21+
//@ lldb-check:[...] (2, 3.5)
2222

2323
#![allow(unused_variables)]
2424

tests/debuginfo/by-value-self-argument-in-trait-impl.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -32,7 +32,7 @@
3232
//@ lldb-command:continue
3333

3434
//@ lldb-command:v self
35-
//@ lldb-check:[...] { 0 = 4444.5 1 = 5555 2 = 6666 3 = 7777.5 }
35+
//@ lldb-check:[...] (4444.5, 5555, 6666, 7777.5)
3636
//@ lldb-command:continue
3737

3838
trait Trait {

tests/debuginfo/c-style-enum-in-composite.rs

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -32,13 +32,13 @@
3232
//@ lldb-command:run
3333

3434
//@ lldb-command:v tuple_interior_padding
35-
//@ lldb-check:[...] { 0 = 0 1 = OneHundred }
35+
//@ lldb-check:[...] (0, OneHundred)
3636

3737
//@ lldb-command:v tuple_padding_at_end
38-
//@ lldb-check:[...] ((1, OneThousand), 2) { 0 = (1, OneThousand) { 0 = 1 1 = OneThousand } 1 = 2 }
38+
//@ lldb-check:[...] ((1, OneThousand), 2)
3939

4040
//@ lldb-command:v tuple_different_enums
41-
//@ lldb-check:[...] { 0 = OneThousand 1 = MountainView 2 = OneMillion 3 = Vienna }
41+
//@ lldb-check:[...] (OneThousand, MountainView, OneMillion, Vienna)
4242

4343
//@ lldb-command:v padded_struct
4444
//@ lldb-check:[...] { a = 3 b = OneMillion c = 4 d = Toronto e = 5 }
@@ -50,7 +50,7 @@
5050
//@ lldb-check:[...] { a = OneMillion b = MountainView c = OneThousand d = Toronto }
5151

5252
//@ lldb-command:v struct_with_drop
53-
//@ lldb-check:[...] { 0 = { a = OneHundred b = Vienna } 1 = 9 }
53+
//@ lldb-check:[...] ({ a = OneHundred b = Vienna }, 9)
5454

5555
#![allow(unused_variables)]
5656

tests/debuginfo/cross-crate-spans.rs

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -35,15 +35,15 @@ extern crate cross_crate_spans;
3535
//@ lldb-command:run
3636

3737
//@ lldb-command:v result
38-
//@ lldb-check:[...] { 0 = 17 1 = 17 }
38+
//@ lldb-check:[...] (17, 17)
3939
//@ lldb-command:v a_variable
4040
//@ lldb-check:[...] 123456789
4141
//@ lldb-command:v another_variable
4242
//@ lldb-check:[...] 123456789.5
4343
//@ lldb-command:continue
4444

4545
//@ lldb-command:v result
46-
//@ lldb-check:[...] { 0 = 1212 1 = 1212 }
46+
//@ lldb-check:[...] (1212, 1212)
4747
//@ lldb-command:v a_variable
4848
//@ lldb-check:[...] 123456789
4949
//@ lldb-command:v another_variable

tests/debuginfo/destructured-fn-argument.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -172,7 +172,7 @@
172172
//@ lldb-command:v a
173173
//@ lldb-check:[...] 5
174174
//@ lldb-command:v b
175-
//@ lldb-check:[...] { 0 = 6 1 = 7 }
175+
//@ lldb-check:[...] (6, 7)
176176
//@ lldb-command:continue
177177

178178
//@ lldb-command:v h
@@ -234,29 +234,29 @@
234234
//@ lldb-command:continue
235235

236236
//@ lldb-command:v aa
237-
//@ lldb-check:[...] { 0 = 34 1 = 35 }
237+
//@ lldb-check:[...] (34, 35)
238238
//@ lldb-command:continue
239239

240240
//@ lldb-command:v bb
241-
//@ lldb-check:[...] { 0 = 36 1 = 37 }
241+
//@ lldb-check:[...] (36, 37)
242242
//@ lldb-command:continue
243243

244244
//@ lldb-command:v cc
245245
//@ lldb-check:[...] 38
246246
//@ lldb-command:continue
247247

248248
//@ lldb-command:v dd
249-
//@ lldb-check:[...] { 0 = 40 1 = 41 2 = 42 }
249+
//@ lldb-check:[...] (40, 41, 42)
250250
//@ lldb-command:continue
251251

252252
//@ lldb-command:v *ee
253-
//@ lldb-check:[...] { 0 = 43 1 = 44 2 = 45 }
253+
//@ lldb-check:[...] (43, 44, 45)
254254
//@ lldb-command:continue
255255

256256
//@ lldb-command:v *ff
257257
//@ lldb-check:[...] 46
258258
//@ lldb-command:v gg
259-
//@ lldb-check:[...] { 0 = 47 1 = 48 }
259+
//@ lldb-check:[...] (47, 48)
260260
//@ lldb-command:continue
261261

262262
//@ lldb-command:v *hh

tests/debuginfo/destructured-for-loop-variable.rs

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -138,7 +138,7 @@
138138
//@ lldb-command:continue
139139

140140
//@ lldb-command:v simple_tuple_ident
141-
//@ lldb-check:[...] { 0 = 34903493 1 = 232323 }
141+
//@ lldb-check:[...] (34903493, 232323)
142142
//@ lldb-command:continue
143143

144144
#![allow(unused_variables)]

tests/debuginfo/destructured-local.rs

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -136,7 +136,7 @@
136136
//@ lldb-command:v f
137137
//@ lldb-check:[...] 5
138138
//@ lldb-command:v g
139-
//@ lldb-check:[...] { 0 = 6 1 = 7 }
139+
//@ lldb-check:[...] (6, 7)
140140

141141
//@ lldb-command:v h
142142
//@ lldb-check:[...] 8
@@ -190,25 +190,25 @@
190190
//@ lldb-check:[...] 33
191191

192192
//@ lldb-command:v aa
193-
//@ lldb-check:[...] { 0 = 34 1 = 35 }
193+
//@ lldb-check:[...] (34, 35)
194194

195195
//@ lldb-command:v bb
196-
//@ lldb-check:[...] { 0 = 36 1 = 37 }
196+
//@ lldb-check:[...] (36, 37)
197197

198198
//@ lldb-command:v cc
199199
//@ lldb-check:[...] 38
200200

201201
//@ lldb-command:v dd
202-
//@ lldb-check:[...] { 0 = 40 1 = 41 2 = 42 }
202+
//@ lldb-check:[...] (40, 41, 42
203203

204204
//@ lldb-command:v *ee
205-
//@ lldb-check:[...] { 0 = 43 1 = 44 2 = 45 }
205+
//@ lldb-check:[...] (43, 44, 45)
206206

207207
//@ lldb-command:v *ff
208208
//@ lldb-check:[...] 46
209209

210210
//@ lldb-command:v gg
211-
//@ lldb-check:[...] { 0 = 47 1 = 48 }
211+
//@ lldb-check:[...] (47, 48)
212212

213213
//@ lldb-command:v *hh
214214
//@ lldb-check:[...] 50

0 commit comments

Comments
 (0)