Skip to content

Commit 4314661

Browse files
committed
Delete gdbg commands
1 parent f04f6ca commit 4314661

Some content is hidden

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

57 files changed

+0
-398
lines changed

tests/debuginfo/associated-types.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@
88
// gdb-command:run
99

1010
// gdb-command:print arg
11-
// gdbg-check:$1 = {b = -1, b1 = 0}
1211
// gdbr-check:$1 = associated_types::Struct<i32> {b: -1, b1: 0}
1312
// gdb-command:continue
1413

@@ -23,7 +22,6 @@
2322
// gdb-command:continue
2423

2524
// gdb-command:print arg
26-
// gdbg-check:$5 = {__0 = 4, __1 = 5}
2725
// gdbr-check:$5 = (4, 5)
2826
// gdb-command:continue
2927

tests/debuginfo/basic-types-globals-metadata.rs

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -2,49 +2,34 @@
22

33
//@ compile-flags:-g
44
// gdb-command:run
5-
// gdbg-command:whatis 'basic_types_globals_metadata::B'
65
// gdbr-command:whatis basic_types_globals_metadata::B
76
// gdb-check:type = bool
8-
// gdbg-command:whatis 'basic_types_globals_metadata::I'
97
// gdbr-command:whatis basic_types_globals_metadata::I
108
// gdb-check:type = isize
11-
// gdbg-command:whatis 'basic_types_globals_metadata::C'
129
// gdbr-command:whatis basic_types_globals_metadata::C
1310
// gdb-check:type = char
14-
// gdbg-command:whatis 'basic_types_globals_metadata::I8'
1511
// gdbr-command:whatis basic_types_globals_metadata::I8
1612
// gdb-check:type = i8
17-
// gdbg-command:whatis 'basic_types_globals_metadata::I16'
1813
// gdbr-command:whatis basic_types_globals_metadata::I16
1914
// gdb-check:type = i16
20-
// gdbg-command:whatis 'basic_types_globals_metadata::I32'
2115
// gdbr-command:whatis basic_types_globals_metadata::I32
2216
// gdb-check:type = i32
23-
// gdbg-command:whatis 'basic_types_globals_metadata::I64'
2417
// gdbr-command:whatis basic_types_globals_metadata::I64
2518
// gdb-check:type = i64
26-
// gdbg-command:whatis 'basic_types_globals_metadata::U'
2719
// gdbr-command:whatis basic_types_globals_metadata::U
2820
// gdb-check:type = usize
29-
// gdbg-command:whatis 'basic_types_globals_metadata::U8'
3021
// gdbr-command:whatis basic_types_globals_metadata::U8
3122
// gdb-check:type = u8
32-
// gdbg-command:whatis 'basic_types_globals_metadata::U16'
3323
// gdbr-command:whatis basic_types_globals_metadata::U16
3424
// gdb-check:type = u16
35-
// gdbg-command:whatis 'basic_types_globals_metadata::U32'
3625
// gdbr-command:whatis basic_types_globals_metadata::U32
3726
// gdb-check:type = u32
38-
// gdbg-command:whatis 'basic_types_globals_metadata::U64'
3927
// gdbr-command:whatis basic_types_globals_metadata::U64
4028
// gdb-check:type = u64
41-
// gdbg-command:whatis 'basic_types_globals_metadata::F16'
4229
// gdbr-command:whatis basic_types_globals_metadata::F16
4330
// gdb-check:type = f16
44-
// gdbg-command:whatis 'basic_types_globals_metadata::F32'
4531
// gdbr-command:whatis basic_types_globals_metadata::F32
4632
// gdb-check:type = f32
47-
// gdbg-command:whatis 'basic_types_globals_metadata::F64'
4833
// gdbr-command:whatis basic_types_globals_metadata::F64
4934
// gdb-check:type = f64
5035
// gdb-command:continue

tests/debuginfo/basic-types-globals.rs

Lines changed: 0 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -12,50 +12,34 @@
1212
//@ [lto] no-prefer-dynamic
1313

1414
// gdb-command:run
15-
// gdbg-command:print 'basic_types_globals::B'
1615
// gdbr-command:print B
1716
// gdb-check:$1 = false
18-
// gdbg-command:print 'basic_types_globals::I'
1917
// gdbr-command:print I
2018
// gdb-check:$2 = -1
21-
// gdbg-command:print 'basic_types_globals::C'
2219
// gdbr-command:print/d C
23-
// gdbg-check:$3 = 97
2420
// gdbr-check:$3 = 97
25-
// gdbg-command:print/d 'basic_types_globals::I8'
2621
// gdbr-command:print I8
2722
// gdb-check:$4 = 68
28-
// gdbg-command:print 'basic_types_globals::I16'
2923
// gdbr-command:print I16
3024
// gdb-check:$5 = -16
31-
// gdbg-command:print 'basic_types_globals::I32'
3225
// gdbr-command:print I32
3326
// gdb-check:$6 = -32
34-
// gdbg-command:print 'basic_types_globals::I64'
3527
// gdbr-command:print I64
3628
// gdb-check:$7 = -64
37-
// gdbg-command:print 'basic_types_globals::U'
3829
// gdbr-command:print U
3930
// gdb-check:$8 = 1
40-
// gdbg-command:print/d 'basic_types_globals::U8'
4131
// gdbr-command:print U8
4232
// gdb-check:$9 = 100
43-
// gdbg-command:print 'basic_types_globals::U16'
4433
// gdbr-command:print U16
4534
// gdb-check:$10 = 16
46-
// gdbg-command:print 'basic_types_globals::U32'
4735
// gdbr-command:print U32
4836
// gdb-check:$11 = 32
49-
// gdbg-command:print 'basic_types_globals::U64'
5037
// gdbr-command:print U64
5138
// gdb-check:$12 = 64
52-
// gdbg-command:print 'basic_types_globals::F16'
5339
// gdbr-command:print F16
5440
// gdb-check:$13 = 1.5
55-
// gdbg-command:print 'basic_types_globals::F32'
5641
// gdbr-command:print F32
5742
// gdb-check:$14 = 2.5
58-
// gdbg-command:print 'basic_types_globals::F64'
5943
// gdbr-command:print F64
6044
// gdb-check:$15 = 3.5
6145
// gdb-command:continue

tests/debuginfo/basic-types-metadata.rs

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -37,25 +37,14 @@
3737
// gdb-command:whatis fnptr
3838
// gdb-check:type = *mut fn ()
3939
// gdb-command:info functions _yyy
40-
// gdbg-check:[...]![...]_yyy([...]);
4140
// gdbr-check:static fn basic_types_metadata::_yyy();
4241
// gdb-command:ptype closure_0
4342
// gdbr-check: type = struct basic_types_metadata::main::{closure_env#0}
44-
// gdbg-check: type = struct closure {
45-
// gdbg-check: <no data fields>
46-
// gdbg-check: }
4743
// gdb-command:ptype closure_1
48-
// gdbg-check: type = struct closure {
49-
// gdbg-check: bool *__0;
50-
// gdbg-check: }
5144
// gdbr-check: type = struct basic_types_metadata::main::{closure_env#1} {
5245
// gdbr-check: *mut bool,
5346
// gdbr-check: }
5447
// gdb-command:ptype closure_2
55-
// gdbg-check: type = struct closure {
56-
// gdbg-check: bool *__0;
57-
// gdbg-check: isize *__1;
58-
// gdbg-check: }
5948
// gdbr-check: type = struct basic_types_metadata::main::{closure_env#2} {
6049
// gdbr-check: *mut bool,
6150
// gdbr-check: *mut isize,

tests/debuginfo/basic-types-mut-globals.rs

Lines changed: 0 additions & 32 deletions
Original file line numberDiff line numberDiff line change
@@ -11,99 +11,67 @@
1111
// gdb-command:run
1212

1313
// Check initializers
14-
// gdbg-command:print 'basic_types_mut_globals::B'
1514
// gdbr-command:print B
1615
// gdb-check:$1 = false
17-
// gdbg-command:print 'basic_types_mut_globals::I'
1816
// gdbr-command:print I
1917
// gdb-check:$2 = -1
20-
// gdbg-command:print/d 'basic_types_mut_globals::C'
2118
// gdbr-command:print C
22-
// gdbg-check:$3 = 97
2319
// gdbr-check:$3 = 97 'a'
24-
// gdbg-command:print/d 'basic_types_mut_globals::I8'
2520
// gdbr-command:print I8
2621
// gdb-check:$4 = 68
27-
// gdbg-command:print 'basic_types_mut_globals::I16'
2822
// gdbr-command:print I16
2923
// gdb-check:$5 = -16
30-
// gdbg-command:print 'basic_types_mut_globals::I32'
3124
// gdbr-command:print I32
3225
// gdb-check:$6 = -32
33-
// gdbg-command:print 'basic_types_mut_globals::I64'
3426
// gdbr-command:print I64
3527
// gdb-check:$7 = -64
36-
// gdbg-command:print 'basic_types_mut_globals::U'
3728
// gdbr-command:print U
3829
// gdb-check:$8 = 1
39-
// gdbg-command:print/d 'basic_types_mut_globals::U8'
4030
// gdbr-command:print U8
4131
// gdb-check:$9 = 100
42-
// gdbg-command:print 'basic_types_mut_globals::U16'
4332
// gdbr-command:print U16
4433
// gdb-check:$10 = 16
45-
// gdbg-command:print 'basic_types_mut_globals::U32'
4634
// gdbr-command:print U32
4735
// gdb-check:$11 = 32
48-
// gdbg-command:print 'basic_types_mut_globals::U64'
4936
// gdbr-command:print U64
5037
// gdb-check:$12 = 64
51-
// gdbg-command:print 'basic_types_mut_globals::F16'
5238
// gdbr-command:print F16
5339
// gdb-check:$13 = 1.5
54-
// gdbg-command:print 'basic_types_mut_globals::F32'
5540
// gdbr-command:print F32
5641
// gdb-check:$14 = 2.5
57-
// gdbg-command:print 'basic_types_mut_globals::F64'
5842
// gdbr-command:print F64
5943
// gdb-check:$15 = 3.5
6044
// gdb-command:continue
6145

6246
// Check new values
63-
// gdbg-command:print 'basic_types_mut_globals'::B
6447
// gdbr-command:print B
6548
// gdb-check:$16 = true
66-
// gdbg-command:print 'basic_types_mut_globals'::I
6749
// gdbr-command:print I
6850
// gdb-check:$17 = 2
69-
// gdbg-command:print/d 'basic_types_mut_globals'::C
7051
// gdbr-command:print C
71-
// gdbg-check:$18 = 102
7252
// gdbr-check:$18 = 102 'f'
73-
// gdbg-command:print/d 'basic_types_mut_globals'::I8
7453
// gdbr-command:print/d I8
7554
// gdb-check:$19 = 78
76-
// gdbg-command:print 'basic_types_mut_globals'::I16
7755
// gdbr-command:print I16
7856
// gdb-check:$20 = -26
79-
// gdbg-command:print 'basic_types_mut_globals'::I32
8057
// gdbr-command:print I32
8158
// gdb-check:$21 = -12
82-
// gdbg-command:print 'basic_types_mut_globals'::I64
8359
// gdbr-command:print I64
8460
// gdb-check:$22 = -54
85-
// gdbg-command:print 'basic_types_mut_globals'::U
8661
// gdbr-command:print U
8762
// gdb-check:$23 = 5
88-
// gdbg-command:print/d 'basic_types_mut_globals'::U8
8963
// gdbr-command:print/d U8
9064
// gdb-check:$24 = 20
91-
// gdbg-command:print 'basic_types_mut_globals'::U16
9265
// gdbr-command:print U16
9366
// gdb-check:$25 = 32
94-
// gdbg-command:print 'basic_types_mut_globals'::U32
9567
// gdbr-command:print U32
9668
// gdb-check:$26 = 16
97-
// gdbg-command:print 'basic_types_mut_globals'::U64
9869
// gdbr-command:print U64
9970
// gdb-check:$27 = 128
100-
// gdbg-command:print 'basic_types_mut_globals'::F16
10171
// gdbr-command:print F16
10272
// gdb-check:$28 = 2.25
103-
// gdbg-command:print 'basic_types_mut_globals'::F32
10473
// gdbr-command:print F32
10574
// gdb-check:$29 = 5.75
106-
// gdbg-command:print 'basic_types_mut_globals'::F64
10775
// gdbr-command:print F64
10876
// gdb-check:$30 = 9.25
10977

tests/debuginfo/basic-types.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -16,7 +16,6 @@
1616
// gdb-command:print i
1717
// gdb-check:$2 = -1
1818
// gdb-command:print c
19-
// gdbg-check:$3 = 97
2019
// gdbr-check:$3 = 97 'a'
2120
// gdb-command:print/d i8
2221
// gdb-check:$4 = 68
@@ -43,7 +42,6 @@
4342
// gdb-command:print f64
4443
// gdb-check:$15 = 3.5
4544
// gdb-command:print s
46-
// gdbg-check:$16 = {data_ptr = [...] "Hello, World!", length = 13}
4745
// gdbr-check:$16 = "Hello, World!"
4846

4947
// === LLDB TESTS ==================================================================================

tests/debuginfo/borrowed-basic.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,6 @@
1414
// gdb-check:$3 = 97
1515

1616
// gdb-command:print *i8_ref
17-
// gdbg-check:$4 = 68 'D'
1817
// gdbr-check:$4 = 68
1918

2019
// gdb-command:print *i16_ref
@@ -30,7 +29,6 @@
3029
// gdb-check:$8 = 1
3130

3231
// gdb-command:print *u8_ref
33-
// gdbg-check:$9 = 100 'd'
3432
// gdbr-check:$9 = 100
3533

3634
// gdb-command:print *u16_ref

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

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,15 +6,12 @@
66
// gdb-command:run
77

88
// gdb-command:print *the_a_ref
9-
// gdbg-check:$1 = TheA
109
// gdbr-check:$1 = borrowed_c_style_enum::ABC::TheA
1110

1211
// gdb-command:print *the_b_ref
13-
// gdbg-check:$2 = TheB
1412
// gdbr-check:$2 = borrowed_c_style_enum::ABC::TheB
1513

1614
// gdb-command:print *the_c_ref
17-
// gdbg-check:$3 = TheC
1815
// gdbr-check:$3 = borrowed_c_style_enum::ABC::TheC
1916

2017

tests/debuginfo/borrowed-struct.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,6 @@
66
// gdb-command:run
77

88
// gdb-command:print *stack_val_ref
9-
// gdbg-check:$1 = {x = 10, y = 23.5}
109
// gdbr-check:$1 = borrowed_struct::SomeStruct {x: 10, y: 23.5}
1110

1211
// gdb-command:print *stack_val_interior_ref_1
@@ -16,11 +15,9 @@
1615
// gdb-check:$3 = 23.5
1716

1817
// gdb-command:print *ref_to_unnamed
19-
// gdbg-check:$4 = {x = 11, y = 24.5}
2018
// gdbr-check:$4 = borrowed_struct::SomeStruct {x: 11, y: 24.5}
2119

2220
// gdb-command:print *unique_val_ref
23-
// gdbg-check:$5 = {x = 13, y = 26.5}
2421
// gdbr-check:$5 = borrowed_struct::SomeStruct {x: 13, y: 26.5}
2522

2623
// gdb-command:print *unique_val_interior_ref_1

tests/debuginfo/borrowed-tuple.rs

Lines changed: 0 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,15 +7,12 @@
77
// gdb-command:run
88

99
// gdb-command:print *stack_val_ref
10-
// gdbg-check:$1 = {__0 = -14, __1 = -19}
1110
// gdbr-check:$1 = (-14, -19)
1211

1312
// gdb-command:print *ref_to_unnamed
14-
// gdbg-check:$2 = {__0 = -15, __1 = -20}
1513
// gdbr-check:$2 = (-15, -20)
1614

1715
// gdb-command:print *unique_val_ref
18-
// gdbg-check:$3 = {__0 = -17, __1 = -22}
1916
// gdbr-check:$3 = (-17, -22)
2017

2118

tests/debuginfo/box.rs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,6 @@
99
// gdb-command:print *a
1010
// gdb-check:$1 = 1
1111
// gdb-command:print *b
12-
// gdbg-check:$2 = {__0 = 2, __1 = 3.5}
1312
// gdbr-check:$2 = (2, 3.5)
1413

1514

tests/debuginfo/boxed-struct.rs

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,9 @@
77
// gdb-command:run
88

99
// gdb-command:print *boxed_with_padding
10-
// gdbg-check:$1 = {x = 99, y = 999, z = 9999, w = 99999}
1110
// gdbr-check:$1 = boxed_struct::StructWithSomePadding {x: 99, y: 999, z: 9999, w: 99999}
1211

1312
// gdb-command:print *boxed_with_dtor
14-
// gdbg-check:$2 = {x = 77, y = 777, z = 7777, w = 77777}
1513
// gdbr-check:$2 = boxed_struct::StructWithDestructor {x: 77, y: 777, z: 7777, w: 77777}
1614

1715

tests/debuginfo/by-value-non-immediate-argument.rs

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -7,12 +7,10 @@
77
// gdb-command:run
88

99
// gdb-command:print s
10-
// gdbg-check:$1 = {a = 1, b = 2.5}
1110
// gdbr-check:$1 = by_value_non_immediate_argument::Struct {a: 1, b: 2.5}
1211
// gdb-command:continue
1312

1413
// gdb-command:print x
15-
// gdbg-check:$2 = {a = 3, b = 4.5}
1614
// gdbr-check:$2 = by_value_non_immediate_argument::Struct {a: 3, b: 4.5}
1715
// gdb-command:print y
1816
// gdb-check:$3 = 5
@@ -21,17 +19,14 @@
2119
// gdb-command:continue
2220

2321
// gdb-command:print a
24-
// gdbg-check:$5 = {__0 = 7, __1 = 8, __2 = 9.5, __3 = 10.5}
2522
// gdbr-check:$5 = (7, 8, 9.5, 10.5)
2623
// gdb-command:continue
2724

2825
// gdb-command:print a
29-
// gdbg-check:$6 = {__0 = 11.5, __1 = 12.5, __2 = 13, __3 = 14}
3026
// gdbr-check:$6 = by_value_non_immediate_argument::Newtype (11.5, 12.5, 13, 14)
3127
// gdb-command:continue
3228

3329
// gdb-command:print x
34-
// gdbg-check:$7 = {{RUST$ENUM$DISR = Case1, x = 0, y = 8970181431921507452}, {RUST$ENUM$DISR = Case1, [...]}}
3530
// gdbr-check:$7 = by_value_non_immediate_argument::Enum::Case1{x: 0, y: 8970181431921507452}
3631
// gdb-command:continue
3732

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

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,12 +11,10 @@
1111
// gdb-command:continue
1212

1313
// gdb-command:print self
14-
// gdbg-check:$2 = {x = 2222, y = 3333}
1514
// gdbr-check:$2 = by_value_self_argument_in_trait_impl::Struct {x: 2222, y: 3333}
1615
// gdb-command:continue
1716

1817
// gdb-command:print self
19-
// gdbg-check:$3 = {__0 = 4444.5, __1 = 5555, __2 = 6666, __3 = 7777.5}
2018
// gdbr-check:$3 = (4444.5, 5555, 6666, 7777.5)
2119
// gdb-command:continue
2220

0 commit comments

Comments
 (0)