update gdbr tests
gdb will now reliably detect the lanugage as rust even before any code is run.
This commit is contained in:
parent
3087a1f39e
commit
b95b5db163
@ -15,31 +15,38 @@
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:print 'c_style_enum::SINGLE_VARIANT'
|
||||
// gdbg-command:print 'c_style_enum::SINGLE_VARIANT'
|
||||
// gdbr-command:print c_style_enum::SINGLE_VARIANT
|
||||
// gdbg-check:$1 = TheOnlyVariant
|
||||
// gdbr-check:$1 = c_style_enum::SingleVariant::TheOnlyVariant
|
||||
|
||||
// gdb-command:print 'c_style_enum::AUTO_ONE'
|
||||
// gdbg-command:print 'c_style_enum::AUTO_ONE'
|
||||
// gdbr-command:print c_style_enum::AUTO_ONE
|
||||
// gdbg-check:$2 = One
|
||||
// gdbr-check:$2 = c_style_enum::AutoDiscriminant::One
|
||||
|
||||
// gdb-command:print 'c_style_enum::AUTO_TWO'
|
||||
// gdbg-command:print 'c_style_enum::AUTO_TWO'
|
||||
// gdbr-command:print c_style_enum::AUTO_TWO
|
||||
// gdbg-check:$3 = One
|
||||
// gdbr-check:$3 = c_style_enum::AutoDiscriminant::One
|
||||
|
||||
// gdb-command:print 'c_style_enum::AUTO_THREE'
|
||||
// gdbg-command:print 'c_style_enum::AUTO_THREE'
|
||||
// gdbr-command:print c_style_enum::AUTO_THREE
|
||||
// gdbg-check:$4 = One
|
||||
// gdbr-check:$4 = c_style_enum::AutoDiscriminant::One
|
||||
|
||||
// gdb-command:print 'c_style_enum::MANUAL_ONE'
|
||||
// gdbg-command:print 'c_style_enum::MANUAL_ONE'
|
||||
// gdbr-command:print c_style_enum::MANUAL_ONE
|
||||
// gdbg-check:$5 = OneHundred
|
||||
// gdbr-check:$5 = c_style_enum::ManualDiscriminant::OneHundred
|
||||
|
||||
// gdb-command:print 'c_style_enum::MANUAL_TWO'
|
||||
// gdbg-command:print 'c_style_enum::MANUAL_TWO'
|
||||
// gdbr-command:print c_style_enum::MANUAL_TWO
|
||||
// gdbg-check:$6 = OneHundred
|
||||
// gdbr-check:$6 = c_style_enum::ManualDiscriminant::OneHundred
|
||||
|
||||
// gdb-command:print 'c_style_enum::MANUAL_THREE'
|
||||
// gdbg-command:print 'c_style_enum::MANUAL_THREE'
|
||||
// gdbr-command:print c_style_enum::MANUAL_THREE
|
||||
// gdbg-check:$7 = OneHundred
|
||||
// gdbr-check:$7 = c_style_enum::ManualDiscriminant::OneHundred
|
||||
|
||||
|
@ -15,10 +15,14 @@
|
||||
|
||||
// Make sure functions have proper names
|
||||
// gdb-command:info functions
|
||||
// gdb-check:[...]void[...]main([...]);
|
||||
// gdb-check:[...]void[...]some_function([...]);
|
||||
// gdb-check:[...]void[...]some_other_function([...]);
|
||||
// gdb-check:[...]void[...]zzz([...]);
|
||||
// gdbg-check:[...]void[...]main([...]);
|
||||
// gdbr-check:fn limited_debuginfo::main();
|
||||
// gdbg-check:[...]void[...]some_function([...]);
|
||||
// gdbr-check:fn limited_debuginfo::some_function();
|
||||
// gdbg-check:[...]void[...]some_other_function([...]);
|
||||
// gdbr-check:fn limited_debuginfo::some_other_function();
|
||||
// gdbg-check:[...]void[...]zzz([...]);
|
||||
// gdbr-check:fn limited_debuginfo::zzz();
|
||||
|
||||
// gdb-command:run
|
||||
|
||||
|
@ -14,9 +14,6 @@
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// there's no frame yet for gdb to reliably detect the language, set it explicitly
|
||||
// gdbr-command:set language rust
|
||||
|
||||
// gdbg-command:print 'simple_struct::NO_PADDING_16'
|
||||
// gdbr-command:print simple_struct::NO_PADDING_16
|
||||
// gdbg-check:$1 = {x = 1000, y = -1001}
|
||||
|
@ -14,9 +14,6 @@
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// there's no frame yet for gdb to reliably detect the language, set it explicitly
|
||||
// gdbr-command:set language rust
|
||||
|
||||
// gdbg-command:print/d 'simple_tuple::NO_PADDING_8'
|
||||
// gdbr-command:print simple_tuple::NO_PADDING_8
|
||||
// gdbg-check:$1 = {__0 = -50, __1 = 50}
|
||||
|
Loading…
x
Reference in New Issue
Block a user