Skip to content

Commit 96431e4

Browse files
committed
Use explicit LLDB commands instead of print/p aliases.
1 parent 2047e84 commit 96431e4

File tree

89 files changed

+830
-838
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

89 files changed

+830
-838
lines changed

tests/debuginfo/associated-types.rs

+9-9
Original file line numberDiff line numberDiff line change
@@ -42,41 +42,41 @@
4242
// === LLDB TESTS ==================================================================================
4343
// lldb-command:run
4444

45-
// lldb-command:print arg
45+
// lldb-command:v arg
4646
// lldbg-check:[...] { b = -1, b1 = 0 }
4747
// lldbr-check:(associated_types::Struct<i32>) arg = { b = -1, b1 = 0 }
4848
// lldb-command:continue
4949

50-
// lldb-command:print inferred
50+
// lldb-command:v inferred
5151
// lldbg-check:[...] 1
5252
// lldbr-check:(i64) inferred = 1
53-
// lldb-command:print explicitly
53+
// lldb-command:v explicitly
5454
// lldbg-check:[...] 1
5555
// lldbr-check:(i64) explicitly = 1
5656
// lldb-command:continue
5757

58-
// lldb-command:print arg
58+
// lldb-command:v arg
5959
// lldbg-check:[...] 2
6060
// lldbr-check:(i64) arg = 2
6161
// lldb-command:continue
6262

63-
// lldb-command:print arg
63+
// lldb-command:v arg
6464
// lldbg-check:[...] (4, 5)
6565
// lldbr-check:((i32, i64)) arg = { = 4 = 5 }
6666
// lldb-command:continue
6767

68-
// lldb-command:print a
68+
// lldb-command:v a
6969
// lldbg-check:[...] 6
7070
// lldbr-check:(i32) a = 6
71-
// lldb-command:print b
71+
// lldb-command:v b
7272
// lldbg-check:[...] 7
7373
// lldbr-check:(i64) b = 7
7474
// lldb-command:continue
7575

76-
// lldb-command:print a
76+
// lldb-command:v a
7777
// lldbg-check:[...] 8
7878
// lldbr-check:(i64) a = 8
79-
// lldb-command:print b
79+
// lldb-command:v b
8080
// lldbg-check:[...] 9
8181
// lldbr-check:(i32) b = 9
8282
// lldb-command:continue

tests/debuginfo/basic-types.rs

+13-13
Original file line numberDiff line numberDiff line change
@@ -50,48 +50,48 @@
5050
// === LLDB TESTS ==================================================================================
5151

5252
// lldb-command:run
53-
// lldb-command:print b
53+
// lldb-command:v b
5454
// lldbg-check:[...] false
5555
// lldbr-check:(bool) b = false
56-
// lldb-command:print i
56+
// lldb-command:v i
5757
// lldbg-check:[...] -1
5858
// lldbr-check:(isize) i = -1
5959

6060
// NOTE: only rust-enabled lldb supports 32bit chars
6161
// lldbr-command:print c
6262
// lldbr-check:(char) c = 'a'
6363

64-
// lldb-command:print i8
64+
// lldb-command:v i8
6565
// lldbg-check:[...] 'D'
6666
// lldbr-check:(i8) i8 = 68
67-
// lldb-command:print i16
67+
// lldb-command:v i16
6868
// lldbg-check:[...] -16
6969
// lldbr-check:(i16) i16 = -16
70-
// lldb-command:print i32
70+
// lldb-command:v i32
7171
// lldbg-check:[...] -32
7272
// lldbr-check:(i32) i32 = -32
73-
// lldb-command:print i64
73+
// lldb-command:v i64
7474
// lldbg-check:[...] -64
7575
// lldbr-check:(i64) i64 = -64
76-
// lldb-command:print u
76+
// lldb-command:v u
7777
// lldbg-check:[...] 1
7878
// lldbr-check:(usize) u = 1
79-
// lldb-command:print u8
79+
// lldb-command:v u8
8080
// lldbg-check:[...] 'd'
8181
// lldbr-check:(u8) u8 = 100
82-
// lldb-command:print u16
82+
// lldb-command:v u16
8383
// lldbg-check:[...] 16
8484
// lldbr-check:(u16) u16 = 16
85-
// lldb-command:print u32
85+
// lldb-command:v u32
8686
// lldbg-check:[...] 32
8787
// lldbr-check:(u32) u32 = 32
88-
// lldb-command:print u64
88+
// lldb-command:v u64
8989
// lldbg-check:[...] 64
9090
// lldbr-check:(u64) u64 = 64
91-
// lldb-command:print f32
91+
// lldb-command:v f32
9292
// lldbg-check:[...] 2.5
9393
// lldbr-check:(f32) f32 = 2.5
94-
// lldb-command:print f64
94+
// lldb-command:v f64
9595
// lldbg-check:[...] 3.5
9696
// lldbr-check:(f64) f64 = 3.5
9797

tests/debuginfo/borrowed-basic.rs

+13-13
Original file line numberDiff line numberDiff line change
@@ -52,59 +52,59 @@
5252
// === LLDB TESTS ==================================================================================
5353

5454
// lldb-command:run
55-
// lldb-command:print *bool_ref
55+
// lldb-command:v *bool_ref
5656
// lldbg-check:[...] true
5757
// lldbr-check:(bool) *bool_ref = true
5858

59-
// lldb-command:print *int_ref
59+
// lldb-command:v *int_ref
6060
// lldbg-check:[...] -1
6161
// lldbr-check:(isize) *int_ref = -1
6262

6363
// NOTE: only rust-enabled lldb supports 32bit chars
6464
// lldbr-command:print *char_ref
6565
// lldbr-check:(char) *char_ref = 'a'
6666

67-
// lldb-command:print *i8_ref
67+
// lldb-command:v *i8_ref
6868
// lldbg-check:[...] 'D'
6969
// lldbr-check:(i8) *i8_ref = 68
7070

71-
// lldb-command:print *i16_ref
71+
// lldb-command:v *i16_ref
7272
// lldbg-check:[...] -16
7373
// lldbr-check:(i16) *i16_ref = -16
7474

75-
// lldb-command:print *i32_ref
75+
// lldb-command:v *i32_ref
7676
// lldbg-check:[...] -32
7777
// lldbr-check:(i32) *i32_ref = -32
7878

79-
// lldb-command:print *i64_ref
79+
// lldb-command:v *i64_ref
8080
// lldbg-check:[...] -64
8181
// lldbr-check:(i64) *i64_ref = -64
8282

83-
// lldb-command:print *uint_ref
83+
// lldb-command:v *uint_ref
8484
// lldbg-check:[...] 1
8585
// lldbr-check:(usize) *uint_ref = 1
8686

87-
// lldb-command:print *u8_ref
87+
// lldb-command:v *u8_ref
8888
// lldbg-check:[...] 'd'
8989
// lldbr-check:(u8) *u8_ref = 100
9090

91-
// lldb-command:print *u16_ref
91+
// lldb-command:v *u16_ref
9292
// lldbg-check:[...] 16
9393
// lldbr-check:(u16) *u16_ref = 16
9494

95-
// lldb-command:print *u32_ref
95+
// lldb-command:v *u32_ref
9696
// lldbg-check:[...] 32
9797
// lldbr-check:(u32) *u32_ref = 32
9898

99-
// lldb-command:print *u64_ref
99+
// lldb-command:v *u64_ref
100100
// lldbg-check:[...] 64
101101
// lldbr-check:(u64) *u64_ref = 64
102102

103-
// lldb-command:print *f32_ref
103+
// lldb-command:v *f32_ref
104104
// lldbg-check:[...] 2.5
105105
// lldbr-check:(f32) *f32_ref = 2.5
106106

107-
// lldb-command:print *f64_ref
107+
// lldb-command:v *f64_ref
108108
// lldbg-check:[...] 3.5
109109
// lldbr-check:(f64) *f64_ref = 3.5
110110

tests/debuginfo/borrowed-c-style-enum.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,15 +22,15 @@
2222

2323
// lldb-command:run
2424

25-
// lldb-command:print *the_a_ref
25+
// lldb-command:v *the_a_ref
2626
// lldbg-check:[...] TheA
2727
// lldbr-check:(borrowed_c_style_enum::ABC) *the_a_ref = borrowed_c_style_enum::ABC::TheA
2828

29-
// lldb-command:print *the_b_ref
29+
// lldb-command:v *the_b_ref
3030
// lldbg-check:[...] TheB
3131
// lldbr-check:(borrowed_c_style_enum::ABC) *the_b_ref = borrowed_c_style_enum::ABC::TheB
3232

33-
// lldb-command:print *the_c_ref
33+
// lldb-command:v *the_c_ref
3434
// lldbg-check:[...] TheC
3535
// lldbr-check:(borrowed_c_style_enum::ABC) *the_c_ref = borrowed_c_style_enum::ABC::TheC
3636

tests/debuginfo/borrowed-enum.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -22,11 +22,11 @@
2222

2323
// lldb-command:run
2424

25-
// lldb-command:print *the_a_ref
25+
// lldb-command:v *the_a_ref
2626
// lldbr-check:(borrowed_enum::ABC::TheA) *the_a_ref = TheA { TheA: 0, TheB: 8970181431921507452 }
27-
// lldb-command:print *the_b_ref
27+
// lldb-command:v *the_b_ref
2828
// lldbr-check:(borrowed_enum::ABC::TheB) *the_b_ref = { = 0 = 286331153 = 286331153 }
29-
// lldb-command:print *univariant_ref
29+
// lldb-command:v *univariant_ref
3030
// lldbr-check:(borrowed_enum::Univariant) *univariant_ref = { TheOnlyCase = { = 4820353753753434 } }
3131

3232
#![allow(unused_variables)]

tests/debuginfo/borrowed-struct.rs

+7-7
Original file line numberDiff line numberDiff line change
@@ -34,31 +34,31 @@
3434

3535
// lldb-command:run
3636

37-
// lldb-command:print *stack_val_ref
37+
// lldb-command:v *stack_val_ref
3838
// lldbg-check:[...] { x = 10 y = 23.5 }
3939
// lldbr-check:(borrowed_struct::SomeStruct) *stack_val_ref = (x = 10, y = 23.5)
4040

41-
// lldb-command:print *stack_val_interior_ref_1
41+
// lldb-command:v *stack_val_interior_ref_1
4242
// lldbg-check:[...] 10
4343
// lldbr-check:(isize) *stack_val_interior_ref_1 = 10
4444

45-
// lldb-command:print *stack_val_interior_ref_2
45+
// lldb-command:v *stack_val_interior_ref_2
4646
// lldbg-check:[...] 23.5
4747
// lldbr-check:(f64) *stack_val_interior_ref_2 = 23.5
4848

49-
// lldb-command:print *ref_to_unnamed
49+
// lldb-command:v *ref_to_unnamed
5050
// lldbg-check:[...] { x = 11 y = 24.5 }
5151
// lldbr-check:(borrowed_struct::SomeStruct) *ref_to_unnamed = (x = 11, y = 24.5)
5252

53-
// lldb-command:print *unique_val_ref
53+
// lldb-command:v *unique_val_ref
5454
// lldbg-check:[...] { x = 13 y = 26.5 }
5555
// lldbr-check:(borrowed_struct::SomeStruct) *unique_val_ref = (x = 13, y = 26.5)
5656

57-
// lldb-command:print *unique_val_interior_ref_1
57+
// lldb-command:v *unique_val_interior_ref_1
5858
// lldbg-check:[...] 13
5959
// lldbr-check:(isize) *unique_val_interior_ref_1 = 13
6060

61-
// lldb-command:print *unique_val_interior_ref_2
61+
// lldb-command:v *unique_val_interior_ref_2
6262
// lldbg-check:[...] 26.5
6363
// lldbr-check:(f64) *unique_val_interior_ref_2 = 26.5
6464

tests/debuginfo/borrowed-tuple.rs

+3-3
Original file line numberDiff line numberDiff line change
@@ -23,15 +23,15 @@
2323

2424
// lldb-command:run
2525

26-
// lldb-command:print *stack_val_ref
26+
// lldb-command:v *stack_val_ref
2727
// lldbg-check:[...] { 0 = -14 1 = -19 }
2828
// lldbr-check:((i16, f32)) *stack_val_ref = { 0 = -14 1 = -19 }
2929

30-
// lldb-command:print *ref_to_unnamed
30+
// lldb-command:v *ref_to_unnamed
3131
// lldbg-check:[...] { 0 = -15 1 = -20 }
3232
// lldbr-check:((i16, f32)) *ref_to_unnamed = { 0 = -15 1 = -20 }
3333

34-
// lldb-command:print *unique_val_ref
34+
// lldb-command:v *unique_val_ref
3535
// lldbg-check:[...] { 0 = -17 1 = -22 }
3636
// lldbr-check:((i16, f32)) *unique_val_ref = { 0 = -17 1 = -22 }
3737

tests/debuginfo/borrowed-unique-basic.rs

+13-13
Original file line numberDiff line numberDiff line change
@@ -55,59 +55,59 @@
5555
// lldb-command:type format add -f decimal 'unsigned char'
5656
// lldb-command:run
5757

58-
// lldb-command:print *bool_ref
58+
// lldb-command:v *bool_ref
5959
// lldbg-check:[...] true
6060
// lldbr-check:(bool) *bool_ref = true
6161

62-
// lldb-command:print *int_ref
62+
// lldb-command:v *int_ref
6363
// lldbg-check:[...] -1
6464
// lldbr-check:(isize) *int_ref = -1
6565

6666
// NOTE: only rust-enabled lldb supports 32bit chars
6767
// lldbr-command:print *char_ref
6868
// lldbr-check:(char) *char_ref = 97
6969

70-
// lldb-command:print *i8_ref
70+
// lldb-command:v *i8_ref
7171
// lldbg-check:[...] 68
7272
// lldbr-check:(i8) *i8_ref = 68
7373

74-
// lldb-command:print *i16_ref
74+
// lldb-command:v *i16_ref
7575
// lldbg-check:[...] -16
7676
// lldbr-check:(i16) *i16_ref = -16
7777

78-
// lldb-command:print *i32_ref
78+
// lldb-command:v *i32_ref
7979
// lldbg-check:[...] -32
8080
// lldbr-check:(i32) *i32_ref = -32
8181

82-
// lldb-command:print *i64_ref
82+
// lldb-command:v *i64_ref
8383
// lldbg-check:[...] -64
8484
// lldbr-check:(i64) *i64_ref = -64
8585

86-
// lldb-command:print *uint_ref
86+
// lldb-command:v *uint_ref
8787
// lldbg-check:[...] 1
8888
// lldbr-check:(usize) *uint_ref = 1
8989

90-
// lldb-command:print *u8_ref
90+
// lldb-command:v *u8_ref
9191
// lldbg-check:[...] 100
9292
// lldbr-check:(u8) *u8_ref = 100
9393

94-
// lldb-command:print *u16_ref
94+
// lldb-command:v *u16_ref
9595
// lldbg-check:[...] 16
9696
// lldbr-check:(u16) *u16_ref = 16
9797

98-
// lldb-command:print *u32_ref
98+
// lldb-command:v *u32_ref
9999
// lldbg-check:[...] 32
100100
// lldbr-check:(u32) *u32_ref = 32
101101

102-
// lldb-command:print *u64_ref
102+
// lldb-command:v *u64_ref
103103
// lldbg-check:[...] 64
104104
// lldbr-check:(u64) *u64_ref = 64
105105

106-
// lldb-command:print *f32_ref
106+
// lldb-command:v *f32_ref
107107
// lldbg-check:[...] 2.5
108108
// lldbr-check:(f32) *f32_ref = 2.5
109109

110-
// lldb-command:print *f64_ref
110+
// lldb-command:v *f64_ref
111111
// lldbg-check:[...] 3.5
112112
// lldbr-check:(f64) *f64_ref = 3.5
113113

tests/debuginfo/box.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -16,10 +16,10 @@
1616
// === LLDB TESTS ==================================================================================
1717

1818
// lldb-command:run
19-
// lldb-command:print *a
19+
// lldb-command:v *a
2020
// lldbg-check:[...] 1
2121
// lldbr-check:(i32) *a = 1
22-
// lldb-command:print *b
22+
// lldb-command:v *b
2323
// lldbg-check:[...] { 0 = 2 1 = 3.5 }
2424
// lldbr-check:((i32, f64)) *b = { 0 = 2 1 = 3.5 }
2525

tests/debuginfo/boxed-struct.rs

+2-2
Original file line numberDiff line numberDiff line change
@@ -19,11 +19,11 @@
1919

2020
// lldb-command:run
2121

22-
// lldb-command:print *boxed_with_padding
22+
// lldb-command:v *boxed_with_padding
2323
// lldbg-check:[...] { x = 99 y = 999 z = 9999 w = 99999 }
2424
// lldbr-check:(boxed_struct::StructWithSomePadding) *boxed_with_padding = { x = 99 y = 999 z = 9999 w = 99999 }
2525

26-
// lldb-command:print *boxed_with_dtor
26+
// lldb-command:v *boxed_with_dtor
2727
// lldbg-check:[...] { x = 77 y = 777 z = 7777 w = 77777 }
2828
// lldbr-check:(boxed_struct::StructWithDestructor) *boxed_with_dtor = { x = 77 y = 777 z = 7777 w = 77777 }
2929

0 commit comments

Comments
 (0)