Skip to content

Commit

Permalink
Convert lldbg- to lldb-
Browse files Browse the repository at this point in the history
  • Loading branch information
saethlin committed Aug 18, 2024
1 parent 41d06f4 commit 22ed23d
Show file tree
Hide file tree
Showing 77 changed files with 716 additions and 716 deletions.
18 changes: 9 additions & 9 deletions tests/debuginfo/associated-types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -37,33 +37,33 @@
// lldb-command:run

// lldb-command:v arg
// lldbg-check:[...] { b = -1, b1 = 0 }
// lldb-check:[...] { b = -1, b1 = 0 }
// lldb-command:continue

// lldb-command:v inferred
// lldbg-check:[...] 1
// lldb-check:[...] 1
// lldb-command:v explicitly
// lldbg-check:[...] 1
// lldb-check:[...] 1
// lldb-command:continue

// lldb-command:v arg
// lldbg-check:[...] 2
// lldb-check:[...] 2
// lldb-command:continue

// lldb-command:v arg
// lldbg-check:[...] (4, 5)
// lldb-check:[...] (4, 5)
// lldb-command:continue

// lldb-command:v a
// lldbg-check:[...] 6
// lldb-check:[...] 6
// lldb-command:v b
// lldbg-check:[...] 7
// lldb-check:[...] 7
// lldb-command:continue

// lldb-command:v a
// lldbg-check:[...] 8
// lldb-check:[...] 8
// lldb-command:v b
// lldbg-check:[...] 9
// lldb-check:[...] 9
// lldb-command:continue

#![allow(unused_variables)]
Expand Down
26 changes: 13 additions & 13 deletions tests/debuginfo/basic-types.rs
Original file line number Diff line number Diff line change
Expand Up @@ -46,32 +46,32 @@

// lldb-command:run
// lldb-command:v b
// lldbg-check:[...] false
// lldb-check:[...] false
// lldb-command:v i
// lldbg-check:[...] -1
// lldb-check:[...] -1

// lldb-command:v i8
// lldbg-check:[...] 'D'
// lldb-check:[...] 'D'
// lldb-command:v i16
// lldbg-check:[...] -16
// lldb-check:[...] -16
// lldb-command:v i32
// lldbg-check:[...] -32
// lldb-check:[...] -32
// lldb-command:v i64
// lldbg-check:[...] -64
// lldb-check:[...] -64
// lldb-command:v u
// lldbg-check:[...] 1
// lldb-check:[...] 1
// lldb-command:v u8
// lldbg-check:[...] 'd'
// lldb-check:[...] 'd'
// lldb-command:v u16
// lldbg-check:[...] 16
// lldb-check:[...] 16
// lldb-command:v u32
// lldbg-check:[...] 32
// lldb-check:[...] 32
// lldb-command:v u64
// lldbg-check:[...] 64
// lldb-check:[...] 64
// lldb-command:v f32
// lldbg-check:[...] 2.5
// lldb-check:[...] 2.5
// lldb-command:v f64
// lldbg-check:[...] 3.5
// lldb-check:[...] 3.5

// === CDB TESTS ===================================================================================

Expand Down
28 changes: 14 additions & 14 deletions tests/debuginfo/borrowed-basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -53,47 +53,47 @@

// lldb-command:run
// lldb-command:v *bool_ref
// lldbg-check:[...] true
// lldb-check:[...] true

// lldb-command:v *int_ref
// lldbg-check:[...] -1
// lldb-check:[...] -1


// lldb-command:v *i8_ref
// lldbg-check:[...] 'D'
// lldb-check:[...] 'D'

// lldb-command:v *i16_ref
// lldbg-check:[...] -16
// lldb-check:[...] -16

// lldb-command:v *i32_ref
// lldbg-check:[...] -32
// lldb-check:[...] -32

// lldb-command:v *i64_ref
// lldbg-check:[...] -64
// lldb-check:[...] -64

// lldb-command:v *uint_ref
// lldbg-check:[...] 1
// lldb-check:[...] 1

// lldb-command:v *u8_ref
// lldbg-check:[...] 'd'
// lldb-check:[...] 'd'

// lldb-command:v *u16_ref
// lldbg-check:[...] 16
// lldb-check:[...] 16

// lldb-command:v *u32_ref
// lldbg-check:[...] 32
// lldb-check:[...] 32

// lldb-command:v *u64_ref
// lldbg-check:[...] 64
// lldb-check:[...] 64

// lldb-command:v *f16_ref
// lldbg-check:[...] 1.5
// lldb-check:[...] 1.5

// lldb-command:v *f32_ref
// lldbg-check:[...] 2.5
// lldb-check:[...] 2.5

// lldb-command:v *f64_ref
// lldbg-check:[...] 3.5
// lldb-check:[...] 3.5

#![allow(unused_variables)]
#![feature(omit_gdb_pretty_printer_section)]
Expand Down
6 changes: 3 additions & 3 deletions tests/debuginfo/borrowed-c-style-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
// lldb-command:run

// lldb-command:v *the_a_ref
// lldbg-check:[...] TheA
// lldb-check:[...] TheA

// lldb-command:v *the_b_ref
// lldbg-check:[...] TheB
// lldb-check:[...] TheB

// lldb-command:v *the_c_ref
// lldbg-check:[...] TheC
// lldb-check:[...] TheC

#![allow(unused_variables)]
#![feature(omit_gdb_pretty_printer_section)]
Expand Down
6 changes: 3 additions & 3 deletions tests/debuginfo/borrowed-enum.rs
Original file line number Diff line number Diff line change
Expand Up @@ -21,11 +21,11 @@
// lldb-command:run

// lldb-command:v *the_a_ref
// lldbg-check:(borrowed_enum::ABC) *the_a_ref = { value = { x = 0 y = 8970181431921507452 } $discr$ = 0 }
// lldb-check:(borrowed_enum::ABC) *the_a_ref = { value = { x = 0 y = 8970181431921507452 } $discr$ = 0 }
// lldb-command:v *the_b_ref
// lldbg-check:(borrowed_enum::ABC) *the_b_ref = { value = { 0 = 0 1 = 286331153 2 = 286331153 } $discr$ = 1 }
// lldb-check:(borrowed_enum::ABC) *the_b_ref = { value = { 0 = 0 1 = 286331153 2 = 286331153 } $discr$ = 1 }
// lldb-command:v *univariant_ref
// lldbg-check:(borrowed_enum::Univariant) *univariant_ref = { value = { 0 = 4820353753753434 } }
// lldb-check:(borrowed_enum::Univariant) *univariant_ref = { value = { 0 = 4820353753753434 } }

#![allow(unused_variables)]
#![feature(omit_gdb_pretty_printer_section)]
Expand Down
14 changes: 7 additions & 7 deletions tests/debuginfo/borrowed-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -31,25 +31,25 @@
// lldb-command:run

// lldb-command:v *stack_val_ref
// lldbg-check:[...] { x = 10 y = 23.5 }
// lldb-check:[...] { x = 10 y = 23.5 }

// lldb-command:v *stack_val_interior_ref_1
// lldbg-check:[...] 10
// lldb-check:[...] 10

// lldb-command:v *stack_val_interior_ref_2
// lldbg-check:[...] 23.5
// lldb-check:[...] 23.5

// lldb-command:v *ref_to_unnamed
// lldbg-check:[...] { x = 11 y = 24.5 }
// lldb-check:[...] { x = 11 y = 24.5 }

// lldb-command:v *unique_val_ref
// lldbg-check:[...] { x = 13 y = 26.5 }
// lldb-check:[...] { x = 13 y = 26.5 }

// lldb-command:v *unique_val_interior_ref_1
// lldbg-check:[...] 13
// lldb-check:[...] 13

// lldb-command:v *unique_val_interior_ref_2
// lldbg-check:[...] 26.5
// lldb-check:[...] 26.5

#![allow(unused_variables)]
#![feature(omit_gdb_pretty_printer_section)]
Expand Down
6 changes: 3 additions & 3 deletions tests/debuginfo/borrowed-tuple.rs
Original file line number Diff line number Diff line change
Expand Up @@ -19,13 +19,13 @@
// lldb-command:run

// lldb-command:v *stack_val_ref
// lldbg-check:[...] { 0 = -14 1 = -19 }
// lldb-check:[...] { 0 = -14 1 = -19 }

// lldb-command:v *ref_to_unnamed
// lldbg-check:[...] { 0 = -15 1 = -20 }
// lldb-check:[...] { 0 = -15 1 = -20 }

// lldb-command:v *unique_val_ref
// lldbg-check:[...] { 0 = -17 1 = -22 }
// lldb-check:[...] { 0 = -17 1 = -22 }


#![allow(unused_variables)]
Expand Down
28 changes: 14 additions & 14 deletions tests/debuginfo/borrowed-unique-basic.rs
Original file line number Diff line number Diff line change
Expand Up @@ -57,47 +57,47 @@
// lldb-command:run

// lldb-command:v *bool_ref
// lldbg-check:[...] true
// lldb-check:[...] true

// lldb-command:v *int_ref
// lldbg-check:[...] -1
// lldb-check:[...] -1


// lldb-command:v *i8_ref
// lldbg-check:[...] 68
// lldb-check:[...] 68

// lldb-command:v *i16_ref
// lldbg-check:[...] -16
// lldb-check:[...] -16

// lldb-command:v *i32_ref
// lldbg-check:[...] -32
// lldb-check:[...] -32

// lldb-command:v *i64_ref
// lldbg-check:[...] -64
// lldb-check:[...] -64

// lldb-command:v *uint_ref
// lldbg-check:[...] 1
// lldb-check:[...] 1

// lldb-command:v *u8_ref
// lldbg-check:[...] 100
// lldb-check:[...] 100

// lldb-command:v *u16_ref
// lldbg-check:[...] 16
// lldb-check:[...] 16

// lldb-command:v *u32_ref
// lldbg-check:[...] 32
// lldb-check:[...] 32

// lldb-command:v *u64_ref
// lldbg-check:[...] 64
// lldb-check:[...] 64

// lldb-command:v *f16_ref
// lldbg-check:[...] 1.5
// lldb-check:[...] 1.5

// lldb-command:v *f32_ref
// lldbg-check:[...] 2.5
// lldb-check:[...] 2.5

// lldb-command:v *f64_ref
// lldbg-check:[...] 3.5
// lldb-check:[...] 3.5

#![allow(unused_variables)]
#![feature(omit_gdb_pretty_printer_section)]
Expand Down
4 changes: 2 additions & 2 deletions tests/debuginfo/box.rs
Original file line number Diff line number Diff line change
Expand Up @@ -14,9 +14,9 @@

// lldb-command:run
// lldb-command:v *a
// lldbg-check:[...] 1
// lldb-check:[...] 1
// lldb-command:v *b
// lldbg-check:[...] { 0 = 2 1 = 3.5 }
// lldb-check:[...] { 0 = 2 1 = 3.5 }

#![allow(unused_variables)]
#![feature(omit_gdb_pretty_printer_section)]
Expand Down
4 changes: 2 additions & 2 deletions tests/debuginfo/boxed-struct.rs
Original file line number Diff line number Diff line change
Expand Up @@ -16,10 +16,10 @@
// lldb-command:run

// lldb-command:v *boxed_with_padding
// lldbg-check:[...] { x = 99 y = 999 z = 9999 w = 99999 }
// lldb-check:[...] { x = 99 y = 999 z = 9999 w = 99999 }

// lldb-command:v *boxed_with_dtor
// lldbg-check:[...] { x = 77 y = 777 z = 7777 w = 77777 }
// lldb-check:[...] { x = 77 y = 777 z = 7777 w = 77777 }

#![allow(unused_variables)]
#![feature(omit_gdb_pretty_printer_section)]
Expand Down
6 changes: 3 additions & 3 deletions tests/debuginfo/by-value-self-argument-in-trait-impl.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,15 +22,15 @@
// lldb-command:run

// lldb-command:v self
// lldbg-check:[...] 1111
// lldb-check:[...] 1111
// lldb-command:continue

// lldb-command:v self
// lldbg-check:[...] { x = 2222 y = 3333 }
// lldb-check:[...] { x = 2222 y = 3333 }
// lldb-command:continue

// lldb-command:v self
// lldbg-check:[...] { 0 = 4444.5 1 = 5555 2 = 6666 3 = 7777.5 }
// lldb-check:[...] { 0 = 4444.5 1 = 5555 2 = 6666 3 = 7777.5 }
// lldb-command:continue

#![feature(omit_gdb_pretty_printer_section)]
Expand Down
14 changes: 7 additions & 7 deletions tests/debuginfo/c-style-enum-in-composite.rs
Original file line number Diff line number Diff line change
Expand Up @@ -30,25 +30,25 @@
// lldb-command:run

// lldb-command:v tuple_interior_padding
// lldbg-check:[...] { 0 = 0 1 = OneHundred }
// lldb-check:[...] { 0 = 0 1 = OneHundred }

// lldb-command:v tuple_padding_at_end
// lldbg-check:[...] { 0 = { 0 = 1 1 = OneThousand } 1 = 2 }
// lldb-check:[...] { 0 = { 0 = 1 1 = OneThousand } 1 = 2 }

// lldb-command:v tuple_different_enums
// lldbg-check:[...] { 0 = OneThousand 1 = MountainView 2 = OneMillion 3 = Vienna }
// lldb-check:[...] { 0 = OneThousand 1 = MountainView 2 = OneMillion 3 = Vienna }

// lldb-command:v padded_struct
// lldbg-check:[...] { a = 3 b = OneMillion c = 4 d = Toronto e = 5 }
// lldb-check:[...] { a = 3 b = OneMillion c = 4 d = Toronto e = 5 }

// lldb-command:v packed_struct
// lldbg-check:[...] { a = 6 b = OneHundred c = 7 d = Vienna e = 8 }
// lldb-check:[...] { a = 6 b = OneHundred c = 7 d = Vienna e = 8 }

// lldb-command:v non_padded_struct
// lldbg-check:[...] { a = OneMillion b = MountainView c = OneThousand d = Toronto }
// lldb-check:[...] { a = OneMillion b = MountainView c = OneThousand d = Toronto }

// lldb-command:v struct_with_drop
// lldbg-check:[...] { 0 = { a = OneHundred b = Vienna } 1 = 9 }
// lldb-check:[...] { 0 = { a = OneHundred b = Vienna } 1 = 9 }

#![allow(unused_variables)]
#![feature(omit_gdb_pretty_printer_section)]
Expand Down
Loading

0 comments on commit 22ed23d

Please sign in to comment.