mirror of
https://github.com/rust-lang/rust.git
synced 2024-11-26 08:44:35 +00:00
Update enum debuginfo tests
Bug #52452 notes some debuginfo test regressions when moving to gdb 8.1. This series will also cause versions of gdb before 8.2 to fail when a recent LLVM is used -- DW_TAG_variant_part support was not added until 8.2. This patch updates one of the builders to a later version of Ubuntu, which comes with gdb 8.2. It updates the relevant tests to require both a new-enough LLVM and a new-enough gdb; the subsequent patch arranges to continue testing the fallback mode. The "gdbg" results are removed from these tests because the tests now require a rust-enabled gdb. If you read closely, you'll see that some of the lldb results in this patch still look a bit strange. This will be addressed in a subsequent patch; I believe the fix is to disable the Python pretty-printers when lldb is rust-enabled.
This commit is contained in:
parent
da7b6b4b4d
commit
8bbb62f849
@ -1,4 +1,4 @@
|
||||
FROM ubuntu:16.04
|
||||
FROM ubuntu:18.10
|
||||
|
||||
RUN apt-get update && apt-get install -y --no-install-recommends \
|
||||
g++ \
|
||||
|
@ -16,6 +16,10 @@
|
||||
|
||||
// min-lldb-version: 310
|
||||
|
||||
// This fails on lldb 6.0.1 on x86-64 Fedora 28; so mark it macOS-only
|
||||
// for now.
|
||||
// only-macos
|
||||
|
||||
// compile-flags:-g
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
@ -9,8 +9,11 @@
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-tidy-linelength
|
||||
// min-lldb-version: 310
|
||||
// ignore-gdb-version: 7.11.90 - 7.12.9
|
||||
|
||||
// Require LLVM with DW_TAG_variant_part and a gdb or lldb that can read it.
|
||||
// min-system-llvm-version: 7.0
|
||||
// min-gdb-version: 8.2
|
||||
// rust-lldb
|
||||
|
||||
// compile-flags:-g
|
||||
|
||||
@ -19,15 +22,12 @@
|
||||
// gdb-command:run
|
||||
|
||||
// gdb-command:print *the_a_ref
|
||||
// gdbg-check:$1 = {{RUST$ENUM$DISR = TheA, x = 0, y = 8970181431921507452}, {RUST$ENUM$DISR = TheA, [...]}}
|
||||
// gdbr-check:$1 = borrowed_enum::ABC::TheA{x: 0, y: 8970181431921507452}
|
||||
|
||||
// gdb-command:print *the_b_ref
|
||||
// gdbg-check:$2 = {{RUST$ENUM$DISR = TheB, [...]}, {RUST$ENUM$DISR = TheB, __0 = 0, __1 = 286331153, __2 = 286331153}}
|
||||
// gdbr-check:$2 = borrowed_enum::ABC::TheB(0, 286331153, 286331153)
|
||||
|
||||
// gdb-command:print *univariant_ref
|
||||
// gdbg-check:$3 = {{__0 = 4820353753753434}}
|
||||
// gdbr-check:$3 = borrowed_enum::Univariant::TheOnlyCase(4820353753753434)
|
||||
|
||||
|
||||
@ -36,14 +36,11 @@
|
||||
// lldb-command:run
|
||||
|
||||
// lldb-command:print *the_a_ref
|
||||
// lldbg-check:[...]$0 = TheA { x: 0, y: 8970181431921507452 }
|
||||
// lldbr-check:(borrowed_enum::ABC::TheA) *the_a_ref = TheA { borrowed_enum::ABC::TheA: 0, borrowed_enum::ABC::TheB: 8970181431921507452 }
|
||||
// lldbr-check:(borrowed_enum::ABC::TheA) *the_a_ref = TheA { TheA: 0, TheB: 8970181431921507452 }
|
||||
// lldb-command:print *the_b_ref
|
||||
// lldbg-check:[...]$1 = TheB(0, 286331153, 286331153)
|
||||
// lldbr-check:(borrowed_enum::ABC::TheB) *the_b_ref = { = 0 = 286331153 = 286331153 }
|
||||
// lldb-command:print *univariant_ref
|
||||
// lldbg-check:[...]$2 = TheOnlyCase(4820353753753434)
|
||||
// lldbr-check:(borrowed_enum::Univariant) *univariant_ref = { borrowed_enum::TheOnlyCase = { = 4820353753753434 } }
|
||||
// lldbr-check:(borrowed_enum::Univariant) *univariant_ref = { TheOnlyCase = { = 4820353753753434 } }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(omit_gdb_pretty_printer_section)]
|
||||
|
@ -13,6 +13,10 @@
|
||||
|
||||
// min-lldb-version: 310
|
||||
|
||||
// This fails on lldb 6.0.1 on x86-64 Fedora 28; so mark it macOS-only
|
||||
// for now.
|
||||
// only-macos
|
||||
|
||||
// aux-build:cross_crate_spans.rs
|
||||
extern crate cross_crate_spans;
|
||||
|
||||
|
@ -12,6 +12,10 @@
|
||||
|
||||
// min-lldb-version: 310
|
||||
|
||||
// This fails on lldb 6.0.1 on x86-64 Fedora 28; so mark it macOS-only
|
||||
// for now.
|
||||
// only-macos
|
||||
|
||||
// compile-flags:-g
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
@ -12,43 +12,39 @@
|
||||
// ignore-lldb: FIXME(#27089)
|
||||
// min-lldb-version: 310
|
||||
|
||||
// Require LLVM with DW_TAG_variant_part and a gdb that can read it.
|
||||
// min-system-llvm-version: 7.0
|
||||
// min-gdb-version: 8.2
|
||||
|
||||
// compile-flags:-g
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
// gdb-command:run
|
||||
|
||||
// gdb-command:print eight_bytes1
|
||||
// gdbg-check:$1 = {{RUST$ENUM$DISR = Variant1, __0 = 100}, {RUST$ENUM$DISR = Variant1, __0 = 100}}
|
||||
// gdbr-check:$1 = generic_enum_with_different_disr_sizes::Enum::Variant1(100)
|
||||
// gdbr-check:$1 = generic_enum_with_different_disr_sizes::Enum<f64>::Variant1(100)
|
||||
|
||||
// gdb-command:print four_bytes1
|
||||
// gdbg-check:$2 = {{RUST$ENUM$DISR = Variant1, __0 = 101}, {RUST$ENUM$DISR = Variant1, __0 = 101}}
|
||||
// gdbr-check:$2 = generic_enum_with_different_disr_sizes::Enum::Variant1(101)
|
||||
// gdbr-check:$2 = generic_enum_with_different_disr_sizes::Enum<i32>::Variant1(101)
|
||||
|
||||
// gdb-command:print two_bytes1
|
||||
// gdbg-check:$3 = {{RUST$ENUM$DISR = Variant1, __0 = 102}, {RUST$ENUM$DISR = Variant1, __0 = 102}}
|
||||
// gdbr-check:$3 = generic_enum_with_different_disr_sizes::Enum::Variant1(102)
|
||||
// gdbr-check:$3 = generic_enum_with_different_disr_sizes::Enum<i16>::Variant1(102)
|
||||
|
||||
// gdb-command:print one_byte1
|
||||
// gdbg-check:$4 = {{RUST$ENUM$DISR = Variant1, __0 = 65 'A'}, {RUST$ENUM$DISR = Variant1, __0 = 65 'A'}}
|
||||
// gdbr-check:$4 = generic_enum_with_different_disr_sizes::Enum::Variant1(65)
|
||||
// gdbr-check:$4 = generic_enum_with_different_disr_sizes::Enum<u8>::Variant1(65)
|
||||
|
||||
|
||||
// gdb-command:print eight_bytes2
|
||||
// gdbg-check:$5 = {{RUST$ENUM$DISR = Variant2, __0 = 100}, {RUST$ENUM$DISR = Variant2, __0 = 100}}
|
||||
// gdbr-check:$5 = generic_enum_with_different_disr_sizes::Enum::Variant2(100)
|
||||
// gdbr-check:$5 = generic_enum_with_different_disr_sizes::Enum<f64>::Variant2(100)
|
||||
|
||||
// gdb-command:print four_bytes2
|
||||
// gdbg-check:$6 = {{RUST$ENUM$DISR = Variant2, __0 = 101}, {RUST$ENUM$DISR = Variant2, __0 = 101}}
|
||||
// gdbr-check:$6 = generic_enum_with_different_disr_sizes::Enum::Variant2(101)
|
||||
// gdbr-check:$6 = generic_enum_with_different_disr_sizes::Enum<i32>::Variant2(101)
|
||||
|
||||
// gdb-command:print two_bytes2
|
||||
// gdbg-check:$7 = {{RUST$ENUM$DISR = Variant2, __0 = 102}, {RUST$ENUM$DISR = Variant2, __0 = 102}}
|
||||
// gdbr-check:$7 = generic_enum_with_different_disr_sizes::Enum::Variant2(102)
|
||||
// gdbr-check:$7 = generic_enum_with_different_disr_sizes::Enum<i16>::Variant2(102)
|
||||
|
||||
// gdb-command:print one_byte2
|
||||
// gdbg-check:$8 = {{RUST$ENUM$DISR = Variant2, __0 = 65 'A'}, {RUST$ENUM$DISR = Variant2, __0 = 65 'A'}}
|
||||
// gdbr-check:$8 = generic_enum_with_different_disr_sizes::Enum::Variant2(65)
|
||||
// gdbr-check:$8 = generic_enum_with_different_disr_sizes::Enum<u8>::Variant2(65)
|
||||
|
||||
// gdb-command:continue
|
||||
|
||||
|
@ -10,7 +10,10 @@
|
||||
|
||||
// ignore-tidy-linelength
|
||||
// min-lldb-version: 310
|
||||
// ignore-gdb-version: 7.11.90 - 7.12.9
|
||||
|
||||
// Require LLVM with DW_TAG_variant_part and a gdb that can read it.
|
||||
// min-system-llvm-version: 7.0
|
||||
// min-gdb-version: 8.2
|
||||
|
||||
// compile-flags:-g
|
||||
|
||||
@ -18,19 +21,15 @@
|
||||
// gdb-command:run
|
||||
|
||||
// gdb-command:print case1
|
||||
// gdbg-check:$1 = {{RUST$ENUM$DISR = Case1, a = 0, b = 31868, c = 31868, d = 31868, e = 31868}, {RUST$ENUM$DISR = Case1, [...]}, {RUST$ENUM$DISR = Case1, [...]}}
|
||||
// gdbr-check:$1 = generic_struct_style_enum::Regular::Case1{a: 0, b: 31868, c: 31868, d: 31868, e: 31868}
|
||||
// gdbr-check:$1 = generic_struct_style_enum::Regular<u16, u32, i64>::Case1{a: 0, b: 31868, c: 31868, d: 31868, e: 31868}
|
||||
|
||||
// gdb-command:print case2
|
||||
// gdbg-check:$2 = {{RUST$ENUM$DISR = Case2, [...]}, {RUST$ENUM$DISR = Case2, a = 0, b = 286331153, c = 286331153}, {RUST$ENUM$DISR = Case2, [...]}}
|
||||
// gdbr-check:$2 = generic_struct_style_enum::Regular::Case2{a: 0, b: 286331153, c: 286331153}
|
||||
// gdbr-check:$2 = generic_struct_style_enum::Regular<i16, u32, i64>::Case2{a: 0, b: 286331153, c: 286331153}
|
||||
|
||||
// gdb-command:print case3
|
||||
// gdbg-check:$3 = {{RUST$ENUM$DISR = Case3, [...]}, {RUST$ENUM$DISR = Case3, [...]}, {RUST$ENUM$DISR = Case3, a = 0, b = 6438275382588823897}}
|
||||
// gdbr-check:$3 = generic_struct_style_enum::Regular::Case3{a: 0, b: 6438275382588823897}
|
||||
// gdbr-check:$3 = generic_struct_style_enum::Regular<u16, i32, u64>::Case3{a: 0, b: 6438275382588823897}
|
||||
|
||||
// gdb-command:print univariant
|
||||
// gdbg-check:$4 = {{a = -1}}
|
||||
// gdbr-check:$4 = generic_struct_style_enum::Univariant<i32>::TheOnlyCase{a: -1}
|
||||
|
||||
|
||||
|
@ -9,8 +9,12 @@
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-tidy-linelength
|
||||
// min-lldb-version: 310
|
||||
// ignore-gdb-version: 7.11.90 - 7.12.9
|
||||
|
||||
// Require LLVM with DW_TAG_variant_part and a gdb and lldb that can
|
||||
// read it.
|
||||
// min-system-llvm-version: 7.0
|
||||
// min-gdb-version: 8.2
|
||||
// rust-lldb
|
||||
|
||||
// compile-flags:-g
|
||||
|
||||
@ -20,19 +24,15 @@
|
||||
// gdb-command:run
|
||||
|
||||
// gdb-command:print case1
|
||||
// gdbg-check:$1 = {{RUST$ENUM$DISR = Case1, __0 = 0, __1 = 31868, __2 = 31868, __3 = 31868, __4 = 31868}, {RUST$ENUM$DISR = Case1, [...]}, {RUST$ENUM$DISR = Case1, [...]}}
|
||||
// gdbr-check:$1 = generic_tuple_style_enum::Regular::Case1(0, 31868, 31868, 31868, 31868)
|
||||
// gdbr-check:$1 = generic_tuple_style_enum::Regular<u16, u32, u64>::Case1(0, 31868, 31868, 31868, 31868)
|
||||
|
||||
// gdb-command:print case2
|
||||
// gdbg-check:$2 = {{RUST$ENUM$DISR = Case2, [...]}, {RUST$ENUM$DISR = Case2, __0 = 0, __1 = 286331153, __2 = 286331153}, {RUST$ENUM$DISR = Case2, [...]}}
|
||||
// gdbr-check:$2 = generic_tuple_style_enum::Regular::Case2(0, 286331153, 286331153)
|
||||
// gdbr-check:$2 = generic_tuple_style_enum::Regular<i16, i32, i64>::Case2(0, 286331153, 286331153)
|
||||
|
||||
// gdb-command:print case3
|
||||
// gdbg-check:$3 = {{RUST$ENUM$DISR = Case3, [...]}, {RUST$ENUM$DISR = Case3, [...]}, {RUST$ENUM$DISR = Case3, __0 = 0, __1 = 6438275382588823897}}
|
||||
// gdbr-check:$3 = generic_tuple_style_enum::Regular::Case3(0, 6438275382588823897)
|
||||
// gdbr-check:$3 = generic_tuple_style_enum::Regular<i16, i32, i64>::Case3(0, 6438275382588823897)
|
||||
|
||||
// gdb-command:print univariant
|
||||
// gdbg-check:$4 = {{__0 = -1}}
|
||||
// gdbr-check:$4 = generic_tuple_style_enum::Univariant<i64>::TheOnlyCase(-1)
|
||||
|
||||
|
||||
@ -41,20 +41,16 @@
|
||||
// lldb-command:run
|
||||
|
||||
// lldb-command:print case1
|
||||
// lldbg-check:[...]$0 = Case1(0, 31868, 31868, 31868, 31868)
|
||||
// lldbr-check:(generic_tuple_style_enum::Regular<u16, u32, u64>::Case1) case1 = { = 0 = 31868 = 31868 = 31868 = 31868 }
|
||||
|
||||
// lldb-command:print case2
|
||||
// lldbg-check:[...]$1 = Case2(0, 286331153, 286331153)
|
||||
// lldbr-check:(generic_tuple_style_enum::Regular<i16, i32, i64>::Case2) case2 = Regular<i16, i32, i64>::Case2 { generic_tuple_style_enum::Regular<i16, i32, i64>::Case1: 0, generic_tuple_style_enum::Regular<i16, i32, i64>::Case2: 286331153, generic_tuple_style_enum::Regular<i16, i32, i64>::Case3: 286331153 }
|
||||
// lldbr-check:(generic_tuple_style_enum::Regular<i16, i32, i64>::Case2) case2 = Regular<i16, i32, i64>::Case2 { Case1: 0, Case2: 286331153, Case3: 286331153 }
|
||||
|
||||
// lldb-command:print case3
|
||||
// lldbg-check:[...]$2 = Case3(0, 6438275382588823897)
|
||||
// lldbr-check:(generic_tuple_style_enum::Regular<i16, i32, i64>::Case3) case3 = Regular<i16, i32, i64>::Case3 { generic_tuple_style_enum::Regular<i16, i32, i64>::Case1: 0, generic_tuple_style_enum::Regular<i16, i32, i64>::Case2: 6438275382588823897 }
|
||||
// lldbr-check:(generic_tuple_style_enum::Regular<i16, i32, i64>::Case3) case3 = Regular<i16, i32, i64>::Case3 { Case1: 0, Case2: 6438275382588823897 }
|
||||
|
||||
// lldb-command:print univariant
|
||||
// lldbg-check:[...]$3 = TheOnlyCase(-1)
|
||||
// lldbr-check:(generic_tuple_style_enum::Univariant<i64>) univariant = { generic_tuple_style_enum::TheOnlyCase = { = -1 } }
|
||||
// lldbr-check:(generic_tuple_style_enum::Univariant<i64>) univariant = { TheOnlyCase = { = -1 } }
|
||||
|
||||
#![feature(omit_gdb_pretty_printer_section)]
|
||||
#![omit_gdb_pretty_printer_section]
|
||||
|
@ -74,7 +74,7 @@
|
||||
// STACK BY REF
|
||||
// lldb-command:print *self
|
||||
// lldbg-check:[...]$0 = TupleStruct(100, -100.5)
|
||||
// lldbr-check:(method_on_tuple_struct::TupleStruct) *self = { = 100 = -100.5 }
|
||||
// lldbr-check:(method_on_tuple_struct::TupleStruct) *self = TupleStruct(100, -100.5)
|
||||
// lldb-command:print arg1
|
||||
// lldbg-check:[...]$1 = -1
|
||||
// lldbr-check:(isize) arg1 = -1
|
||||
@ -86,7 +86,7 @@
|
||||
// STACK BY VAL
|
||||
// lldb-command:print self
|
||||
// lldbg-check:[...]$3 = TupleStruct(100, -100.5)
|
||||
// lldbr-check:(method_on_tuple_struct::TupleStruct) self = { = 100 = -100.5 }
|
||||
// lldbr-check:(method_on_tuple_struct::TupleStruct) self = TupleStruct(100, -100.5)
|
||||
// lldb-command:print arg1
|
||||
// lldbg-check:[...]$4 = -3
|
||||
// lldbr-check:(isize) arg1 = -3
|
||||
@ -98,7 +98,7 @@
|
||||
// OWNED BY REF
|
||||
// lldb-command:print *self
|
||||
// lldbg-check:[...]$6 = TupleStruct(200, -200.5)
|
||||
// lldbr-check:(method_on_tuple_struct::TupleStruct) *self = { = 200 = -200.5 }
|
||||
// lldbr-check:(method_on_tuple_struct::TupleStruct) *self = TupleStruct(200, -200.5)
|
||||
// lldb-command:print arg1
|
||||
// lldbg-check:[...]$7 = -5
|
||||
// lldbr-check:(isize) arg1 = -5
|
||||
@ -110,7 +110,7 @@
|
||||
// OWNED BY VAL
|
||||
// lldb-command:print self
|
||||
// lldbg-check:[...]$9 = TupleStruct(200, -200.5)
|
||||
// lldbr-check:(method_on_tuple_struct::TupleStruct) self = { = 200 = -200.5 }
|
||||
// lldbr-check:(method_on_tuple_struct::TupleStruct) self = TupleStruct(200, -200.5)
|
||||
// lldb-command:print arg1
|
||||
// lldbg-check:[...]$10 = -7
|
||||
// lldbr-check:(isize) arg1 = -7
|
||||
@ -122,7 +122,7 @@
|
||||
// OWNED MOVED
|
||||
// lldb-command:print *self
|
||||
// lldbg-check:[...]$12 = TupleStruct(200, -200.5)
|
||||
// lldbr-check:(method_on_tuple_struct::TupleStruct) *self = { = 200 = -200.5 }
|
||||
// lldbr-check:(method_on_tuple_struct::TupleStruct) *self = TupleStruct(200, -200.5)
|
||||
// lldb-command:print arg1
|
||||
// lldbg-check:[...]$13 = -9
|
||||
// lldbr-check:(isize) arg1 = -9
|
||||
|
@ -14,16 +14,21 @@
|
||||
// ignore-lldb
|
||||
|
||||
|
||||
// Require LLVM with DW_TAG_variant_part and a gdb that can read it.
|
||||
// gdb 8.2.0 crashes on this test case, see
|
||||
// https://sourceware.org/bugzilla/show_bug.cgi?id=23626
|
||||
// This will be fixed in the next release, which will be >= 8.2.1.
|
||||
// min-system-llvm-version: 7.0
|
||||
// min-gdb-version: 8.2.1
|
||||
|
||||
// compile-flags:-g
|
||||
// gdb-command:run
|
||||
|
||||
// gdb-command:print first
|
||||
// gdbg-check:$1 = {<No data fields>}
|
||||
// gdbr-check:$1 = <error reading variable>
|
||||
// gdbr-check:$1 = nil_enum::ANilEnum {<No data fields>}
|
||||
|
||||
// gdb-command:print second
|
||||
// gdbg-check:$2 = {<No data fields>}
|
||||
// gdbr-check:$2 = <error reading variable>
|
||||
// gdbr-check:$2 = nil_enum::AnotherNilEnum {<No data fields>}
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(omit_gdb_pretty_printer_section)]
|
||||
|
@ -10,7 +10,10 @@
|
||||
|
||||
// ignore-tidy-linelength
|
||||
// ignore-lldb
|
||||
// ignore-gdb-version: 7.11.90 - 7.12.9
|
||||
|
||||
// Require LLVM with DW_TAG_variant_part and a gdb that can read it.
|
||||
// min-system-llvm-version: 7.0
|
||||
// min-gdb-version: 8.2
|
||||
|
||||
// compile-flags:-g
|
||||
|
||||
@ -18,66 +21,52 @@
|
||||
|
||||
// gdb-command:print stack_unique.value
|
||||
// gdb-check:$1 = 0
|
||||
// gdbg-command:print stack_unique.next.RUST$ENCODED$ENUM$0$Empty.val->value
|
||||
// gdbr-command:print stack_unique.next.val.value
|
||||
// gdb-check:$2 = 1
|
||||
|
||||
// gdbg-command:print unique_unique->value
|
||||
// gdbr-command:print unique_unique.value
|
||||
// gdb-check:$3 = 2
|
||||
// gdbg-command:print unique_unique->next.RUST$ENCODED$ENUM$0$Empty.val->value
|
||||
// gdbr-command:print unique_unique.next.val.value
|
||||
// gdb-check:$4 = 3
|
||||
|
||||
// gdb-command:print vec_unique[0].value
|
||||
// gdb-check:$5 = 6.5
|
||||
// gdbg-command:print vec_unique[0].next.RUST$ENCODED$ENUM$0$Empty.val->value
|
||||
// gdbr-command:print vec_unique[0].next.val.value
|
||||
// gdb-check:$6 = 7.5
|
||||
|
||||
// gdbg-command:print borrowed_unique->value
|
||||
// gdbr-command:print borrowed_unique.value
|
||||
// gdb-check:$7 = 8.5
|
||||
// gdbg-command:print borrowed_unique->next.RUST$ENCODED$ENUM$0$Empty.val->value
|
||||
// gdbr-command:print borrowed_unique.next.val.value
|
||||
// gdb-check:$8 = 9.5
|
||||
|
||||
// LONG CYCLE
|
||||
// gdb-command:print long_cycle1.value
|
||||
// gdb-check:$9 = 20
|
||||
// gdbg-command:print long_cycle1.next->value
|
||||
// gdbr-command:print long_cycle1.next.value
|
||||
// gdb-check:$10 = 21
|
||||
// gdbg-command:print long_cycle1.next->next->value
|
||||
// gdbr-command:print long_cycle1.next.next.value
|
||||
// gdb-check:$11 = 22
|
||||
// gdbg-command:print long_cycle1.next->next->next->value
|
||||
// gdbr-command:print long_cycle1.next.next.next.value
|
||||
// gdb-check:$12 = 23
|
||||
|
||||
// gdb-command:print long_cycle2.value
|
||||
// gdb-check:$13 = 24
|
||||
// gdbg-command:print long_cycle2.next->value
|
||||
// gdbr-command:print long_cycle2.next.value
|
||||
// gdb-check:$14 = 25
|
||||
// gdbg-command:print long_cycle2.next->next->value
|
||||
// gdbr-command:print long_cycle2.next.next.value
|
||||
// gdb-check:$15 = 26
|
||||
|
||||
// gdb-command:print long_cycle3.value
|
||||
// gdb-check:$16 = 27
|
||||
// gdbg-command:print long_cycle3.next->value
|
||||
// gdbr-command:print long_cycle3.next.value
|
||||
// gdb-check:$17 = 28
|
||||
|
||||
// gdb-command:print long_cycle4.value
|
||||
// gdb-check:$18 = 29.5
|
||||
|
||||
// gdbg-command:print (*****long_cycle_w_anonymous_types).value
|
||||
// gdbr-command:print long_cycle_w_anonymous_types.value
|
||||
// gdb-check:$19 = 30
|
||||
|
||||
// gdbg-command:print (*****((*****long_cycle_w_anonymous_types).next.RUST$ENCODED$ENUM$0$Empty.val)).value
|
||||
// gdbr-command:print long_cycle_w_anonymous_types.next.val.value
|
||||
// gdb-check:$20 = 31
|
||||
|
||||
|
@ -9,8 +9,12 @@
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-tidy-linelength
|
||||
// min-lldb-version: 310
|
||||
// ignore-gdb-version: 7.11.90 - 7.12.9
|
||||
|
||||
// Require LLVM with DW_TAG_variant_part and a gdb and lldb that can
|
||||
// read it.
|
||||
// min-system-llvm-version: 7.0
|
||||
// min-gdb-version: 8.2
|
||||
// rust-lldb
|
||||
|
||||
// compile-flags:-g
|
||||
|
||||
@ -20,19 +24,15 @@
|
||||
// gdb-command:run
|
||||
|
||||
// gdb-command:print case1
|
||||
// gdbg-check:$1 = {{RUST$ENUM$DISR = Case1, a = 0, b = 31868, c = 31868, d = 31868, e = 31868}, {RUST$ENUM$DISR = Case1, [...]}, {RUST$ENUM$DISR = Case1, [...]}}
|
||||
// gdbr-check:$1 = struct_style_enum::Regular::Case1{a: 0, b: 31868, c: 31868, d: 31868, e: 31868}
|
||||
|
||||
// gdb-command:print case2
|
||||
// gdbg-check:$2 = {{RUST$ENUM$DISR = Case2, [...]}, {RUST$ENUM$DISR = Case2, a = 0, b = 286331153, c = 286331153}, {RUST$ENUM$DISR = Case2, [...]}}
|
||||
// gdbr-check:$2 = struct_style_enum::Regular::Case2{a: 0, b: 286331153, c: 286331153}
|
||||
|
||||
// gdb-command:print case3
|
||||
// gdbg-check:$3 = {{RUST$ENUM$DISR = Case3, [...]}, {RUST$ENUM$DISR = Case3, [...]}, {RUST$ENUM$DISR = Case3, a = 0, b = 6438275382588823897}}
|
||||
// gdbr-check:$3 = struct_style_enum::Regular::Case3{a: 0, b: 6438275382588823897}
|
||||
|
||||
// gdb-command:print univariant
|
||||
// gdbg-check:$4 = {{a = -1}}
|
||||
// gdbr-check:$4 = struct_style_enum::Univariant::TheOnlyCase{a: -1}
|
||||
|
||||
|
||||
@ -41,20 +41,16 @@
|
||||
// lldb-command:run
|
||||
|
||||
// lldb-command:print case1
|
||||
// lldbg-check:[...]$0 = Case1 { a: 0, b: 31868, c: 31868, d: 31868, e: 31868 }
|
||||
// lldbr-check:(struct_style_enum::Regular::Case1) case1 = { a = 0 b = 31868 c = 31868 d = 31868 e = 31868 }
|
||||
|
||||
// lldb-command:print case2
|
||||
// lldbg-check:[...]$1 = Case2 { a: 0, b: 286331153, c: 286331153 }
|
||||
// lldbr-check:(struct_style_enum::Regular::Case2) case2 = Case2 { struct_style_enum::Regular::Case1: 0, struct_style_enum::Regular::Case2: 286331153, struct_style_enum::Regular::Case3: 286331153 }
|
||||
// lldbr-check:(struct_style_enum::Regular::Case2) case2 = Case2 { Case1: 0, Case2: 286331153, Case3: 286331153 }
|
||||
|
||||
// lldb-command:print case3
|
||||
// lldbg-check:[...]$2 = Case3 { a: 0, b: 6438275382588823897 }
|
||||
// lldbr-check:(struct_style_enum::Regular::Case3) case3 = Case3 { struct_style_enum::Regular::Case1: 0, struct_style_enum::Regular::Case2: 6438275382588823897 }
|
||||
// lldbr-check:(struct_style_enum::Regular::Case3) case3 = Case3 { Case1: 0, Case2: 6438275382588823897 }
|
||||
|
||||
// lldb-command:print univariant
|
||||
// lldbg-check:[...]$3 = TheOnlyCase { a: -1 }
|
||||
// lldbr-check:(struct_style_enum::Univariant) univariant = Univariant { struct_style_enum::TheOnlyCase: TheOnlyCase { a: -1 } }
|
||||
// lldbr-check:(struct_style_enum::Univariant) univariant = Univariant { TheOnlyCase: TheOnlyCase { a: -1 } }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(omit_gdb_pretty_printer_section)]
|
||||
|
@ -9,8 +9,12 @@
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-tidy-linelength
|
||||
// min-lldb-version: 310
|
||||
// ignore-gdb-version: 7.11.90 - 7.12.9
|
||||
|
||||
// Require LLVM with DW_TAG_variant_part and a gdb and lldb that can
|
||||
// read it.
|
||||
// min-system-llvm-version: 7.0
|
||||
// min-gdb-version: 8.2
|
||||
// rust-lldb
|
||||
|
||||
// compile-flags:-g
|
||||
|
||||
@ -20,19 +24,15 @@
|
||||
// gdb-command:run
|
||||
|
||||
// gdb-command:print case1
|
||||
// gdbg-check:$1 = {{RUST$ENUM$DISR = Case1, __0 = 0, __1 = 31868, __2 = 31868, __3 = 31868, __4 = 31868}, {RUST$ENUM$DISR = Case1, [...]}, {RUST$ENUM$DISR = Case1, [...]}}
|
||||
// gdbr-check:$1 = tuple_style_enum::Regular::Case1(0, 31868, 31868, 31868, 31868)
|
||||
|
||||
// gdb-command:print case2
|
||||
// gdbg-check:$2 = {{RUST$ENUM$DISR = Case2, [...]}, {RUST$ENUM$DISR = Case2, __0 = 0, __1 = 286331153, __2 = 286331153}, {RUST$ENUM$DISR = Case2, [...]}}
|
||||
// gdbr-check:$2 = tuple_style_enum::Regular::Case2(0, 286331153, 286331153)
|
||||
|
||||
// gdb-command:print case3
|
||||
// gdbg-check:$3 = {{RUST$ENUM$DISR = Case3, [...]}, {RUST$ENUM$DISR = Case3, [...]}, {RUST$ENUM$DISR = Case3, __0 = 0, __1 = 6438275382588823897}}
|
||||
// gdbr-check:$3 = tuple_style_enum::Regular::Case3(0, 6438275382588823897)
|
||||
|
||||
// gdb-command:print univariant
|
||||
// gdbg-check:$4 = {{__0 = -1}}
|
||||
// gdbr-check:$4 = tuple_style_enum::Univariant::TheOnlyCase(-1)
|
||||
|
||||
|
||||
@ -41,20 +41,16 @@
|
||||
// lldb-command:run
|
||||
|
||||
// lldb-command:print case1
|
||||
// lldbg-check:[...]$0 = Case1(0, 31868, 31868, 31868, 31868)
|
||||
// lldbr-check:(tuple_style_enum::Regular::Case1) case1 = { = 0 = 31868 = 31868 = 31868 = 31868 }
|
||||
|
||||
// lldb-command:print case2
|
||||
// lldbg-check:[...]$1 = Case2(0, 286331153, 286331153)
|
||||
// lldbr-check:(tuple_style_enum::Regular::Case2) case2 = Case2 { tuple_style_enum::Regular::Case1: 0, tuple_style_enum::Regular::Case2: 286331153, tuple_style_enum::Regular::Case3: 286331153 }
|
||||
// lldbr-check:(tuple_style_enum::Regular::Case2) case2 = Case2 { Case1: 0, Case2: 286331153, Case3: 286331153 }
|
||||
|
||||
// lldb-command:print case3
|
||||
// lldbg-check:[...]$2 = Case3(0, 6438275382588823897)
|
||||
// lldbr-check:(tuple_style_enum::Regular::Case3) case3 = Case3 { tuple_style_enum::Regular::Case1: 0, tuple_style_enum::Regular::Case2: 6438275382588823897 }
|
||||
// lldbr-check:(tuple_style_enum::Regular::Case3) case3 = Case3 { Case1: 0, Case2: 6438275382588823897 }
|
||||
|
||||
// lldb-command:print univariant
|
||||
// lldbg-check:[...]$3 = TheOnlyCase(-1)
|
||||
// lldbr-check:(tuple_style_enum::Univariant) univariant = { tuple_style_enum::TheOnlyCase = { = -1 } }
|
||||
// lldbr-check:(tuple_style_enum::Univariant) univariant = { TheOnlyCase = { = -1 } }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(omit_gdb_pretty_printer_section)]
|
||||
|
@ -9,8 +9,12 @@
|
||||
// except according to those terms.
|
||||
|
||||
// ignore-tidy-linelength
|
||||
// min-lldb-version: 310
|
||||
// ignore-gdb-version: 7.11.90 - 7.12.9
|
||||
|
||||
// Require LLVM with DW_TAG_variant_part and a gdb and lldb that can
|
||||
// read it.
|
||||
// min-system-llvm-version: 7.0
|
||||
// min-gdb-version: 8.2
|
||||
// rust-lldb
|
||||
|
||||
// compile-flags:-g
|
||||
|
||||
@ -19,15 +23,12 @@
|
||||
// gdb-command:run
|
||||
|
||||
// gdb-command:print *the_a
|
||||
// gdbg-check:$1 = {{RUST$ENUM$DISR = TheA, x = 0, y = 8970181431921507452}, {RUST$ENUM$DISR = TheA, [...]}}
|
||||
// gdbr-check:$1 = unique_enum::ABC::TheA{x: 0, y: 8970181431921507452}
|
||||
|
||||
// gdb-command:print *the_b
|
||||
// gdbg-check:$2 = {{RUST$ENUM$DISR = TheB, [...]}, {RUST$ENUM$DISR = TheB, __0 = 0, __1 = 286331153, __2 = 286331153}}
|
||||
// gdbr-check:$2 = unique_enum::ABC::TheB(0, 286331153, 286331153)
|
||||
|
||||
// gdb-command:print *univariant
|
||||
// gdbg-check:$3 = {{__0 = 123234}}
|
||||
// gdbr-check:$3 = unique_enum::Univariant::TheOnlyCase(123234)
|
||||
|
||||
|
||||
@ -36,16 +37,13 @@
|
||||
// lldb-command:run
|
||||
|
||||
// lldb-command:print *the_a
|
||||
// lldbg-check:[...]$0 = TheA { x: 0, y: 8970181431921507452 }
|
||||
// lldbr-check:(unique_enum::ABC::TheA) *the_a = TheA { unique_enum::ABC::TheA: 0, unique_enum::ABC::TheB: 8970181431921507452 }
|
||||
// lldbr-check:(unique_enum::ABC::TheA) *the_a = TheA { TheA: 0, TheB: 8970181431921507452 }
|
||||
|
||||
// lldb-command:print *the_b
|
||||
// lldbg-check:[...]$1 = TheB(0, 286331153, 286331153)
|
||||
// lldbr-check:(unique_enum::ABC::TheB) *the_b = { = 0 = 286331153 = 286331153 }
|
||||
|
||||
// lldb-command:print *univariant
|
||||
// lldbg-check:[...]$2 = TheOnlyCase(123234)
|
||||
// lldbr-check:(unique_enum::Univariant) *univariant = { unique_enum::TheOnlyCase = { = 123234 } }
|
||||
// lldbr-check:(unique_enum::Univariant) *univariant = { TheOnlyCase = { = 123234 } }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(box_syntax)]
|
||||
|
@ -99,7 +99,7 @@
|
||||
|
||||
// lldb-command:print padded_tuple
|
||||
// lldbg-check:[...]$4 = &[(6, 7), (8, 9)]
|
||||
// lldbr-check:(&[(i32, i16)]) padded_tuple = { data_ptr = *0x555555554ff0 length = 2 }
|
||||
// lldbr-check:(&[(i32, i16)]) padded_tuple = { data_ptr = *0x555555555030 length = 2 }
|
||||
|
||||
// lldb-command:print padded_struct
|
||||
// lldbg-check:[...]$5 = &[AStruct { x: 10, y: 11, z: 12 }, AStruct { x: 13, y: 14, z: 15 }]
|
||||
|
Loading…
Reference in New Issue
Block a user