compiletest: Use //@ prefixes also for debuginfo test directives
So that when we later add support for revisions we can use the same syntax for revisions as elsewhere. This also prevents people from making typos for commands since `src/tools/compiletest/src/directives/directive_names.rs` will catch such typos now. Note that we one FIXME for a non-trivial change for later: ``` // FIXME(148097): Change `// cdb-checksimple_closure` to `//@ cdb-check:simple_closure` ```
This commit is contained in:
parent
c871d09d1c
commit
5b57d02e9f
161 changed files with 6562 additions and 6556 deletions
|
|
@ -18,6 +18,8 @@ pub(crate) const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
|
|||
"build-aux-docs",
|
||||
"build-fail",
|
||||
"build-pass",
|
||||
"cdb-check",
|
||||
"cdb-command",
|
||||
"check-fail",
|
||||
"check-pass",
|
||||
"check-run-results",
|
||||
|
|
@ -39,6 +41,8 @@ pub(crate) const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
|
|||
"filecheck-flags",
|
||||
"forbid-output",
|
||||
"force-host",
|
||||
"gdb-check",
|
||||
"gdb-command",
|
||||
"ignore-16bit",
|
||||
"ignore-32bit",
|
||||
"ignore-64bit",
|
||||
|
|
@ -139,6 +143,8 @@ pub(crate) const KNOWN_DIRECTIVE_NAMES: &[&str] = &[
|
|||
"ignore-x86_64-unknown-linux-gnu",
|
||||
"incremental",
|
||||
"known-bug",
|
||||
"lldb-check",
|
||||
"lldb-command",
|
||||
"llvm-cov-flags",
|
||||
"max-llvm-major-version",
|
||||
"min-cdb-version",
|
||||
|
|
|
|||
|
|
@ -38,7 +38,7 @@ impl DebuggerCommands {
|
|||
continue;
|
||||
}
|
||||
|
||||
let Some(line) = line.trim_start().strip_prefix("//").map(str::trim_start) else {
|
||||
let Some(line) = line.trim_start().strip_prefix("//@").map(str::trim_start) else {
|
||||
continue;
|
||||
};
|
||||
|
||||
|
|
|
|||
|
|
@ -67,9 +67,9 @@ const ANNOTATIONS_TO_IGNORE: &[&str] = &[
|
|||
"//@ compile-flags",
|
||||
"// error-pattern",
|
||||
"//@ error-pattern",
|
||||
"// gdb",
|
||||
"// lldb",
|
||||
"// cdb",
|
||||
"//@ gdb",
|
||||
"//@ lldb",
|
||||
"//@ cdb",
|
||||
"//@ normalize-stderr",
|
||||
];
|
||||
|
||||
|
|
|
|||
|
|
@ -3,70 +3,70 @@
|
|||
//@ ignore-backends: gcc
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print arg
|
||||
// gdb-check:$1 = associated_types::Struct<i32> {b: -1, b1: 0}
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print arg
|
||||
//@ gdb-check:$1 = associated_types::Struct<i32> {b: -1, b1: 0}
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print inferred
|
||||
// gdb-check:$2 = 1
|
||||
// gdb-command:print explicitly
|
||||
// gdb-check:$3 = 1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print inferred
|
||||
//@ gdb-check:$2 = 1
|
||||
//@ gdb-command:print explicitly
|
||||
//@ gdb-check:$3 = 1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print arg
|
||||
// gdb-check:$4 = 2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print arg
|
||||
//@ gdb-check:$4 = 2
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print arg
|
||||
// gdb-check:$5 = (4, 5)
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print arg
|
||||
//@ gdb-check:$5 = (4, 5)
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$6 = 6
|
||||
// gdb-command:print b
|
||||
// gdb-check:$7 = 7
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$6 = 6
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$7 = 7
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$8 = 8
|
||||
// gdb-command:print b
|
||||
// gdb-check:$9 = 9
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$8 = 8
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$9 = 9
|
||||
//@ gdb-command:continue
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v arg
|
||||
// lldb-check:[...] { b = -1 b1 = 0 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v arg
|
||||
//@ lldb-check:[...] { b = -1 b1 = 0 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v inferred
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:v explicitly
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v inferred
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:v explicitly
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v arg
|
||||
// lldb-check:[...] 2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v arg
|
||||
//@ lldb-check:[...] 2
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v arg
|
||||
// lldb-check:[...] { 0 = 4 1 = 5 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v arg
|
||||
//@ lldb-check:[...] { 0 = 4 1 = 5 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 6
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 7
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 6
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 7
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 8
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 9
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 8
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 9
|
||||
//@ lldb-command:continue
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
|
|
@ -8,30 +8,30 @@
|
|||
//@ compile-flags: -g
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// gdb-command: run
|
||||
//@ gdb-command: run
|
||||
// FIXME(#97083): Should we be able to break on initialization of zero-sized types?
|
||||
// FIXME(#97083): Right now the first breakable line is:
|
||||
// gdb-check: let mut c = 27;
|
||||
// gdb-command: next
|
||||
// gdb-check: let d = c = 99;
|
||||
// gdb-command: next
|
||||
//@ gdb-check: let mut c = 27;
|
||||
//@ gdb-command: next
|
||||
//@ gdb-check: let d = c = 99;
|
||||
//@ gdb-command: next
|
||||
// FIXME(#33013): gdb-check: let e = "hi bob";
|
||||
// FIXME(#33013): gdb-command: next
|
||||
// FIXME(#33013): gdb-check: let f = b"hi bob";
|
||||
// FIXME(#33013): gdb-command: next
|
||||
// FIXME(#33013): gdb-check: let g = b'9';
|
||||
// FIXME(#33013): gdb-command: next
|
||||
// gdb-check: let h = ["whatever"; 8];
|
||||
// gdb-command: next
|
||||
// gdb-check: let i = [1,2,3,4];
|
||||
// gdb-command: next
|
||||
// gdb-check: let j = (23, "hi");
|
||||
// gdb-command: next
|
||||
// gdb-check: let k = 2..3;
|
||||
// gdb-command: next
|
||||
// gdb-check: let l = &i[k];
|
||||
// gdb-command: next
|
||||
// gdb-check: let m: *const() = &a;
|
||||
//@ gdb-check: let h = ["whatever"; 8];
|
||||
//@ gdb-command: next
|
||||
//@ gdb-check: let i = [1,2,3,4];
|
||||
//@ gdb-command: next
|
||||
//@ gdb-check: let j = (23, "hi");
|
||||
//@ gdb-command: next
|
||||
//@ gdb-check: let k = 2..3;
|
||||
//@ gdb-command: next
|
||||
//@ gdb-check: let l = &i[k];
|
||||
//@ gdb-command: next
|
||||
//@ gdb-check: let m: *const() = &a;
|
||||
|
||||
fn main () {
|
||||
let a = (); // #break
|
||||
|
|
|
|||
|
|
@ -2,38 +2,38 @@
|
|||
//@ disable-gdb-pretty-printers
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:whatis basic_types_globals_metadata::B
|
||||
// gdb-check:type = bool
|
||||
// gdb-command:whatis basic_types_globals_metadata::I
|
||||
// gdb-check:type = isize
|
||||
// gdb-command:whatis basic_types_globals_metadata::C
|
||||
// gdb-check:type = char
|
||||
// gdb-command:whatis basic_types_globals_metadata::I8
|
||||
// gdb-check:type = i8
|
||||
// gdb-command:whatis basic_types_globals_metadata::I16
|
||||
// gdb-check:type = i16
|
||||
// gdb-command:whatis basic_types_globals_metadata::I32
|
||||
// gdb-check:type = i32
|
||||
// gdb-command:whatis basic_types_globals_metadata::I64
|
||||
// gdb-check:type = i64
|
||||
// gdb-command:whatis basic_types_globals_metadata::U
|
||||
// gdb-check:type = usize
|
||||
// gdb-command:whatis basic_types_globals_metadata::U8
|
||||
// gdb-check:type = u8
|
||||
// gdb-command:whatis basic_types_globals_metadata::U16
|
||||
// gdb-check:type = u16
|
||||
// gdb-command:whatis basic_types_globals_metadata::U32
|
||||
// gdb-check:type = u32
|
||||
// gdb-command:whatis basic_types_globals_metadata::U64
|
||||
// gdb-check:type = u64
|
||||
// gdb-command:whatis basic_types_globals_metadata::F16
|
||||
// gdb-check:type = f16
|
||||
// gdb-command:whatis basic_types_globals_metadata::F32
|
||||
// gdb-check:type = f32
|
||||
// gdb-command:whatis basic_types_globals_metadata::F64
|
||||
// gdb-check:type = f64
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::B
|
||||
//@ gdb-check:type = bool
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::I
|
||||
//@ gdb-check:type = isize
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::C
|
||||
//@ gdb-check:type = char
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::I8
|
||||
//@ gdb-check:type = i8
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::I16
|
||||
//@ gdb-check:type = i16
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::I32
|
||||
//@ gdb-check:type = i32
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::I64
|
||||
//@ gdb-check:type = i64
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::U
|
||||
//@ gdb-check:type = usize
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::U8
|
||||
//@ gdb-check:type = u8
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::U16
|
||||
//@ gdb-check:type = u16
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::U32
|
||||
//@ gdb-check:type = u32
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::U64
|
||||
//@ gdb-check:type = u64
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::F16
|
||||
//@ gdb-check:type = f16
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::F32
|
||||
//@ gdb-check:type = f32
|
||||
//@ gdb-command:whatis basic_types_globals_metadata::F64
|
||||
//@ gdb-check:type = f64
|
||||
//@ gdb-command:continue
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
|
|
@ -7,70 +7,70 @@
|
|||
//@ [lto] no-prefer-dynamic
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-command:v B
|
||||
// lldb-check: ::B = false
|
||||
// lldb-command:v I
|
||||
// lldb-check: ::I = -1
|
||||
// lldb-command:v --format=d C
|
||||
// lldb-check: ::C = 97 U+0x00000061 U'a'
|
||||
// lldb-command:v --format=d I8
|
||||
// lldb-check: ::I8 = 68
|
||||
// lldb-command:v I16
|
||||
// lldb-check: ::I16 = -16
|
||||
// lldb-command:v I32
|
||||
// lldb-check: ::I32 = -32
|
||||
// lldb-command:v I64
|
||||
// lldb-check: ::I64 = -64
|
||||
// lldb-command:v U
|
||||
// lldb-check: ::U = 1
|
||||
// lldb-command:v --format=d U8
|
||||
// lldb-check: ::U8 = 100
|
||||
// lldb-command:v U16
|
||||
// lldb-check: ::U16 = 16
|
||||
// lldb-command:v U32
|
||||
// lldb-check: ::U32 = 32
|
||||
// lldb-command:v U64
|
||||
// lldb-check: ::U64 = 64
|
||||
// lldb-command:v F16
|
||||
// lldb-check: ::F16 = 1.5
|
||||
// lldb-command:v F32
|
||||
// lldb-check: ::F32 = 2.5
|
||||
// lldb-command:v F64
|
||||
// lldb-check: ::F64 = 3.5
|
||||
//@ lldb-command:run
|
||||
//@ lldb-command:v B
|
||||
//@ lldb-check: ::B = false
|
||||
//@ lldb-command:v I
|
||||
//@ lldb-check: ::I = -1
|
||||
//@ lldb-command:v --format=d C
|
||||
//@ lldb-check: ::C = 97 U+0x00000061 U'a'
|
||||
//@ lldb-command:v --format=d I8
|
||||
//@ lldb-check: ::I8 = 68
|
||||
//@ lldb-command:v I16
|
||||
//@ lldb-check: ::I16 = -16
|
||||
//@ lldb-command:v I32
|
||||
//@ lldb-check: ::I32 = -32
|
||||
//@ lldb-command:v I64
|
||||
//@ lldb-check: ::I64 = -64
|
||||
//@ lldb-command:v U
|
||||
//@ lldb-check: ::U = 1
|
||||
//@ lldb-command:v --format=d U8
|
||||
//@ lldb-check: ::U8 = 100
|
||||
//@ lldb-command:v U16
|
||||
//@ lldb-check: ::U16 = 16
|
||||
//@ lldb-command:v U32
|
||||
//@ lldb-check: ::U32 = 32
|
||||
//@ lldb-command:v U64
|
||||
//@ lldb-check: ::U64 = 64
|
||||
//@ lldb-command:v F16
|
||||
//@ lldb-check: ::F16 = 1.5
|
||||
//@ lldb-command:v F32
|
||||
//@ lldb-check: ::F32 = 2.5
|
||||
//@ lldb-command:v F64
|
||||
//@ lldb-check: ::F64 = 3.5
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:print B
|
||||
// gdb-check:$1 = false
|
||||
// gdb-command:print I
|
||||
// gdb-check:$2 = -1
|
||||
// gdb-command:print/d C
|
||||
// gdb-check:$3 = 97
|
||||
// gdb-command:print I8
|
||||
// gdb-check:$4 = 68
|
||||
// gdb-command:print I16
|
||||
// gdb-check:$5 = -16
|
||||
// gdb-command:print I32
|
||||
// gdb-check:$6 = -32
|
||||
// gdb-command:print I64
|
||||
// gdb-check:$7 = -64
|
||||
// gdb-command:print U
|
||||
// gdb-check:$8 = 1
|
||||
// gdb-command:print U8
|
||||
// gdb-check:$9 = 100
|
||||
// gdb-command:print U16
|
||||
// gdb-check:$10 = 16
|
||||
// gdb-command:print U32
|
||||
// gdb-check:$11 = 32
|
||||
// gdb-command:print U64
|
||||
// gdb-check:$12 = 64
|
||||
// gdb-command:print F16
|
||||
// gdb-check:$13 = 1.5
|
||||
// gdb-command:print F32
|
||||
// gdb-check:$14 = 2.5
|
||||
// gdb-command:print F64
|
||||
// gdb-check:$15 = 3.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:print B
|
||||
//@ gdb-check:$1 = false
|
||||
//@ gdb-command:print I
|
||||
//@ gdb-check:$2 = -1
|
||||
//@ gdb-command:print/d C
|
||||
//@ gdb-check:$3 = 97
|
||||
//@ gdb-command:print I8
|
||||
//@ gdb-check:$4 = 68
|
||||
//@ gdb-command:print I16
|
||||
//@ gdb-check:$5 = -16
|
||||
//@ gdb-command:print I32
|
||||
//@ gdb-check:$6 = -32
|
||||
//@ gdb-command:print I64
|
||||
//@ gdb-check:$7 = -64
|
||||
//@ gdb-command:print U
|
||||
//@ gdb-check:$8 = 1
|
||||
//@ gdb-command:print U8
|
||||
//@ gdb-check:$9 = 100
|
||||
//@ gdb-command:print U16
|
||||
//@ gdb-check:$10 = 16
|
||||
//@ gdb-command:print U32
|
||||
//@ gdb-check:$11 = 32
|
||||
//@ gdb-command:print U64
|
||||
//@ gdb-check:$12 = 64
|
||||
//@ gdb-command:print F16
|
||||
//@ gdb-check:$13 = 1.5
|
||||
//@ gdb-command:print F32
|
||||
//@ gdb-check:$14 = 2.5
|
||||
//@ gdb-command:print F64
|
||||
//@ gdb-check:$15 = 3.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(f16)]
|
||||
|
|
|
|||
|
|
@ -2,57 +2,56 @@
|
|||
//@ disable-gdb-pretty-printers
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:whatis unit
|
||||
// gdb-check:type = ()
|
||||
// gdb-command:whatis b
|
||||
// gdb-check:type = bool
|
||||
// gdb-command:whatis i
|
||||
// gdb-check:type = isize
|
||||
// gdb-command:whatis c
|
||||
// gdb-check:type = char
|
||||
// gdb-command:whatis i8
|
||||
// gdb-check:type = i8
|
||||
// gdb-command:whatis i16
|
||||
// gdb-check:type = i16
|
||||
// gdb-command:whatis i32
|
||||
// gdb-check:type = i32
|
||||
// gdb-command:whatis i64
|
||||
// gdb-check:type = i64
|
||||
// gdb-command:whatis u
|
||||
// gdb-check:type = usize
|
||||
// gdb-command:whatis u8
|
||||
// gdb-check:type = u8
|
||||
// gdb-command:whatis u16
|
||||
// gdb-check:type = u16
|
||||
// gdb-command:whatis u32
|
||||
// gdb-check:type = u32
|
||||
// gdb-command:whatis u64
|
||||
// gdb-check:type = u64
|
||||
// gdb-command:whatis f16
|
||||
// gdb-check:type = f16
|
||||
// gdb-command:whatis f32
|
||||
// gdb-check:type = f32
|
||||
// gdb-command:whatis f64
|
||||
// gdb-check:type = f64
|
||||
// gdb-command:whatis fnptr
|
||||
// gdb-check:type = *mut fn ()
|
||||
// gdb-command:info functions _yyy
|
||||
// gdb-check:static fn basic_types_metadata::_yyy();
|
||||
// gdb-command:ptype closure_0
|
||||
// gdb-check: type = struct basic_types_metadata::main::{closure_env#0}
|
||||
// gdb-command:ptype closure_1
|
||||
// gdb-check: type = struct basic_types_metadata::main::{closure_env#1} {
|
||||
// gdb-check: *mut bool,
|
||||
// gdb-check: }
|
||||
// gdb-command:ptype closure_2
|
||||
// gdb-check: type = struct basic_types_metadata::main::{closure_env#2} {
|
||||
// gdb-check: *mut bool,
|
||||
// gdb-check: *mut isize,
|
||||
// gdb-check: }
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:whatis unit
|
||||
//@ gdb-check:type = ()
|
||||
//@ gdb-command:whatis b
|
||||
//@ gdb-check:type = bool
|
||||
//@ gdb-command:whatis i
|
||||
//@ gdb-check:type = isize
|
||||
//@ gdb-command:whatis c
|
||||
//@ gdb-check:type = char
|
||||
//@ gdb-command:whatis i8
|
||||
//@ gdb-check:type = i8
|
||||
//@ gdb-command:whatis i16
|
||||
//@ gdb-check:type = i16
|
||||
//@ gdb-command:whatis i32
|
||||
//@ gdb-check:type = i32
|
||||
//@ gdb-command:whatis i64
|
||||
//@ gdb-check:type = i64
|
||||
//@ gdb-command:whatis u
|
||||
//@ gdb-check:type = usize
|
||||
//@ gdb-command:whatis u8
|
||||
//@ gdb-check:type = u8
|
||||
//@ gdb-command:whatis u16
|
||||
//@ gdb-check:type = u16
|
||||
//@ gdb-command:whatis u32
|
||||
//@ gdb-check:type = u32
|
||||
//@ gdb-command:whatis u64
|
||||
//@ gdb-check:type = u64
|
||||
//@ gdb-command:whatis f16
|
||||
//@ gdb-check:type = f16
|
||||
//@ gdb-command:whatis f32
|
||||
//@ gdb-check:type = f32
|
||||
//@ gdb-command:whatis f64
|
||||
//@ gdb-check:type = f64
|
||||
//@ gdb-command:whatis fnptr
|
||||
//@ gdb-check:type = *mut fn ()
|
||||
//@ gdb-command:info functions _yyy
|
||||
//@ gdb-check:static fn basic_types_metadata::_yyy();
|
||||
//@ gdb-command:ptype closure_0
|
||||
//@ gdb-check: type = struct basic_types_metadata::main::{closure_env#0}
|
||||
//@ gdb-command:ptype closure_1
|
||||
//@ gdb-check: type = struct basic_types_metadata::main::{closure_env#1} {
|
||||
//@ gdb-check: *mut bool,
|
||||
//@ gdb-check: }
|
||||
//@ gdb-command:ptype closure_2
|
||||
//@ gdb-check: type = struct basic_types_metadata::main::{closure_env#2} {
|
||||
//@ gdb-check: *mut bool,
|
||||
//@ gdb-check: *mut isize,
|
||||
//@ gdb-check: }
|
||||
|
||||
//
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:continue
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(f16)]
|
||||
|
|
|
|||
|
|
@ -8,72 +8,72 @@
|
|||
//@ disable-gdb-pretty-printers
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// Check initializers
|
||||
// gdb-command:print B
|
||||
// gdb-check:$1 = false
|
||||
// gdb-command:print I
|
||||
// gdb-check:$2 = -1
|
||||
// gdb-command:print C
|
||||
// gdb-check:$3 = 97 'a'
|
||||
// gdb-command:print I8
|
||||
// gdb-check:$4 = 68
|
||||
// gdb-command:print I16
|
||||
// gdb-check:$5 = -16
|
||||
// gdb-command:print I32
|
||||
// gdb-check:$6 = -32
|
||||
// gdb-command:print I64
|
||||
// gdb-check:$7 = -64
|
||||
// gdb-command:print U
|
||||
// gdb-check:$8 = 1
|
||||
// gdb-command:print U8
|
||||
// gdb-check:$9 = 100
|
||||
// gdb-command:print U16
|
||||
// gdb-check:$10 = 16
|
||||
// gdb-command:print U32
|
||||
// gdb-check:$11 = 32
|
||||
// gdb-command:print U64
|
||||
// gdb-check:$12 = 64
|
||||
// gdb-command:print F16
|
||||
// gdb-check:$13 = 1.5
|
||||
// gdb-command:print F32
|
||||
// gdb-check:$14 = 2.5
|
||||
// gdb-command:print F64
|
||||
// gdb-check:$15 = 3.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print B
|
||||
//@ gdb-check:$1 = false
|
||||
//@ gdb-command:print I
|
||||
//@ gdb-check:$2 = -1
|
||||
//@ gdb-command:print C
|
||||
//@ gdb-check:$3 = 97 'a'
|
||||
//@ gdb-command:print I8
|
||||
//@ gdb-check:$4 = 68
|
||||
//@ gdb-command:print I16
|
||||
//@ gdb-check:$5 = -16
|
||||
//@ gdb-command:print I32
|
||||
//@ gdb-check:$6 = -32
|
||||
//@ gdb-command:print I64
|
||||
//@ gdb-check:$7 = -64
|
||||
//@ gdb-command:print U
|
||||
//@ gdb-check:$8 = 1
|
||||
//@ gdb-command:print U8
|
||||
//@ gdb-check:$9 = 100
|
||||
//@ gdb-command:print U16
|
||||
//@ gdb-check:$10 = 16
|
||||
//@ gdb-command:print U32
|
||||
//@ gdb-check:$11 = 32
|
||||
//@ gdb-command:print U64
|
||||
//@ gdb-check:$12 = 64
|
||||
//@ gdb-command:print F16
|
||||
//@ gdb-check:$13 = 1.5
|
||||
//@ gdb-command:print F32
|
||||
//@ gdb-check:$14 = 2.5
|
||||
//@ gdb-command:print F64
|
||||
//@ gdb-check:$15 = 3.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// Check new values
|
||||
// gdb-command:print B
|
||||
// gdb-check:$16 = true
|
||||
// gdb-command:print I
|
||||
// gdb-check:$17 = 2
|
||||
// gdb-command:print C
|
||||
// gdb-check:$18 = 102 'f'
|
||||
// gdb-command:print/d I8
|
||||
// gdb-check:$19 = 78
|
||||
// gdb-command:print I16
|
||||
// gdb-check:$20 = -26
|
||||
// gdb-command:print I32
|
||||
// gdb-check:$21 = -12
|
||||
// gdb-command:print I64
|
||||
// gdb-check:$22 = -54
|
||||
// gdb-command:print U
|
||||
// gdb-check:$23 = 5
|
||||
// gdb-command:print/d U8
|
||||
// gdb-check:$24 = 20
|
||||
// gdb-command:print U16
|
||||
// gdb-check:$25 = 32
|
||||
// gdb-command:print U32
|
||||
// gdb-check:$26 = 16
|
||||
// gdb-command:print U64
|
||||
// gdb-check:$27 = 128
|
||||
// gdb-command:print F16
|
||||
// gdb-check:$28 = 2.25
|
||||
// gdb-command:print F32
|
||||
// gdb-check:$29 = 5.75
|
||||
// gdb-command:print F64
|
||||
// gdb-check:$30 = 9.25
|
||||
//@ gdb-command:print B
|
||||
//@ gdb-check:$16 = true
|
||||
//@ gdb-command:print I
|
||||
//@ gdb-check:$17 = 2
|
||||
//@ gdb-command:print C
|
||||
//@ gdb-check:$18 = 102 'f'
|
||||
//@ gdb-command:print/d I8
|
||||
//@ gdb-check:$19 = 78
|
||||
//@ gdb-command:print I16
|
||||
//@ gdb-check:$20 = -26
|
||||
//@ gdb-command:print I32
|
||||
//@ gdb-check:$21 = -12
|
||||
//@ gdb-command:print I64
|
||||
//@ gdb-check:$22 = -54
|
||||
//@ gdb-command:print U
|
||||
//@ gdb-check:$23 = 5
|
||||
//@ gdb-command:print/d U8
|
||||
//@ gdb-check:$24 = 20
|
||||
//@ gdb-command:print U16
|
||||
//@ gdb-check:$25 = 32
|
||||
//@ gdb-command:print U32
|
||||
//@ gdb-check:$26 = 16
|
||||
//@ gdb-command:print U64
|
||||
//@ gdb-check:$27 = 128
|
||||
//@ gdb-command:print F16
|
||||
//@ gdb-check:$28 = 2.25
|
||||
//@ gdb-command:print F32
|
||||
//@ gdb-check:$29 = 5.75
|
||||
//@ gdb-command:print F64
|
||||
//@ gdb-check:$30 = 9.25
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(f16)]
|
||||
|
|
|
|||
|
|
@ -10,108 +10,108 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:print b
|
||||
// gdb-check:$1 = false
|
||||
// gdb-command:print i
|
||||
// gdb-check:$2 = -1
|
||||
// gdb-command:print c
|
||||
// gdb-check:$3 = 97 'a'
|
||||
// gdb-command:print/d i8
|
||||
// gdb-check:$4 = 68
|
||||
// gdb-command:print i16
|
||||
// gdb-check:$5 = -16
|
||||
// gdb-command:print i32
|
||||
// gdb-check:$6 = -32
|
||||
// gdb-command:print i64
|
||||
// gdb-check:$7 = -64
|
||||
// gdb-command:print u
|
||||
// gdb-check:$8 = 1
|
||||
// gdb-command:print/d u8
|
||||
// gdb-check:$9 = 100
|
||||
// gdb-command:print u16
|
||||
// gdb-check:$10 = 16
|
||||
// gdb-command:print u32
|
||||
// gdb-check:$11 = 32
|
||||
// gdb-command:print u64
|
||||
// gdb-check:$12 = 64
|
||||
// gdb-command:print f16
|
||||
// gdb-check:$13 = 1.5
|
||||
// gdb-command:print f32
|
||||
// gdb-check:$14 = 2.5
|
||||
// gdb-command:print f64
|
||||
// gdb-check:$15 = 3.5
|
||||
// gdb-command:print s
|
||||
// gdb-check:$16 = "Hello, World!"
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$1 = false
|
||||
//@ gdb-command:print i
|
||||
//@ gdb-check:$2 = -1
|
||||
//@ gdb-command:print c
|
||||
//@ gdb-check:$3 = 97 'a'
|
||||
//@ gdb-command:print/d i8
|
||||
//@ gdb-check:$4 = 68
|
||||
//@ gdb-command:print i16
|
||||
//@ gdb-check:$5 = -16
|
||||
//@ gdb-command:print i32
|
||||
//@ gdb-check:$6 = -32
|
||||
//@ gdb-command:print i64
|
||||
//@ gdb-check:$7 = -64
|
||||
//@ gdb-command:print u
|
||||
//@ gdb-check:$8 = 1
|
||||
//@ gdb-command:print/d u8
|
||||
//@ gdb-check:$9 = 100
|
||||
//@ gdb-command:print u16
|
||||
//@ gdb-check:$10 = 16
|
||||
//@ gdb-command:print u32
|
||||
//@ gdb-check:$11 = 32
|
||||
//@ gdb-command:print u64
|
||||
//@ gdb-check:$12 = 64
|
||||
//@ gdb-command:print f16
|
||||
//@ gdb-check:$13 = 1.5
|
||||
//@ gdb-command:print f32
|
||||
//@ gdb-check:$14 = 2.5
|
||||
//@ gdb-command:print f64
|
||||
//@ gdb-check:$15 = 3.5
|
||||
//@ gdb-command:print s
|
||||
//@ gdb-check:$16 = "Hello, World!"
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] false
|
||||
// lldb-command:v i
|
||||
// lldb-check:[...] -1
|
||||
//@ lldb-command:run
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] false
|
||||
//@ lldb-command:v i
|
||||
//@ lldb-check:[...] -1
|
||||
|
||||
// lldb-command:v i8
|
||||
// lldb-check:[...] 'D'
|
||||
// lldb-command:v i16
|
||||
// lldb-check:[...] -16
|
||||
// lldb-command:v i32
|
||||
// lldb-check:[...] -32
|
||||
// lldb-command:v i64
|
||||
// lldb-check:[...] -64
|
||||
// lldb-command:v u
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:v u8
|
||||
// lldb-check:[...] 'd'
|
||||
// lldb-command:v u16
|
||||
// lldb-check:[...] 16
|
||||
// lldb-command:v u32
|
||||
// lldb-check:[...] 32
|
||||
// lldb-command:v u64
|
||||
// lldb-check:[...] 64
|
||||
// lldb-command:v f32
|
||||
// lldb-check:[...] 2.5
|
||||
// lldb-command:v f64
|
||||
// lldb-check:[...] 3.5
|
||||
//@ lldb-command:v i8
|
||||
//@ lldb-check:[...] 'D'
|
||||
//@ lldb-command:v i16
|
||||
//@ lldb-check:[...] -16
|
||||
//@ lldb-command:v i32
|
||||
//@ lldb-check:[...] -32
|
||||
//@ lldb-command:v i64
|
||||
//@ lldb-check:[...] -64
|
||||
//@ lldb-command:v u
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:v u8
|
||||
//@ lldb-check:[...] 'd'
|
||||
//@ lldb-command:v u16
|
||||
//@ lldb-check:[...] 16
|
||||
//@ lldb-command:v u32
|
||||
//@ lldb-check:[...] 32
|
||||
//@ lldb-command:v u64
|
||||
//@ lldb-check:[...] 64
|
||||
//@ lldb-command:v f32
|
||||
//@ lldb-check:[...] 2.5
|
||||
//@ lldb-command:v f64
|
||||
//@ lldb-check:[...] 3.5
|
||||
|
||||
// === CDB TESTS ===================================================================================
|
||||
|
||||
// cdb-command:g
|
||||
// cdb-command:dx b
|
||||
// cdb-check:b : false [Type: bool]
|
||||
// cdb-command:dx i
|
||||
// cdb-check:i : -1 [Type: [...]]
|
||||
// cdb-command:dx c
|
||||
// cdb-check:c : 0x61 'a' [Type: char32_t]
|
||||
// cdb-command:dx i8
|
||||
// cdb-check:i8 : 68 [Type: char]
|
||||
// cdb-command:dx i16
|
||||
// cdb-check:i16 : -16 [Type: short]
|
||||
// cdb-command:dx i32
|
||||
// cdb-check:i32 : -32 [Type: int]
|
||||
// cdb-command:dx i64
|
||||
// cdb-check:i64 : -64 [Type: __int64]
|
||||
// cdb-command:dx u
|
||||
// cdb-check:u : 0x1 [Type: [...]]
|
||||
// cdb-command:dx u8
|
||||
// cdb-check:u8 : 0x64 [Type: unsigned char]
|
||||
// cdb-command:dx u16
|
||||
// cdb-check:u16 : 0x10 [Type: unsigned short]
|
||||
// cdb-command:dx u32
|
||||
// cdb-check:u32 : 0x20 [Type: unsigned int]
|
||||
// cdb-command:dx u64
|
||||
// cdb-check:u64 : 0x40 [Type: unsigned __int64]
|
||||
// cdb-command:dx f16
|
||||
// cdb-check:f16 : 1.500000 [Type: f16]
|
||||
// cdb-command:dx f32
|
||||
// cdb-check:f32 : 2.500000 [Type: float]
|
||||
// cdb-command:dx f64
|
||||
// cdb-check:f64 : 3.500000 [Type: double]
|
||||
// cdb-command:.enable_unicode 1
|
||||
//@ cdb-command:g
|
||||
//@ cdb-command:dx b
|
||||
//@ cdb-check:b : false [Type: bool]
|
||||
//@ cdb-command:dx i
|
||||
//@ cdb-check:i : -1 [Type: [...]]
|
||||
//@ cdb-command:dx c
|
||||
//@ cdb-check:c : 0x61 'a' [Type: char32_t]
|
||||
//@ cdb-command:dx i8
|
||||
//@ cdb-check:i8 : 68 [Type: char]
|
||||
//@ cdb-command:dx i16
|
||||
//@ cdb-check:i16 : -16 [Type: short]
|
||||
//@ cdb-command:dx i32
|
||||
//@ cdb-check:i32 : -32 [Type: int]
|
||||
//@ cdb-command:dx i64
|
||||
//@ cdb-check:i64 : -64 [Type: __int64]
|
||||
//@ cdb-command:dx u
|
||||
//@ cdb-check:u : 0x1 [Type: [...]]
|
||||
//@ cdb-command:dx u8
|
||||
//@ cdb-check:u8 : 0x64 [Type: unsigned char]
|
||||
//@ cdb-command:dx u16
|
||||
//@ cdb-check:u16 : 0x10 [Type: unsigned short]
|
||||
//@ cdb-command:dx u32
|
||||
//@ cdb-check:u32 : 0x20 [Type: unsigned int]
|
||||
//@ cdb-command:dx u64
|
||||
//@ cdb-check:u64 : 0x40 [Type: unsigned __int64]
|
||||
//@ cdb-command:dx f16
|
||||
//@ cdb-check:f16 : 1.500000 [Type: f16]
|
||||
//@ cdb-command:dx f32
|
||||
//@ cdb-check:f32 : 2.500000 [Type: float]
|
||||
//@ cdb-command:dx f64
|
||||
//@ cdb-check:f64 : 3.500000 [Type: double]
|
||||
//@ cdb-command:.enable_unicode 1
|
||||
// FIXME(#88840): The latest version of the Windows SDK broke the visualizer for str.
|
||||
// cdb-command:dx s
|
||||
// cdb-check:s : [...] [Type: ref$<str$>]
|
||||
//@ cdb-command:dx s
|
||||
//@ cdb-check:s : [...] [Type: ref$<str$>]
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(f16)]
|
||||
|
|
|
|||
|
|
@ -4,98 +4,98 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:print *bool_ref
|
||||
// gdb-check:$1 = true
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:print *bool_ref
|
||||
//@ gdb-check:$1 = true
|
||||
|
||||
// gdb-command:print *int_ref
|
||||
// gdb-check:$2 = -1
|
||||
//@ gdb-command:print *int_ref
|
||||
//@ gdb-check:$2 = -1
|
||||
|
||||
// gdb-command:print/d *char_ref
|
||||
// gdb-check:$3 = 97
|
||||
//@ gdb-command:print/d *char_ref
|
||||
//@ gdb-check:$3 = 97
|
||||
|
||||
// gdb-command:print *i8_ref
|
||||
// gdb-check:$4 = 68
|
||||
//@ gdb-command:print *i8_ref
|
||||
//@ gdb-check:$4 = 68
|
||||
|
||||
// gdb-command:print *i16_ref
|
||||
// gdb-check:$5 = -16
|
||||
//@ gdb-command:print *i16_ref
|
||||
//@ gdb-check:$5 = -16
|
||||
|
||||
// gdb-command:print *i32_ref
|
||||
// gdb-check:$6 = -32
|
||||
//@ gdb-command:print *i32_ref
|
||||
//@ gdb-check:$6 = -32
|
||||
|
||||
// gdb-command:print *i64_ref
|
||||
// gdb-check:$7 = -64
|
||||
//@ gdb-command:print *i64_ref
|
||||
//@ gdb-check:$7 = -64
|
||||
|
||||
// gdb-command:print *uint_ref
|
||||
// gdb-check:$8 = 1
|
||||
//@ gdb-command:print *uint_ref
|
||||
//@ gdb-check:$8 = 1
|
||||
|
||||
// gdb-command:print *u8_ref
|
||||
// gdb-check:$9 = 100
|
||||
//@ gdb-command:print *u8_ref
|
||||
//@ gdb-check:$9 = 100
|
||||
|
||||
// gdb-command:print *u16_ref
|
||||
// gdb-check:$10 = 16
|
||||
//@ gdb-command:print *u16_ref
|
||||
//@ gdb-check:$10 = 16
|
||||
|
||||
// gdb-command:print *u32_ref
|
||||
// gdb-check:$11 = 32
|
||||
//@ gdb-command:print *u32_ref
|
||||
//@ gdb-check:$11 = 32
|
||||
|
||||
// gdb-command:print *u64_ref
|
||||
// gdb-check:$12 = 64
|
||||
//@ gdb-command:print *u64_ref
|
||||
//@ gdb-check:$12 = 64
|
||||
|
||||
// gdb-command:print *f16_ref
|
||||
// gdb-check:$13 = 1.5
|
||||
//@ gdb-command:print *f16_ref
|
||||
//@ gdb-check:$13 = 1.5
|
||||
|
||||
// gdb-command:print *f32_ref
|
||||
// gdb-check:$14 = 2.5
|
||||
//@ gdb-command:print *f32_ref
|
||||
//@ gdb-check:$14 = 2.5
|
||||
|
||||
// gdb-command:print *f64_ref
|
||||
// gdb-check:$15 = 3.5
|
||||
//@ gdb-command:print *f64_ref
|
||||
//@ gdb-check:$15 = 3.5
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-command:v *bool_ref
|
||||
// lldb-check:[...] true
|
||||
//@ lldb-command:run
|
||||
//@ lldb-command:v *bool_ref
|
||||
//@ lldb-check:[...] true
|
||||
|
||||
// lldb-command:v *int_ref
|
||||
// lldb-check:[...] -1
|
||||
//@ lldb-command:v *int_ref
|
||||
//@ lldb-check:[...] -1
|
||||
|
||||
|
||||
// lldb-command:v *i8_ref
|
||||
// lldb-check:[...] 'D'
|
||||
//@ lldb-command:v *i8_ref
|
||||
//@ lldb-check:[...] 'D'
|
||||
|
||||
// lldb-command:v *i16_ref
|
||||
// lldb-check:[...] -16
|
||||
//@ lldb-command:v *i16_ref
|
||||
//@ lldb-check:[...] -16
|
||||
|
||||
// lldb-command:v *i32_ref
|
||||
// lldb-check:[...] -32
|
||||
//@ lldb-command:v *i32_ref
|
||||
//@ lldb-check:[...] -32
|
||||
|
||||
// lldb-command:v *i64_ref
|
||||
// lldb-check:[...] -64
|
||||
//@ lldb-command:v *i64_ref
|
||||
//@ lldb-check:[...] -64
|
||||
|
||||
// lldb-command:v *uint_ref
|
||||
// lldb-check:[...] 1
|
||||
//@ lldb-command:v *uint_ref
|
||||
//@ lldb-check:[...] 1
|
||||
|
||||
// lldb-command:v *u8_ref
|
||||
// lldb-check:[...] 'd'
|
||||
//@ lldb-command:v *u8_ref
|
||||
//@ lldb-check:[...] 'd'
|
||||
|
||||
// lldb-command:v *u16_ref
|
||||
// lldb-check:[...] 16
|
||||
//@ lldb-command:v *u16_ref
|
||||
//@ lldb-check:[...] 16
|
||||
|
||||
// lldb-command:v *u32_ref
|
||||
// lldb-check:[...] 32
|
||||
//@ lldb-command:v *u32_ref
|
||||
//@ lldb-check:[...] 32
|
||||
|
||||
// lldb-command:v *u64_ref
|
||||
// lldb-check:[...] 64
|
||||
//@ lldb-command:v *u64_ref
|
||||
//@ lldb-check:[...] 64
|
||||
|
||||
// lldb-command:v *f16_ref
|
||||
// lldb-check:[...] 1.5
|
||||
//@ lldb-command:v *f16_ref
|
||||
//@ lldb-check:[...] 1.5
|
||||
|
||||
// lldb-command:v *f32_ref
|
||||
// lldb-check:[...] 2.5
|
||||
//@ lldb-command:v *f32_ref
|
||||
//@ lldb-check:[...] 2.5
|
||||
|
||||
// lldb-command:v *f64_ref
|
||||
// lldb-check:[...] 3.5
|
||||
//@ lldb-command:v *f64_ref
|
||||
//@ lldb-check:[...] 3.5
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(f16)]
|
||||
|
|
|
|||
|
|
@ -4,30 +4,30 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print *the_a_ref
|
||||
// gdb-check:$1 = borrowed_c_style_enum::ABC::TheA
|
||||
//@ gdb-command:print *the_a_ref
|
||||
//@ gdb-check:$1 = borrowed_c_style_enum::ABC::TheA
|
||||
|
||||
// gdb-command:print *the_b_ref
|
||||
// gdb-check:$2 = borrowed_c_style_enum::ABC::TheB
|
||||
//@ gdb-command:print *the_b_ref
|
||||
//@ gdb-check:$2 = borrowed_c_style_enum::ABC::TheB
|
||||
|
||||
// gdb-command:print *the_c_ref
|
||||
// gdb-check:$3 = borrowed_c_style_enum::ABC::TheC
|
||||
//@ gdb-command:print *the_c_ref
|
||||
//@ gdb-check:$3 = borrowed_c_style_enum::ABC::TheC
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v *the_a_ref
|
||||
// lldb-check:[...] TheA
|
||||
//@ lldb-command:v *the_a_ref
|
||||
//@ lldb-check:[...] TheA
|
||||
|
||||
// lldb-command:v *the_b_ref
|
||||
// lldb-check:[...] TheB
|
||||
//@ lldb-command:v *the_b_ref
|
||||
//@ lldb-check:[...] TheB
|
||||
|
||||
// lldb-command:v *the_c_ref
|
||||
// lldb-check:[...] TheC
|
||||
//@ lldb-command:v *the_c_ref
|
||||
//@ lldb-check:[...] TheC
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -6,28 +6,28 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print *the_a_ref
|
||||
// gdb-check:$1 = borrowed_enum::ABC::TheA{x: 0, y: 8970181431921507452}
|
||||
//@ gdb-command:print *the_a_ref
|
||||
//@ gdb-check:$1 = borrowed_enum::ABC::TheA{x: 0, y: 8970181431921507452}
|
||||
|
||||
// gdb-command:print *the_b_ref
|
||||
// gdb-check:$2 = borrowed_enum::ABC::TheB(0, 286331153, 286331153)
|
||||
//@ gdb-command:print *the_b_ref
|
||||
//@ gdb-check:$2 = borrowed_enum::ABC::TheB(0, 286331153, 286331153)
|
||||
|
||||
// gdb-command:print *univariant_ref
|
||||
// gdb-check:$3 = borrowed_enum::Univariant::TheOnlyCase(4820353753753434)
|
||||
//@ gdb-command:print *univariant_ref
|
||||
//@ gdb-check:$3 = borrowed_enum::Univariant::TheOnlyCase(4820353753753434)
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v *the_a_ref
|
||||
// lldb-check:(borrowed_enum::ABC) *the_a_ref = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
|
||||
// lldb-command:v *the_b_ref
|
||||
// lldb-check:(borrowed_enum::ABC) *the_b_ref = TheB(0, 286331153, 286331153) { 0 = 0 1 = 286331153 2 = 286331153 }
|
||||
// lldb-command:v *univariant_ref
|
||||
// lldb-check:(borrowed_enum::Univariant) *univariant_ref = TheOnlyCase(4820353753753434) { 0 = 4820353753753434 }
|
||||
//@ lldb-command:v *the_a_ref
|
||||
//@ lldb-check:(borrowed_enum::ABC) *the_a_ref = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
|
||||
//@ lldb-command:v *the_b_ref
|
||||
//@ lldb-check:(borrowed_enum::ABC) *the_b_ref = TheB(0, 286331153, 286331153) { 0 = 0 1 = 286331153 2 = 286331153 }
|
||||
//@ lldb-command:v *univariant_ref
|
||||
//@ lldb-check:(borrowed_enum::Univariant) *univariant_ref = TheOnlyCase(4820353753753434) { 0 = 4820353753753434 }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -4,54 +4,54 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print *stack_val_ref
|
||||
// gdb-check:$1 = borrowed_struct::SomeStruct {x: 10, y: 23.5}
|
||||
//@ gdb-command:print *stack_val_ref
|
||||
//@ gdb-check:$1 = borrowed_struct::SomeStruct {x: 10, y: 23.5}
|
||||
|
||||
// gdb-command:print *stack_val_interior_ref_1
|
||||
// gdb-check:$2 = 10
|
||||
//@ gdb-command:print *stack_val_interior_ref_1
|
||||
//@ gdb-check:$2 = 10
|
||||
|
||||
// gdb-command:print *stack_val_interior_ref_2
|
||||
// gdb-check:$3 = 23.5
|
||||
//@ gdb-command:print *stack_val_interior_ref_2
|
||||
//@ gdb-check:$3 = 23.5
|
||||
|
||||
// gdb-command:print *ref_to_unnamed
|
||||
// gdb-check:$4 = borrowed_struct::SomeStruct {x: 11, y: 24.5}
|
||||
//@ gdb-command:print *ref_to_unnamed
|
||||
//@ gdb-check:$4 = borrowed_struct::SomeStruct {x: 11, y: 24.5}
|
||||
|
||||
// gdb-command:print *unique_val_ref
|
||||
// gdb-check:$5 = borrowed_struct::SomeStruct {x: 13, y: 26.5}
|
||||
//@ gdb-command:print *unique_val_ref
|
||||
//@ gdb-check:$5 = borrowed_struct::SomeStruct {x: 13, y: 26.5}
|
||||
|
||||
// gdb-command:print *unique_val_interior_ref_1
|
||||
// gdb-check:$6 = 13
|
||||
//@ gdb-command:print *unique_val_interior_ref_1
|
||||
//@ gdb-check:$6 = 13
|
||||
|
||||
// gdb-command:print *unique_val_interior_ref_2
|
||||
// gdb-check:$7 = 26.5
|
||||
//@ gdb-command:print *unique_val_interior_ref_2
|
||||
//@ gdb-check:$7 = 26.5
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v *stack_val_ref
|
||||
// lldb-check:[...] { x = 10 y = 23.5 }
|
||||
//@ lldb-command:v *stack_val_ref
|
||||
//@ lldb-check:[...] { x = 10 y = 23.5 }
|
||||
|
||||
// lldb-command:v *stack_val_interior_ref_1
|
||||
// lldb-check:[...] 10
|
||||
//@ lldb-command:v *stack_val_interior_ref_1
|
||||
//@ lldb-check:[...] 10
|
||||
|
||||
// lldb-command:v *stack_val_interior_ref_2
|
||||
// lldb-check:[...] 23.5
|
||||
//@ lldb-command:v *stack_val_interior_ref_2
|
||||
//@ lldb-check:[...] 23.5
|
||||
|
||||
// lldb-command:v *ref_to_unnamed
|
||||
// lldb-check:[...] { x = 11 y = 24.5 }
|
||||
//@ lldb-command:v *ref_to_unnamed
|
||||
//@ lldb-check:[...] { x = 11 y = 24.5 }
|
||||
|
||||
// lldb-command:v *unique_val_ref
|
||||
// lldb-check:[...] { x = 13 y = 26.5 }
|
||||
//@ lldb-command:v *unique_val_ref
|
||||
//@ lldb-check:[...] { x = 13 y = 26.5 }
|
||||
|
||||
// lldb-command:v *unique_val_interior_ref_1
|
||||
// lldb-check:[...] 13
|
||||
//@ lldb-command:v *unique_val_interior_ref_1
|
||||
//@ lldb-check:[...] 13
|
||||
|
||||
// lldb-command:v *unique_val_interior_ref_2
|
||||
// lldb-check:[...] 26.5
|
||||
//@ lldb-command:v *unique_val_interior_ref_2
|
||||
//@ lldb-check:[...] 26.5
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -4,30 +4,30 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print *stack_val_ref
|
||||
// gdb-check:$1 = (-14, -19)
|
||||
//@ gdb-command:print *stack_val_ref
|
||||
//@ gdb-check:$1 = (-14, -19)
|
||||
|
||||
// gdb-command:print *ref_to_unnamed
|
||||
// gdb-check:$2 = (-15, -20)
|
||||
//@ gdb-command:print *ref_to_unnamed
|
||||
//@ gdb-check:$2 = (-15, -20)
|
||||
|
||||
// gdb-command:print *unique_val_ref
|
||||
// gdb-check:$3 = (-17, -22)
|
||||
//@ gdb-command:print *unique_val_ref
|
||||
//@ gdb-check:$3 = (-17, -22)
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v *stack_val_ref
|
||||
// lldb-check:[...] { 0 = -14 1 = -19 }
|
||||
//@ lldb-command:v *stack_val_ref
|
||||
//@ lldb-check:[...] { 0 = -14 1 = -19 }
|
||||
|
||||
// lldb-command:v *ref_to_unnamed
|
||||
// lldb-check:[...] { 0 = -15 1 = -20 }
|
||||
//@ lldb-command:v *ref_to_unnamed
|
||||
//@ lldb-check:[...] { 0 = -15 1 = -20 }
|
||||
|
||||
// lldb-command:v *unique_val_ref
|
||||
// lldb-check:[...] { 0 = -17 1 = -22 }
|
||||
//@ lldb-command:v *unique_val_ref
|
||||
//@ lldb-check:[...] { 0 = -17 1 = -22 }
|
||||
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
|
|
|||
|
|
@ -4,102 +4,102 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print *bool_ref
|
||||
// gdb-check:$1 = true
|
||||
//@ gdb-command:print *bool_ref
|
||||
//@ gdb-check:$1 = true
|
||||
|
||||
// gdb-command:print *int_ref
|
||||
// gdb-check:$2 = -1
|
||||
//@ gdb-command:print *int_ref
|
||||
//@ gdb-check:$2 = -1
|
||||
|
||||
// gdb-command:print/d *char_ref
|
||||
// gdb-check:$3 = 97
|
||||
//@ gdb-command:print/d *char_ref
|
||||
//@ gdb-check:$3 = 97
|
||||
|
||||
// gdb-command:print/d *i8_ref
|
||||
// gdb-check:$4 = 68
|
||||
//@ gdb-command:print/d *i8_ref
|
||||
//@ gdb-check:$4 = 68
|
||||
|
||||
// gdb-command:print *i16_ref
|
||||
// gdb-check:$5 = -16
|
||||
//@ gdb-command:print *i16_ref
|
||||
//@ gdb-check:$5 = -16
|
||||
|
||||
// gdb-command:print *i32_ref
|
||||
// gdb-check:$6 = -32
|
||||
//@ gdb-command:print *i32_ref
|
||||
//@ gdb-check:$6 = -32
|
||||
|
||||
// gdb-command:print *i64_ref
|
||||
// gdb-check:$7 = -64
|
||||
//@ gdb-command:print *i64_ref
|
||||
//@ gdb-check:$7 = -64
|
||||
|
||||
// gdb-command:print *uint_ref
|
||||
// gdb-check:$8 = 1
|
||||
//@ gdb-command:print *uint_ref
|
||||
//@ gdb-check:$8 = 1
|
||||
|
||||
// gdb-command:print/d *u8_ref
|
||||
// gdb-check:$9 = 100
|
||||
//@ gdb-command:print/d *u8_ref
|
||||
//@ gdb-check:$9 = 100
|
||||
|
||||
// gdb-command:print *u16_ref
|
||||
// gdb-check:$10 = 16
|
||||
//@ gdb-command:print *u16_ref
|
||||
//@ gdb-check:$10 = 16
|
||||
|
||||
// gdb-command:print *u32_ref
|
||||
// gdb-check:$11 = 32
|
||||
//@ gdb-command:print *u32_ref
|
||||
//@ gdb-check:$11 = 32
|
||||
|
||||
// gdb-command:print *u64_ref
|
||||
// gdb-check:$12 = 64
|
||||
//@ gdb-command:print *u64_ref
|
||||
//@ gdb-check:$12 = 64
|
||||
|
||||
// gdb-command:print *f16_ref
|
||||
// gdb-check:$13 = 1.5
|
||||
//@ gdb-command:print *f16_ref
|
||||
//@ gdb-check:$13 = 1.5
|
||||
|
||||
// gdb-command:print *f32_ref
|
||||
// gdb-check:$14 = 2.5
|
||||
//@ gdb-command:print *f32_ref
|
||||
//@ gdb-check:$14 = 2.5
|
||||
|
||||
// gdb-command:print *f64_ref
|
||||
// gdb-check:$15 = 3.5
|
||||
//@ gdb-command:print *f64_ref
|
||||
//@ gdb-check:$15 = 3.5
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:type format add -f decimal char
|
||||
// lldb-command:type format add -f decimal 'unsigned char'
|
||||
// lldb-command:run
|
||||
//@ lldb-command:type format add -f decimal char
|
||||
//@ lldb-command:type format add -f decimal 'unsigned char'
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v *bool_ref
|
||||
// lldb-check:[...] true
|
||||
//@ lldb-command:v *bool_ref
|
||||
//@ lldb-check:[...] true
|
||||
|
||||
// lldb-command:v *int_ref
|
||||
// lldb-check:[...] -1
|
||||
//@ lldb-command:v *int_ref
|
||||
//@ lldb-check:[...] -1
|
||||
|
||||
|
||||
// lldb-command:v *i8_ref
|
||||
// lldb-check:[...] 68
|
||||
//@ lldb-command:v *i8_ref
|
||||
//@ lldb-check:[...] 68
|
||||
|
||||
// lldb-command:v *i16_ref
|
||||
// lldb-check:[...] -16
|
||||
//@ lldb-command:v *i16_ref
|
||||
//@ lldb-check:[...] -16
|
||||
|
||||
// lldb-command:v *i32_ref
|
||||
// lldb-check:[...] -32
|
||||
//@ lldb-command:v *i32_ref
|
||||
//@ lldb-check:[...] -32
|
||||
|
||||
// lldb-command:v *i64_ref
|
||||
// lldb-check:[...] -64
|
||||
//@ lldb-command:v *i64_ref
|
||||
//@ lldb-check:[...] -64
|
||||
|
||||
// lldb-command:v *uint_ref
|
||||
// lldb-check:[...] 1
|
||||
//@ lldb-command:v *uint_ref
|
||||
//@ lldb-check:[...] 1
|
||||
|
||||
// lldb-command:v *u8_ref
|
||||
// lldb-check:[...] 100
|
||||
//@ lldb-command:v *u8_ref
|
||||
//@ lldb-check:[...] 100
|
||||
|
||||
// lldb-command:v *u16_ref
|
||||
// lldb-check:[...] 16
|
||||
//@ lldb-command:v *u16_ref
|
||||
//@ lldb-check:[...] 16
|
||||
|
||||
// lldb-command:v *u32_ref
|
||||
// lldb-check:[...] 32
|
||||
//@ lldb-command:v *u32_ref
|
||||
//@ lldb-check:[...] 32
|
||||
|
||||
// lldb-command:v *u64_ref
|
||||
// lldb-check:[...] 64
|
||||
//@ lldb-command:v *u64_ref
|
||||
//@ lldb-check:[...] 64
|
||||
|
||||
// lldb-command:v *f16_ref
|
||||
// lldb-check:[...] 1.5
|
||||
//@ lldb-command:v *f16_ref
|
||||
//@ lldb-check:[...] 1.5
|
||||
|
||||
// lldb-command:v *f32_ref
|
||||
// lldb-check:[...] 2.5
|
||||
//@ lldb-command:v *f32_ref
|
||||
//@ lldb-check:[...] 2.5
|
||||
|
||||
// lldb-command:v *f64_ref
|
||||
// lldb-check:[...] 3.5
|
||||
//@ lldb-command:v *f64_ref
|
||||
//@ lldb-check:[...] 3.5
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(f16)]
|
||||
|
|
|
|||
|
|
@ -4,21 +4,21 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print *a
|
||||
// gdb-check:$1 = 1
|
||||
// gdb-command:print *b
|
||||
// gdb-check:$2 = (2, 3.5)
|
||||
//@ gdb-command:print *a
|
||||
//@ gdb-check:$1 = 1
|
||||
//@ gdb-command:print *b
|
||||
//@ gdb-check:$2 = (2, 3.5)
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-command:v *a
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:v *b
|
||||
// lldb-check:[...] { 0 = 2 1 = 3.5 }
|
||||
//@ lldb-command:run
|
||||
//@ lldb-command:v *a
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:v *b
|
||||
//@ lldb-check:[...] { 0 = 2 1 = 3.5 }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -4,24 +4,24 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print *boxed_with_padding
|
||||
// gdb-check:$1 = boxed_struct::StructWithSomePadding {x: 99, y: 999, z: 9999, w: 99999}
|
||||
//@ gdb-command:print *boxed_with_padding
|
||||
//@ gdb-check:$1 = boxed_struct::StructWithSomePadding {x: 99, y: 999, z: 9999, w: 99999}
|
||||
|
||||
// gdb-command:print *boxed_with_dtor
|
||||
// gdb-check:$2 = boxed_struct::StructWithDestructor {x: 77, y: 777, z: 7777, w: 77777}
|
||||
//@ gdb-command:print *boxed_with_dtor
|
||||
//@ gdb-check:$2 = boxed_struct::StructWithDestructor {x: 77, y: 777, z: 7777, w: 77777}
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v *boxed_with_padding
|
||||
// lldb-check:[...] { x = 99 y = 999 z = 9999 w = 99999 }
|
||||
//@ lldb-command:v *boxed_with_padding
|
||||
//@ lldb-check:[...] { x = 99 y = 999 z = 9999 w = 99999 }
|
||||
|
||||
// lldb-command:v *boxed_with_dtor
|
||||
// lldb-check:[...] { x = 77 y = 777 z = 7777 w = 77777 }
|
||||
//@ lldb-command:v *boxed_with_dtor
|
||||
//@ lldb-check:[...] { x = 77 y = 777 z = 7777 w = 77777 }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -8,60 +8,60 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print s
|
||||
// gdb-check:$1 = by_value_non_immediate_argument::Struct {a: 1, b: 2.5}
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print s
|
||||
//@ gdb-check:$1 = by_value_non_immediate_argument::Struct {a: 1, b: 2.5}
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$2 = by_value_non_immediate_argument::Struct {a: 3, b: 4.5}
|
||||
// gdb-command:print y
|
||||
// gdb-check:$3 = 5
|
||||
// gdb-command:print z
|
||||
// gdb-check:$4 = 6.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$2 = by_value_non_immediate_argument::Struct {a: 3, b: 4.5}
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$3 = 5
|
||||
//@ gdb-command:print z
|
||||
//@ gdb-check:$4 = 6.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$5 = (7, 8, 9.5, 10.5)
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$5 = (7, 8, 9.5, 10.5)
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$6 = by_value_non_immediate_argument::Newtype (11.5, 12.5, 13, 14)
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$6 = by_value_non_immediate_argument::Newtype (11.5, 12.5, 13, 14)
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$7 = by_value_non_immediate_argument::Enum::Case1{x: 0, y: 8970181431921507452}
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$7 = by_value_non_immediate_argument::Enum::Case1{x: 0, y: 8970181431921507452}
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v s
|
||||
// lldb-check:[...] Struct { a = 1 b = 2.5 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v s
|
||||
//@ lldb-check:[...] Struct { a = 1 b = 2.5 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] Struct { a = 3 b = 4.5 }
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 5
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 6.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] Struct { a = 3 b = 4.5 }
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 5
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 6.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] (7, 8, 9.5, 10.5)
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] (7, 8, 9.5, 10.5)
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] Newtype(11.5, 12.5, 13, 14)
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] Newtype(11.5, 12.5, 13, 14)
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] Case1 { x: 0, y: 8970181431921507452 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] Case1 { x: 0, y: 8970181431921507452 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
#[derive(Clone)]
|
||||
struct Struct {
|
||||
|
|
|
|||
|
|
@ -4,36 +4,36 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print self
|
||||
// gdb-check:$1 = 1111
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$1 = 1111
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print self
|
||||
// gdb-check:$2 = by_value_self_argument_in_trait_impl::Struct {x: 2222, y: 3333}
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$2 = by_value_self_argument_in_trait_impl::Struct {x: 2222, y: 3333}
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print self
|
||||
// gdb-check:$3 = (4444.5, 5555, 6666, 7777.5)
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$3 = (4444.5, 5555, 6666, 7777.5)
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] 1111
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] 1111
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] { x = 2222 y = 3333 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] { x = 2222 y = 3333 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] { 0 = 4444.5 1 = 5555 2 = 6666 3 = 7777.5 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] { 0 = 4444.5 1 = 5555 2 = 6666 3 = 7777.5 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
trait Trait {
|
||||
fn method(self) -> Self;
|
||||
|
|
|
|||
|
|
@ -4,53 +4,53 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print tuple_interior_padding
|
||||
// gdb-check:$1 = (0, c_style_enum_in_composite::AnEnum::OneHundred)
|
||||
//@ gdb-command:print tuple_interior_padding
|
||||
//@ gdb-check:$1 = (0, c_style_enum_in_composite::AnEnum::OneHundred)
|
||||
|
||||
// gdb-command:print tuple_padding_at_end
|
||||
// gdb-check:$2 = ((1, c_style_enum_in_composite::AnEnum::OneThousand), 2)
|
||||
//@ gdb-command:print tuple_padding_at_end
|
||||
//@ gdb-check:$2 = ((1, c_style_enum_in_composite::AnEnum::OneThousand), 2)
|
||||
|
||||
// gdb-command:print tuple_different_enums
|
||||
// gdb-check:$3 = (c_style_enum_in_composite::AnEnum::OneThousand, c_style_enum_in_composite::AnotherEnum::MountainView, c_style_enum_in_composite::AnEnum::OneMillion, c_style_enum_in_composite::AnotherEnum::Vienna)
|
||||
//@ gdb-command:print tuple_different_enums
|
||||
//@ gdb-check:$3 = (c_style_enum_in_composite::AnEnum::OneThousand, c_style_enum_in_composite::AnotherEnum::MountainView, c_style_enum_in_composite::AnEnum::OneMillion, c_style_enum_in_composite::AnotherEnum::Vienna)
|
||||
|
||||
// gdb-command:print padded_struct
|
||||
// gdb-check:$4 = c_style_enum_in_composite::PaddedStruct {a: 3, b: c_style_enum_in_composite::AnEnum::OneMillion, c: 4, d: c_style_enum_in_composite::AnotherEnum::Toronto, e: 5}
|
||||
//@ gdb-command:print padded_struct
|
||||
//@ gdb-check:$4 = c_style_enum_in_composite::PaddedStruct {a: 3, b: c_style_enum_in_composite::AnEnum::OneMillion, c: 4, d: c_style_enum_in_composite::AnotherEnum::Toronto, e: 5}
|
||||
|
||||
// gdb-command:print packed_struct
|
||||
// gdb-check:$5 = c_style_enum_in_composite::PackedStruct {a: 6, b: c_style_enum_in_composite::AnEnum::OneHundred, c: 7, d: c_style_enum_in_composite::AnotherEnum::Vienna, e: 8}
|
||||
//@ gdb-command:print packed_struct
|
||||
//@ gdb-check:$5 = c_style_enum_in_composite::PackedStruct {a: 6, b: c_style_enum_in_composite::AnEnum::OneHundred, c: 7, d: c_style_enum_in_composite::AnotherEnum::Vienna, e: 8}
|
||||
|
||||
// gdb-command:print non_padded_struct
|
||||
// gdb-check:$6 = c_style_enum_in_composite::NonPaddedStruct {a: c_style_enum_in_composite::AnEnum::OneMillion, b: c_style_enum_in_composite::AnotherEnum::MountainView, c: c_style_enum_in_composite::AnEnum::OneThousand, d: c_style_enum_in_composite::AnotherEnum::Toronto}
|
||||
//@ gdb-command:print non_padded_struct
|
||||
//@ gdb-check:$6 = c_style_enum_in_composite::NonPaddedStruct {a: c_style_enum_in_composite::AnEnum::OneMillion, b: c_style_enum_in_composite::AnotherEnum::MountainView, c: c_style_enum_in_composite::AnEnum::OneThousand, d: c_style_enum_in_composite::AnotherEnum::Toronto}
|
||||
|
||||
// gdb-command:print struct_with_drop
|
||||
// gdb-check:$7 = (c_style_enum_in_composite::StructWithDrop {a: c_style_enum_in_composite::AnEnum::OneHundred, b: c_style_enum_in_composite::AnotherEnum::Vienna}, 9)
|
||||
//@ gdb-command:print struct_with_drop
|
||||
//@ gdb-check:$7 = (c_style_enum_in_composite::StructWithDrop {a: c_style_enum_in_composite::AnEnum::OneHundred, b: c_style_enum_in_composite::AnotherEnum::Vienna}, 9)
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v tuple_interior_padding
|
||||
// lldb-check:[...] { 0 = 0 1 = OneHundred }
|
||||
//@ lldb-command:v tuple_interior_padding
|
||||
//@ lldb-check:[...] { 0 = 0 1 = OneHundred }
|
||||
|
||||
// lldb-command:v tuple_padding_at_end
|
||||
// lldb-check:[...] ((1, OneThousand), 2) { 0 = (1, OneThousand) { 0 = 1 1 = OneThousand } 1 = 2 }
|
||||
//@ lldb-command:v tuple_padding_at_end
|
||||
//@ lldb-check:[...] ((1, OneThousand), 2) { 0 = (1, OneThousand) { 0 = 1 1 = OneThousand } 1 = 2 }
|
||||
|
||||
// lldb-command:v tuple_different_enums
|
||||
// lldb-check:[...] { 0 = OneThousand 1 = MountainView 2 = OneMillion 3 = Vienna }
|
||||
//@ lldb-command:v tuple_different_enums
|
||||
//@ lldb-check:[...] { 0 = OneThousand 1 = MountainView 2 = OneMillion 3 = Vienna }
|
||||
|
||||
// lldb-command:v padded_struct
|
||||
// lldb-check:[...] { a = 3 b = OneMillion c = 4 d = Toronto e = 5 }
|
||||
//@ lldb-command:v padded_struct
|
||||
//@ lldb-check:[...] { a = 3 b = OneMillion c = 4 d = Toronto e = 5 }
|
||||
|
||||
// lldb-command:v packed_struct
|
||||
// lldb-check:[...] { a = 6 b = OneHundred c = 7 d = Vienna e = 8 }
|
||||
//@ lldb-command:v packed_struct
|
||||
//@ lldb-check:[...] { a = 6 b = OneHundred c = 7 d = Vienna e = 8 }
|
||||
|
||||
// lldb-command:v non_padded_struct
|
||||
// lldb-check:[...] { a = OneMillion b = MountainView c = OneThousand d = Toronto }
|
||||
//@ lldb-command:v non_padded_struct
|
||||
//@ lldb-check:[...] { a = OneMillion b = MountainView c = OneThousand d = Toronto }
|
||||
|
||||
// lldb-command:v struct_with_drop
|
||||
// lldb-check:[...] { 0 = { a = OneHundred b = Vienna } 1 = 9 }
|
||||
//@ lldb-command:v struct_with_drop
|
||||
//@ lldb-check:[...] { 0 = { a = OneHundred b = Vienna } 1 = 9 }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -6,87 +6,87 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:print c_style_enum::SINGLE_VARIANT
|
||||
// gdb-check:$1 = c_style_enum::SingleVariant::TheOnlyVariant
|
||||
//@ gdb-command:print c_style_enum::SINGLE_VARIANT
|
||||
//@ gdb-check:$1 = c_style_enum::SingleVariant::TheOnlyVariant
|
||||
|
||||
// gdb-command:print c_style_enum::AUTO_ONE
|
||||
// gdb-check:$2 = c_style_enum::AutoDiscriminant::One
|
||||
//@ gdb-command:print c_style_enum::AUTO_ONE
|
||||
//@ gdb-check:$2 = c_style_enum::AutoDiscriminant::One
|
||||
|
||||
// gdb-command:print c_style_enum::AUTO_TWO
|
||||
// gdb-check:$3 = c_style_enum::AutoDiscriminant::One
|
||||
//@ gdb-command:print c_style_enum::AUTO_TWO
|
||||
//@ gdb-check:$3 = c_style_enum::AutoDiscriminant::One
|
||||
|
||||
// gdb-command:print c_style_enum::AUTO_THREE
|
||||
// gdb-check:$4 = c_style_enum::AutoDiscriminant::One
|
||||
//@ gdb-command:print c_style_enum::AUTO_THREE
|
||||
//@ gdb-check:$4 = c_style_enum::AutoDiscriminant::One
|
||||
|
||||
// gdb-command:print c_style_enum::MANUAL_ONE
|
||||
// gdb-check:$5 = c_style_enum::ManualDiscriminant::OneHundred
|
||||
//@ gdb-command:print c_style_enum::MANUAL_ONE
|
||||
//@ gdb-check:$5 = c_style_enum::ManualDiscriminant::OneHundred
|
||||
|
||||
// gdb-command:print c_style_enum::MANUAL_TWO
|
||||
// gdb-check:$6 = c_style_enum::ManualDiscriminant::OneHundred
|
||||
//@ gdb-command:print c_style_enum::MANUAL_TWO
|
||||
//@ gdb-check:$6 = c_style_enum::ManualDiscriminant::OneHundred
|
||||
|
||||
// gdb-command:print c_style_enum::MANUAL_THREE
|
||||
// gdb-check:$7 = c_style_enum::ManualDiscriminant::OneHundred
|
||||
//@ gdb-command:print c_style_enum::MANUAL_THREE
|
||||
//@ gdb-check:$7 = c_style_enum::ManualDiscriminant::OneHundred
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print auto_one
|
||||
// gdb-check:$8 = c_style_enum::AutoDiscriminant::One
|
||||
//@ gdb-command:print auto_one
|
||||
//@ gdb-check:$8 = c_style_enum::AutoDiscriminant::One
|
||||
|
||||
// gdb-command:print auto_two
|
||||
// gdb-check:$9 = c_style_enum::AutoDiscriminant::Two
|
||||
//@ gdb-command:print auto_two
|
||||
//@ gdb-check:$9 = c_style_enum::AutoDiscriminant::Two
|
||||
|
||||
// gdb-command:print auto_three
|
||||
// gdb-check:$10 = c_style_enum::AutoDiscriminant::Three
|
||||
//@ gdb-command:print auto_three
|
||||
//@ gdb-check:$10 = c_style_enum::AutoDiscriminant::Three
|
||||
|
||||
// gdb-command:print manual_one_hundred
|
||||
// gdb-check:$11 = c_style_enum::ManualDiscriminant::OneHundred
|
||||
//@ gdb-command:print manual_one_hundred
|
||||
//@ gdb-check:$11 = c_style_enum::ManualDiscriminant::OneHundred
|
||||
|
||||
// gdb-command:print manual_one_thousand
|
||||
// gdb-check:$12 = c_style_enum::ManualDiscriminant::OneThousand
|
||||
//@ gdb-command:print manual_one_thousand
|
||||
//@ gdb-check:$12 = c_style_enum::ManualDiscriminant::OneThousand
|
||||
|
||||
// gdb-command:print manual_one_million
|
||||
// gdb-check:$13 = c_style_enum::ManualDiscriminant::OneMillion
|
||||
//@ gdb-command:print manual_one_million
|
||||
//@ gdb-check:$13 = c_style_enum::ManualDiscriminant::OneMillion
|
||||
|
||||
// gdb-command:print single_variant
|
||||
// gdb-check:$14 = c_style_enum::SingleVariant::TheOnlyVariant
|
||||
//@ gdb-command:print single_variant
|
||||
//@ gdb-check:$14 = c_style_enum::SingleVariant::TheOnlyVariant
|
||||
|
||||
// gdb-command:print AUTO_TWO
|
||||
// gdb-check:$15 = c_style_enum::AutoDiscriminant::Two
|
||||
//@ gdb-command:print AUTO_TWO
|
||||
//@ gdb-check:$15 = c_style_enum::AutoDiscriminant::Two
|
||||
|
||||
// gdb-command:print AUTO_THREE
|
||||
// gdb-check:$16 = c_style_enum::AutoDiscriminant::Three
|
||||
//@ gdb-command:print AUTO_THREE
|
||||
//@ gdb-check:$16 = c_style_enum::AutoDiscriminant::Three
|
||||
|
||||
// gdb-command:print MANUAL_TWO
|
||||
// gdb-check:$17 = c_style_enum::ManualDiscriminant::OneThousand
|
||||
//@ gdb-command:print MANUAL_TWO
|
||||
//@ gdb-check:$17 = c_style_enum::ManualDiscriminant::OneThousand
|
||||
|
||||
// gdb-command:print MANUAL_THREE
|
||||
// gdb-check:$18 = c_style_enum::ManualDiscriminant::OneMillion
|
||||
//@ gdb-command:print MANUAL_THREE
|
||||
//@ gdb-check:$18 = c_style_enum::ManualDiscriminant::OneMillion
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v auto_one
|
||||
// lldb-check:[...] One
|
||||
//@ lldb-command:v auto_one
|
||||
//@ lldb-check:[...] One
|
||||
|
||||
// lldb-command:v auto_two
|
||||
// lldb-check:[...] Two
|
||||
//@ lldb-command:v auto_two
|
||||
//@ lldb-check:[...] Two
|
||||
|
||||
// lldb-command:v auto_three
|
||||
// lldb-check:[...] Three
|
||||
//@ lldb-command:v auto_three
|
||||
//@ lldb-check:[...] Three
|
||||
|
||||
// lldb-command:v manual_one_hundred
|
||||
// lldb-check:[...] OneHundred
|
||||
//@ lldb-command:v manual_one_hundred
|
||||
//@ lldb-check:[...] OneHundred
|
||||
|
||||
// lldb-command:v manual_one_thousand
|
||||
// lldb-check:[...] OneThousand
|
||||
//@ lldb-command:v manual_one_thousand
|
||||
//@ lldb-check:[...] OneThousand
|
||||
|
||||
// lldb-command:v manual_one_million
|
||||
// lldb-check:[...] OneMillion
|
||||
//@ lldb-command:v manual_one_million
|
||||
//@ lldb-check:[...] OneMillion
|
||||
|
||||
// lldb-command:v single_variant
|
||||
// lldb-check:[...] TheOnlyVariant
|
||||
//@ lldb-command:v single_variant
|
||||
//@ lldb-check:[...] TheOnlyVariant
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
|
|
@ -3,47 +3,47 @@
|
|||
//@ ignore-backends: gcc
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:print test
|
||||
// gdb-check:$1 = captured_fields_1::main::{closure_env#0} {_ref__my_ref__my_field1: 0x[...]}
|
||||
// gdb-command:continue
|
||||
// gdb-command:print test
|
||||
// gdb-check:$2 = captured_fields_1::main::{closure_env#1} {_ref__my_ref__my_field2: 0x[...]}
|
||||
// gdb-command:continue
|
||||
// gdb-command:print test
|
||||
// gdb-check:$3 = captured_fields_1::main::{closure_env#2} {_ref__my_ref: 0x[...]}
|
||||
// gdb-command:continue
|
||||
// gdb-command:print test
|
||||
// gdb-check:$4 = captured_fields_1::main::{closure_env#3} {my_ref: 0x[...]}
|
||||
// gdb-command:continue
|
||||
// gdb-command:print test
|
||||
// gdb-check:$5 = captured_fields_1::main::{closure_env#4} {my_var__my_field2: 22}
|
||||
// gdb-command:continue
|
||||
// gdb-command:print test
|
||||
// gdb-check:$6 = captured_fields_1::main::{closure_env#5} {my_var: captured_fields_1::MyStruct {my_field1: 11, my_field2: 22}}
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:print test
|
||||
//@ gdb-check:$1 = captured_fields_1::main::{closure_env#0} {_ref__my_ref__my_field1: 0x[...]}
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print test
|
||||
//@ gdb-check:$2 = captured_fields_1::main::{closure_env#1} {_ref__my_ref__my_field2: 0x[...]}
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print test
|
||||
//@ gdb-check:$3 = captured_fields_1::main::{closure_env#2} {_ref__my_ref: 0x[...]}
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print test
|
||||
//@ gdb-check:$4 = captured_fields_1::main::{closure_env#3} {my_ref: 0x[...]}
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print test
|
||||
//@ gdb-check:$5 = captured_fields_1::main::{closure_env#4} {my_var__my_field2: 22}
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print test
|
||||
//@ gdb-check:$6 = captured_fields_1::main::{closure_env#5} {my_var: captured_fields_1::MyStruct {my_field1: 11, my_field2: 22}}
|
||||
//@ gdb-command:continue
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-command:v test
|
||||
// lldb-check:(captured_fields_1::main::{closure_env#0}) test = { _ref__my_ref__my_field1 = 0x[...] }
|
||||
// lldb-command:continue
|
||||
// lldb-command:v test
|
||||
// lldb-check:(captured_fields_1::main::{closure_env#1}) test = { _ref__my_ref__my_field2 = 0x[...] }
|
||||
// lldb-command:continue
|
||||
// lldb-command:v test
|
||||
// lldb-check:(captured_fields_1::main::{closure_env#2}) test = { _ref__my_ref = 0x[...] }
|
||||
// lldb-command:continue
|
||||
// lldb-command:v test
|
||||
// lldb-check:(captured_fields_1::main::{closure_env#3}) test = { my_ref = 0x[...] }
|
||||
// lldb-command:continue
|
||||
// lldb-command:v test
|
||||
// lldb-check:(captured_fields_1::main::{closure_env#4}) test = { my_var__my_field2 = 22 }
|
||||
// lldb-command:continue
|
||||
// lldb-command:v test
|
||||
// lldb-check:(captured_fields_1::main::{closure_env#5}) test = { my_var = { my_field1 = 11 my_field2 = 22 } }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:run
|
||||
//@ lldb-command:v test
|
||||
//@ lldb-check:(captured_fields_1::main::{closure_env#0}) test = { _ref__my_ref__my_field1 = 0x[...] }
|
||||
//@ lldb-command:continue
|
||||
//@ lldb-command:v test
|
||||
//@ lldb-check:(captured_fields_1::main::{closure_env#1}) test = { _ref__my_ref__my_field2 = 0x[...] }
|
||||
//@ lldb-command:continue
|
||||
//@ lldb-command:v test
|
||||
//@ lldb-check:(captured_fields_1::main::{closure_env#2}) test = { _ref__my_ref = 0x[...] }
|
||||
//@ lldb-command:continue
|
||||
//@ lldb-command:v test
|
||||
//@ lldb-check:(captured_fields_1::main::{closure_env#3}) test = { my_ref = 0x[...] }
|
||||
//@ lldb-command:continue
|
||||
//@ lldb-command:v test
|
||||
//@ lldb-check:(captured_fields_1::main::{closure_env#4}) test = { my_var__my_field2 = 22 }
|
||||
//@ lldb-command:continue
|
||||
//@ lldb-command:v test
|
||||
//@ lldb-check:(captured_fields_1::main::{closure_env#5}) test = { my_var = { my_field1 = 11 my_field2 = 22 } }
|
||||
//@ lldb-command:continue
|
||||
|
||||
#![allow(unused)]
|
||||
|
||||
|
|
|
|||
|
|
@ -3,23 +3,23 @@
|
|||
//@ ignore-backends: gcc
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:print my_ref__my_field1
|
||||
// gdb-check:$1 = 11
|
||||
// gdb-command:continue
|
||||
// gdb-command:print my_var__my_field2
|
||||
// gdb-check:$2 = 22
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:print my_ref__my_field1
|
||||
//@ gdb-check:$1 = 11
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print my_var__my_field2
|
||||
//@ gdb-check:$2 = 22
|
||||
//@ gdb-command:continue
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-command:v my_ref__my_field1
|
||||
// lldb-check:(unsigned int) my_ref__my_field1 = 11
|
||||
// lldb-command:continue
|
||||
// lldb-command:v my_var__my_field2
|
||||
// lldb-check:(unsigned int) my_var__my_field2 = 22
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:run
|
||||
//@ lldb-command:v my_ref__my_field1
|
||||
//@ lldb-check:(unsigned int) my_ref__my_field1 = 11
|
||||
//@ lldb-command:continue
|
||||
//@ lldb-command:v my_var__my_field2
|
||||
//@ lldb-check:(unsigned int) my_var__my_field2 = 22
|
||||
//@ lldb-command:continue
|
||||
|
||||
#![allow(unused)]
|
||||
|
||||
|
|
|
|||
|
|
@ -4,36 +4,36 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$1 = 0.5
|
||||
// gdb-command:print y
|
||||
// gdb-check:$2 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$1 = 0.5
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$2 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print *x
|
||||
// gdb-check:$3 = 29
|
||||
// gdb-command:print *y
|
||||
// gdb-check:$4 = 110
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *x
|
||||
//@ gdb-check:$3 = 29
|
||||
//@ gdb-command:print *y
|
||||
//@ gdb-check:$4 = 110
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 0.5
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 0.5
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v *x
|
||||
// lldb-check:[...] 29
|
||||
// lldb-command:v *y
|
||||
// lldb-check:[...] 110
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *x
|
||||
//@ lldb-check:[...] 29
|
||||
//@ lldb-command:v *y
|
||||
//@ lldb-check:[...] 110
|
||||
//@ lldb-command:continue
|
||||
|
||||
fn some_generic_fun<T1, T2>(a: T1, b: T2) -> (T2, T1) {
|
||||
|
||||
|
|
|
|||
|
|
@ -3,51 +3,52 @@
|
|||
|
||||
// === CDB TESTS ===================================================================================
|
||||
// Generic functions cause ambigious breakpoints.
|
||||
// cdb-command:dx @$debuggerRootNamespace.Debugger.Settings.EngineInitialization.ResolveAmbiguousBreakpoints = true;
|
||||
// cdb-command:bp `closures.rs:57`
|
||||
// cdb-command:g
|
||||
// cdb-command:dx add_closure
|
||||
// cdb-check:add_closure [Type: closures::main::closure_env$0]
|
||||
// cdb-check: [+0x[...]] _ref__base_value : 0x[...] : 42 [Type: int *]
|
||||
// cdb-command:dx increment
|
||||
// cdb-check:increment [Type: closures::main::closure_env$1]
|
||||
// cdb-check: [+0x[...]] _ref__count : 0x[...] : 2 [Type: int *]
|
||||
// cdb-command:dx consume_closure
|
||||
// cdb-check:consume_closure [Type: closures::main::closure_env$2]
|
||||
// cdb-check: [+0x[...]] x : [...] [Type: alloc::string::String]
|
||||
// cdb-check: [+0x[...]] _ref__base_value : 0x[...] : 42 [Type: int *]
|
||||
// cdb-command:dx simple_closure
|
||||
//@ cdb-command:dx @$debuggerRootNamespace.Debugger.Settings.EngineInitialization.ResolveAmbiguousBreakpoints = true;
|
||||
//@ cdb-command:bp `closures.rs:57`
|
||||
//@ cdb-command:g
|
||||
//@ cdb-command:dx add_closure
|
||||
//@ cdb-check:add_closure [Type: closures::main::closure_env$0]
|
||||
//@ cdb-check: [+0x[...]] _ref__base_value : 0x[...] : 42 [Type: int *]
|
||||
//@ cdb-command:dx increment
|
||||
//@ cdb-check:increment [Type: closures::main::closure_env$1]
|
||||
//@ cdb-check: [+0x[...]] _ref__count : 0x[...] : 2 [Type: int *]
|
||||
//@ cdb-command:dx consume_closure
|
||||
//@ cdb-check:consume_closure [Type: closures::main::closure_env$2]
|
||||
//@ cdb-check: [+0x[...]] x : [...] [Type: alloc::string::String]
|
||||
//@ cdb-check: [+0x[...]] _ref__base_value : 0x[...] : 42 [Type: int *]
|
||||
//@ cdb-command:dx simple_closure
|
||||
// FIXME(#148097): Change `// cdb-checksimple_closure` to `//@ cdb-check:simple_closure`
|
||||
// cdb-checksimple_closure [Type: closures::main::closure_env$5]
|
||||
// cdb-check: [+0x[...]] _ref__base_value : 0x[...] : 42 [Type: int *]
|
||||
// cdb-command:g
|
||||
// cdb-command:dx first_closure
|
||||
// cdb-check:first_closure [Type: closures::main::closure_env$6]
|
||||
// cdb-check: [+0x[...]] _ref__variable : 0x[...] : 1 [Type: int *]
|
||||
// cdb-check: [+0x[...]] _ref__constant : 0x[...] : 2 [Type: int *]
|
||||
// cdb-check: [+0x[...]] _ref__a_struct : 0x[...] [Type: closures::Struct *]
|
||||
// cdb-check: [+0x[...]] _ref__struct_ref : 0x[...] [Type: closures::Struct * *]
|
||||
// cdb-check: [+0x[...]] _ref__owned_value : 0x[...] [Type: int * *]
|
||||
// cdb-command:g
|
||||
// cdb-command:dx many_param_closure
|
||||
// cdb-check:many_param_closure [Type: closures::main::closure_env$7]
|
||||
// cdb-check: [+0x[...]] _ref__base_value : 0x[...] : 42 [Type: int *]
|
||||
// cdb-command:g
|
||||
// cdb-command:dv
|
||||
// cdb-command:dx generic_closure
|
||||
// cdb-check:generic_closure [Type: closures::generic_func::closure_env$0<i32>]
|
||||
// cdb-check: [+0x[...]] _ref__x : 0x[...] : 42 [Type: int *]
|
||||
// cdb-command:g
|
||||
// cdb-command:dx generic_closure
|
||||
// cdb-check:generic_closure [Type: closures::generic_func::closure_env$0<ref$<str$> >]
|
||||
// cdb-check: [+0x000] _ref__x : 0x[...] : "base_value" [Type: ref$<str$> *]
|
||||
// cdb-command:g
|
||||
// cdb-command:dx second_closure
|
||||
// cdb-check:second_closure [Type: closures::main::closure_env$8]
|
||||
// cdb-check: [+0x[...]] _ref__variable : 0x[...] : 2 [Type: int *]
|
||||
// cdb-check: [+0x[...]] _ref__constant : 0x[...] : 2 [Type: int *]
|
||||
// cdb-check: [+0x[...]] _ref__a_struct : 0x[...] [Type: closures::Struct *]
|
||||
// cdb-check: [+0x[...]] _ref__struct_ref : 0x[...] [Type: closures::Struct * *]
|
||||
// cdb-check: [+0x[...]] _ref__owned_value : 0x[...] [Type: int * *]
|
||||
//@ cdb-check: [+0x[...]] _ref__base_value : 0x[...] : 42 [Type: int *]
|
||||
//@ cdb-command:g
|
||||
//@ cdb-command:dx first_closure
|
||||
//@ cdb-check:first_closure [Type: closures::main::closure_env$6]
|
||||
//@ cdb-check: [+0x[...]] _ref__variable : 0x[...] : 1 [Type: int *]
|
||||
//@ cdb-check: [+0x[...]] _ref__constant : 0x[...] : 2 [Type: int *]
|
||||
//@ cdb-check: [+0x[...]] _ref__a_struct : 0x[...] [Type: closures::Struct *]
|
||||
//@ cdb-check: [+0x[...]] _ref__struct_ref : 0x[...] [Type: closures::Struct * *]
|
||||
//@ cdb-check: [+0x[...]] _ref__owned_value : 0x[...] [Type: int * *]
|
||||
//@ cdb-command:g
|
||||
//@ cdb-command:dx many_param_closure
|
||||
//@ cdb-check:many_param_closure [Type: closures::main::closure_env$7]
|
||||
//@ cdb-check: [+0x[...]] _ref__base_value : 0x[...] : 42 [Type: int *]
|
||||
//@ cdb-command:g
|
||||
//@ cdb-command:dv
|
||||
//@ cdb-command:dx generic_closure
|
||||
//@ cdb-check:generic_closure [Type: closures::generic_func::closure_env$0<i32>]
|
||||
//@ cdb-check: [+0x[...]] _ref__x : 0x[...] : 42 [Type: int *]
|
||||
//@ cdb-command:g
|
||||
//@ cdb-command:dx generic_closure
|
||||
//@ cdb-check:generic_closure [Type: closures::generic_func::closure_env$0<ref$<str$> >]
|
||||
//@ cdb-check: [+0x000] _ref__x : 0x[...] : "base_value" [Type: ref$<str$> *]
|
||||
//@ cdb-command:g
|
||||
//@ cdb-command:dx second_closure
|
||||
//@ cdb-check:second_closure [Type: closures::main::closure_env$8]
|
||||
//@ cdb-check: [+0x[...]] _ref__variable : 0x[...] : 2 [Type: int *]
|
||||
//@ cdb-check: [+0x[...]] _ref__constant : 0x[...] : 2 [Type: int *]
|
||||
//@ cdb-check: [+0x[...]] _ref__a_struct : 0x[...] [Type: closures::Struct *]
|
||||
//@ cdb-check: [+0x[...]] _ref__struct_ref : 0x[...] [Type: closures::Struct * *]
|
||||
//@ cdb-check: [+0x[...]] _ref__owned_value : 0x[...] [Type: int * *]
|
||||
|
||||
#[inline(never)]
|
||||
fn generic_func<Tfunc: std::fmt::Debug>(x: Tfunc) {
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#one_callsite[...]
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#one_callsite[...]
|
||||
//@ gdb-command:continue
|
||||
|
||||
fn one() {
|
||||
println!("one");
|
||||
|
|
|
|||
|
|
@ -7,13 +7,13 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#one_callsite[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#one_callsite[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-command:continue
|
||||
|
||||
fn one() {
|
||||
println!("one");
|
||||
|
|
|
|||
|
|
@ -6,11 +6,11 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#println_callsite[...]
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#println_callsite[...]
|
||||
//@ gdb-command:continue
|
||||
|
||||
macro_rules! outer {
|
||||
() => {
|
||||
|
|
|
|||
|
|
@ -10,50 +10,50 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc_rem_call1[...]
|
||||
// gdb-command:step
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc_call1_pre[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc_in_proxy[...]
|
||||
// gdb-command:next 2
|
||||
// gdb-check:[...]#loc_rem_call3[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc_add_call1[...]
|
||||
// gdb-command:step
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc_call1_pre[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc_in_proxy[...]
|
||||
// gdb-command:next 2
|
||||
// gdb-check:[...]#loc_add_macro[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc_add_call3[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc_reorder_call2[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc_reorder_call3[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc_reorder_call1[...]
|
||||
// gdb-command:step
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc_call1_pre[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc_in_proxy[...]
|
||||
// gdb-command:next 2
|
||||
// gdb-command:frame
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc_rem_call1[...]
|
||||
//@ gdb-command:step
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc_call1_pre[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc_in_proxy[...]
|
||||
//@ gdb-command:next 2
|
||||
//@ gdb-check:[...]#loc_rem_call3[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc_add_call1[...]
|
||||
//@ gdb-command:step
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc_call1_pre[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc_in_proxy[...]
|
||||
//@ gdb-command:next 2
|
||||
//@ gdb-check:[...]#loc_add_macro[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc_add_call3[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc_reorder_call2[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc_reorder_call3[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc_reorder_call1[...]
|
||||
//@ gdb-command:step
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc_call1_pre[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc_in_proxy[...]
|
||||
//@ gdb-command:next 2
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-command:continue
|
||||
|
||||
#[inline(never)]
|
||||
fn myprintln_impl(text: &str) {
|
||||
|
|
|
|||
|
|
@ -7,20 +7,20 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc1[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc2[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc3[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc4[...]
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc1[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc2[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc3[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc4[...]
|
||||
//@ gdb-command:continue
|
||||
|
||||
fn one() {
|
||||
println!("one");
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:info line collapse_debuginfo_static_external::FOO
|
||||
// gdb-check:[...]Line 16[...]
|
||||
//@ gdb-command:info line collapse_debuginfo_static_external::FOO
|
||||
//@ gdb-check:[...]Line 16[...]
|
||||
|
||||
#[collapse_debuginfo(external)]
|
||||
macro_rules! decl_foo {
|
||||
|
|
|
|||
|
|
@ -7,8 +7,8 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:info line collapse_debuginfo_static::FOO
|
||||
// gdb-check:[...]Line 20[...]
|
||||
//@ gdb-command:info line collapse_debuginfo_static::FOO
|
||||
//@ gdb-check:[...]Line 20[...]
|
||||
|
||||
#[collapse_debuginfo(yes)]
|
||||
macro_rules! decl_foo {
|
||||
|
|
|
|||
|
|
@ -7,20 +7,20 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc1[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc2[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc3[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc4[...]
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc1[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc2[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc3[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc4[...]
|
||||
//@ gdb-command:continue
|
||||
|
||||
fn one() {
|
||||
println!("one");
|
||||
|
|
|
|||
|
|
@ -7,17 +7,17 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc1[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc2[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc3[...]
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc1[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc2[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc3[...]
|
||||
//@ gdb-command:continue
|
||||
|
||||
fn one() {
|
||||
println!("one");
|
||||
|
|
|
|||
|
|
@ -7,17 +7,17 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc1[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc2[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc3[...]
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc1[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc2[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc3[...]
|
||||
//@ gdb-command:continue
|
||||
|
||||
fn one() {
|
||||
println!("one");
|
||||
|
|
|
|||
|
|
@ -5,27 +5,27 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:break constant_ordering_prologue::binding
|
||||
// gdb-command:run
|
||||
//@ gdb-command:break constant_ordering_prologue::binding
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check: = 19
|
||||
// gdb-command:print b
|
||||
// gdb-check: = 20
|
||||
// gdb-command:print c
|
||||
// gdb-check: = 21.5
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check: = 19
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check: = 20
|
||||
//@ gdb-command:print c
|
||||
//@ gdb-check: = 21.5
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:b "constant_ordering_prologue::binding"
|
||||
// lldb-command:run
|
||||
//@ lldb-command:b "constant_ordering_prologue::binding"
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:print a
|
||||
// lldb-check: 19
|
||||
// lldb-command:print b
|
||||
// lldb-check: 20
|
||||
// lldb-command:print c
|
||||
// lldb-check: 21.5
|
||||
//@ lldb-command:print a
|
||||
//@ lldb-check: 19
|
||||
//@ lldb-command:print b
|
||||
//@ lldb-check: 20
|
||||
//@ lldb-command:print c
|
||||
//@ lldb-check: 21.5
|
||||
|
||||
fn binding(a: i64, b: u64, c: f64) {
|
||||
let x = 0;
|
||||
|
|
|
|||
|
|
@ -5,11 +5,11 @@
|
|||
|
||||
// === CDB TESTS ==================================================================================
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dx closure
|
||||
// cdb-check:closure [Type: coroutine_closure::main::closure_env$0]
|
||||
// cdb-check: [+0x[...]] y : "" [Type: alloc::string::String]
|
||||
// cdb-check: [+0x[...]] x : "" [Type: alloc::string::String]
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dx closure
|
||||
//@ cdb-check:closure [Type: coroutine_closure::main::closure_env$0]
|
||||
//@ cdb-check: [+0x[...]] y : "" [Type: alloc::string::String]
|
||||
//@ cdb-check: [+0x[...]] x : "" [Type: alloc::string::String]
|
||||
#![allow(unused)]
|
||||
fn main() {
|
||||
let x = String::new();
|
||||
|
|
|
|||
|
|
@ -4,47 +4,47 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:print a
|
||||
// gdb-check:$1 = 5
|
||||
// gdb-command:print c
|
||||
// gdb-check:$2 = 6
|
||||
// gdb-command:print d
|
||||
// gdb-check:$3 = 7
|
||||
// gdb-command:continue
|
||||
// gdb-command:print a
|
||||
// gdb-check:$4 = 7
|
||||
// gdb-command:print c
|
||||
// gdb-check:$5 = 6
|
||||
// gdb-command:print e
|
||||
// gdb-check:$6 = 8
|
||||
// gdb-command:continue
|
||||
// gdb-command:print a
|
||||
// gdb-check:$7 = 8
|
||||
// gdb-command:print c
|
||||
// gdb-check:$8 = 6
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$1 = 5
|
||||
//@ gdb-command:print c
|
||||
//@ gdb-check:$2 = 6
|
||||
//@ gdb-command:print d
|
||||
//@ gdb-check:$3 = 7
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$4 = 7
|
||||
//@ gdb-command:print c
|
||||
//@ gdb-check:$5 = 6
|
||||
//@ gdb-command:print e
|
||||
//@ gdb-check:$6 = 8
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$7 = 8
|
||||
//@ gdb-command:print c
|
||||
//@ gdb-check:$8 = 6
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-command:v a
|
||||
// lldb-check:(int) a = 5
|
||||
// lldb-command:v c
|
||||
// lldb-check:(int) c = 6
|
||||
// lldb-command:v d
|
||||
// lldb-check:(int) d = 7
|
||||
// lldb-command:continue
|
||||
// lldb-command:v a
|
||||
// lldb-check:(int) a = 7
|
||||
// lldb-command:v c
|
||||
// lldb-check:(int) c = 6
|
||||
// lldb-command:v e
|
||||
// lldb-check:(int) e = 8
|
||||
// lldb-command:continue
|
||||
// lldb-command:v a
|
||||
// lldb-check:(int) a = 8
|
||||
// lldb-command:v c
|
||||
// lldb-check:(int) c = 6
|
||||
//@ lldb-command:run
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:(int) a = 5
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:(int) c = 6
|
||||
//@ lldb-command:v d
|
||||
//@ lldb-check:(int) d = 7
|
||||
//@ lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:(int) a = 7
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:(int) c = 6
|
||||
//@ lldb-command:v e
|
||||
//@ lldb-check:(int) e = 8
|
||||
//@ lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:(int) a = 8
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:(int) c = 6
|
||||
|
||||
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
|
||||
|
||||
|
|
|
|||
|
|
@ -10,50 +10,50 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:print b
|
||||
// gdb-check:$1 = coroutine_objects::main::{coroutine_env#0}::Unresumed{_ref__a: 0x[...]}
|
||||
// gdb-command:continue
|
||||
// gdb-command:print b
|
||||
// gdb-check:$2 = coroutine_objects::main::{coroutine_env#0}::Suspend0{c: 6, d: 7, _ref__a: 0x[...]}
|
||||
// gdb-command:continue
|
||||
// gdb-command:print b
|
||||
// gdb-check:$3 = coroutine_objects::main::{coroutine_env#0}::Suspend1{c: 7, d: 8, _ref__a: 0x[...]}
|
||||
// gdb-command:continue
|
||||
// gdb-command:print b
|
||||
// gdb-check:$4 = coroutine_objects::main::{coroutine_env#0}::Returned{_ref__a: 0x[...]}
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$1 = coroutine_objects::main::{coroutine_env#0}::Unresumed{_ref__a: 0x[...]}
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$2 = coroutine_objects::main::{coroutine_env#0}::Suspend0{c: 6, d: 7, _ref__a: 0x[...]}
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$3 = coroutine_objects::main::{coroutine_env#0}::Suspend1{c: 7, d: 8, _ref__a: 0x[...]}
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$4 = coroutine_objects::main::{coroutine_env#0}::Returned{_ref__a: 0x[...]}
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-command:v b
|
||||
// lldb-check:(coroutine_objects::main::{coroutine_env#0}) b = 0{_ref__a:0x[...]} { _ref__a = 0x[...] }
|
||||
//@ lldb-command:run
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:(coroutine_objects::main::{coroutine_env#0}) b = 0{_ref__a:0x[...]} { _ref__a = 0x[...] }
|
||||
|
||||
// === CDB TESTS ===================================================================================
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dx b
|
||||
// cdb-check: b : Unresumed [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 5 [Type: int *]
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dx b
|
||||
//@ cdb-check: b : Unresumed [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
//@ cdb-check: [+0x[...]] _ref__a : 0x[...] : 5 [Type: int *]
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dx b
|
||||
// cdb-check: b : Suspend0 [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
// cdb-check: [+0x[...]] c : 6 [Type: int]
|
||||
// cdb-check: [+0x[...]] d : 7 [Type: int]
|
||||
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 5 [Type: int *]
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dx b
|
||||
//@ cdb-check: b : Suspend0 [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
//@ cdb-check: [+0x[...]] c : 6 [Type: int]
|
||||
//@ cdb-check: [+0x[...]] d : 7 [Type: int]
|
||||
//@ cdb-check: [+0x[...]] _ref__a : 0x[...] : 5 [Type: int *]
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dx b
|
||||
// cdb-check: b : Suspend1 [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
// cdb-check: [+0x[...]] c : 7 [Type: int]
|
||||
// cdb-check: [+0x[...]] d : 8 [Type: int]
|
||||
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 6 [Type: int *]
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dx b
|
||||
//@ cdb-check: b : Suspend1 [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
//@ cdb-check: [+0x[...]] c : 7 [Type: int]
|
||||
//@ cdb-check: [+0x[...]] d : 8 [Type: int]
|
||||
//@ cdb-check: [+0x[...]] _ref__a : 0x[...] : 6 [Type: int *]
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dx b
|
||||
// cdb-check: b : Returned [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
// cdb-check: [+0x[...]] _ref__a : 0x[...] : 6 [Type: int *]
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dx b
|
||||
//@ cdb-check: b : Returned [Type: enum2$<coroutine_objects::main::coroutine_env$0>]
|
||||
//@ cdb-check: [+0x[...]] _ref__a : 0x[...] : 6 [Type: int *]
|
||||
|
||||
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
|
||||
|
||||
|
|
|
|||
|
|
@ -8,47 +8,47 @@ extern crate cross_crate_spans;
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:break cross_crate_spans.rs:12
|
||||
// gdb-command:run
|
||||
//@ gdb-command:break cross_crate_spans.rs:12
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print result
|
||||
// gdb-check:$1 = (17, 17)
|
||||
// gdb-command:print a_variable
|
||||
// gdb-check:$2 = 123456789
|
||||
// gdb-command:print another_variable
|
||||
// gdb-check:$3 = 123456789.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print result
|
||||
//@ gdb-check:$1 = (17, 17)
|
||||
//@ gdb-command:print a_variable
|
||||
//@ gdb-check:$2 = 123456789
|
||||
//@ gdb-command:print another_variable
|
||||
//@ gdb-check:$3 = 123456789.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print result
|
||||
// gdb-check:$4 = (1212, 1212)
|
||||
// gdb-command:print a_variable
|
||||
// gdb-check:$5 = 123456789
|
||||
// gdb-command:print another_variable
|
||||
// gdb-check:$6 = 123456789.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print result
|
||||
//@ gdb-check:$4 = (1212, 1212)
|
||||
//@ gdb-command:print a_variable
|
||||
//@ gdb-check:$5 = 123456789
|
||||
//@ gdb-command:print another_variable
|
||||
//@ gdb-check:$6 = 123456789.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:b cross_crate_spans.rs:12
|
||||
// lldb-command:run
|
||||
//@ lldb-command:b cross_crate_spans.rs:12
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v result
|
||||
// lldb-check:[...] { 0 = 17 1 = 17 }
|
||||
// lldb-command:v a_variable
|
||||
// lldb-check:[...] 123456789
|
||||
// lldb-command:v another_variable
|
||||
// lldb-check:[...] 123456789.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v result
|
||||
//@ lldb-check:[...] { 0 = 17 1 = 17 }
|
||||
//@ lldb-command:v a_variable
|
||||
//@ lldb-check:[...] 123456789
|
||||
//@ lldb-command:v another_variable
|
||||
//@ lldb-check:[...] 123456789.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v result
|
||||
// lldb-check:[...] { 0 = 1212 1 = 1212 }
|
||||
// lldb-command:v a_variable
|
||||
// lldb-check:[...] 123456789
|
||||
// lldb-command:v another_variable
|
||||
// lldb-check:[...] 123456789.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v result
|
||||
//@ lldb-check:[...] { 0 = 1212 1 = 1212 }
|
||||
//@ lldb-command:v a_variable
|
||||
//@ lldb-check:[...] 123456789
|
||||
//@ lldb-command:v another_variable
|
||||
//@ lldb-check:[...] 123456789.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
|
||||
// This test makes sure that we can break in functions inlined from other crates.
|
||||
|
|
|
|||
|
|
@ -4,300 +4,300 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$1 = 1
|
||||
// gdb-command:print b
|
||||
// gdb-check:$2 = false
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$1 = 1
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$2 = false
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$3 = 2
|
||||
// gdb-command:print b
|
||||
// gdb-check:$4 = 3
|
||||
// gdb-command:print c
|
||||
// gdb-check:$5 = 4
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$3 = 2
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$4 = 3
|
||||
//@ gdb-command:print c
|
||||
//@ gdb-check:$5 = 4
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$6 = 5
|
||||
// gdb-command:print b
|
||||
// gdb-check:$7 = (6, 7)
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$6 = 5
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$7 = (6, 7)
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print h
|
||||
// gdb-check:$8 = 8
|
||||
// gdb-command:print i
|
||||
// gdb-check:$9 = destructured_fn_argument::Struct {a: 9, b: 10}
|
||||
// gdb-command:print j
|
||||
// gdb-check:$10 = 11
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print h
|
||||
//@ gdb-check:$8 = 8
|
||||
//@ gdb-command:print i
|
||||
//@ gdb-check:$9 = destructured_fn_argument::Struct {a: 9, b: 10}
|
||||
//@ gdb-command:print j
|
||||
//@ gdb-check:$10 = 11
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print k
|
||||
// gdb-check:$11 = 12
|
||||
// gdb-command:print l
|
||||
// gdb-check:$12 = 13
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print k
|
||||
//@ gdb-check:$11 = 12
|
||||
//@ gdb-command:print l
|
||||
//@ gdb-check:$12 = 13
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print m
|
||||
// gdb-check:$13 = 14
|
||||
// gdb-command:print n
|
||||
// gdb-check:$14 = 16
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print m
|
||||
//@ gdb-check:$13 = 14
|
||||
//@ gdb-command:print n
|
||||
//@ gdb-check:$14 = 16
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print o
|
||||
// gdb-check:$15 = 18
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print o
|
||||
//@ gdb-check:$15 = 18
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print p
|
||||
// gdb-check:$16 = 19
|
||||
// gdb-command:print q
|
||||
// gdb-check:$17 = 20
|
||||
// gdb-command:print r
|
||||
// gdb-check:$18 = destructured_fn_argument::Struct {a: 21, b: 22}
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print p
|
||||
//@ gdb-check:$16 = 19
|
||||
//@ gdb-command:print q
|
||||
//@ gdb-check:$17 = 20
|
||||
//@ gdb-command:print r
|
||||
//@ gdb-check:$18 = destructured_fn_argument::Struct {a: 21, b: 22}
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print s
|
||||
// gdb-check:$19 = 24
|
||||
// gdb-command:print t
|
||||
// gdb-check:$20 = 23
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print s
|
||||
//@ gdb-check:$19 = 24
|
||||
//@ gdb-command:print t
|
||||
//@ gdb-check:$20 = 23
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print u
|
||||
// gdb-check:$21 = 25
|
||||
// gdb-command:print v
|
||||
// gdb-check:$22 = 26
|
||||
// gdb-command:print w
|
||||
// gdb-check:$23 = 27
|
||||
// gdb-command:print x
|
||||
// gdb-check:$24 = 28
|
||||
// gdb-command:print y
|
||||
// gdb-check:$25 = 29
|
||||
// gdb-command:print z
|
||||
// gdb-check:$26 = 30
|
||||
// gdb-command:print ae
|
||||
// gdb-check:$27 = 31
|
||||
// gdb-command:print oe
|
||||
// gdb-check:$28 = 32
|
||||
// gdb-command:print ue
|
||||
// gdb-check:$29 = 33
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print u
|
||||
//@ gdb-check:$21 = 25
|
||||
//@ gdb-command:print v
|
||||
//@ gdb-check:$22 = 26
|
||||
//@ gdb-command:print w
|
||||
//@ gdb-check:$23 = 27
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$24 = 28
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$25 = 29
|
||||
//@ gdb-command:print z
|
||||
//@ gdb-check:$26 = 30
|
||||
//@ gdb-command:print ae
|
||||
//@ gdb-check:$27 = 31
|
||||
//@ gdb-command:print oe
|
||||
//@ gdb-check:$28 = 32
|
||||
//@ gdb-command:print ue
|
||||
//@ gdb-check:$29 = 33
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print aa
|
||||
// gdb-check:$30 = (34, 35)
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print aa
|
||||
//@ gdb-check:$30 = (34, 35)
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print bb
|
||||
// gdb-check:$31 = (36, 37)
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print bb
|
||||
//@ gdb-check:$31 = (36, 37)
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print cc
|
||||
// gdb-check:$32 = 38
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print cc
|
||||
//@ gdb-check:$32 = 38
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print dd
|
||||
// gdb-check:$33 = (40, 41, 42)
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print dd
|
||||
//@ gdb-check:$33 = (40, 41, 42)
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print *ee
|
||||
// gdb-check:$34 = (43, 44, 45)
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *ee
|
||||
//@ gdb-check:$34 = (43, 44, 45)
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print *ff
|
||||
// gdb-check:$35 = 46
|
||||
// gdb-command:print gg
|
||||
// gdb-check:$36 = (47, 48)
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *ff
|
||||
//@ gdb-check:$35 = 46
|
||||
//@ gdb-command:print gg
|
||||
//@ gdb-check:$36 = (47, 48)
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print *hh
|
||||
// gdb-check:$37 = 50
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *hh
|
||||
//@ gdb-check:$37 = 50
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print ii
|
||||
// gdb-check:$38 = 51
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print ii
|
||||
//@ gdb-check:$38 = 51
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print *jj
|
||||
// gdb-check:$39 = 52
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *jj
|
||||
//@ gdb-check:$39 = 52
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print kk
|
||||
// gdb-check:$40 = 53
|
||||
// gdb-command:print ll
|
||||
// gdb-check:$41 = 54
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print kk
|
||||
//@ gdb-check:$40 = 53
|
||||
//@ gdb-command:print ll
|
||||
//@ gdb-check:$41 = 54
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print mm
|
||||
// gdb-check:$42 = 55
|
||||
// gdb-command:print *nn
|
||||
// gdb-check:$43 = 56
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print mm
|
||||
//@ gdb-check:$42 = 55
|
||||
//@ gdb-command:print *nn
|
||||
//@ gdb-check:$43 = 56
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print oo
|
||||
// gdb-check:$44 = 57
|
||||
// gdb-command:print pp
|
||||
// gdb-check:$45 = 58
|
||||
// gdb-command:print qq
|
||||
// gdb-check:$46 = 59
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print oo
|
||||
//@ gdb-check:$44 = 57
|
||||
//@ gdb-command:print pp
|
||||
//@ gdb-check:$45 = 58
|
||||
//@ gdb-command:print qq
|
||||
//@ gdb-check:$46 = 59
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print rr
|
||||
// gdb-check:$47 = 60
|
||||
// gdb-command:print ss
|
||||
// gdb-check:$48 = 61
|
||||
// gdb-command:print tt
|
||||
// gdb-check:$49 = 62
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print rr
|
||||
//@ gdb-check:$47 = 60
|
||||
//@ gdb-command:print ss
|
||||
//@ gdb-check:$48 = 61
|
||||
//@ gdb-command:print tt
|
||||
//@ gdb-check:$49 = 62
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] false
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] false
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 2
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 3
|
||||
// lldb-command:v c
|
||||
// lldb-check:[...] 4
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 2
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 3
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:[...] 4
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 5
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] { 0 = 6 1 = 7 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 5
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] { 0 = 6 1 = 7 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v h
|
||||
// lldb-check:[...] 8
|
||||
// lldb-command:v i
|
||||
// lldb-check:[...] { a = 9 b = 10 }
|
||||
// lldb-command:v j
|
||||
// lldb-check:[...] 11
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v h
|
||||
//@ lldb-check:[...] 8
|
||||
//@ lldb-command:v i
|
||||
//@ lldb-check:[...] { a = 9 b = 10 }
|
||||
//@ lldb-command:v j
|
||||
//@ lldb-check:[...] 11
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v k
|
||||
// lldb-check:[...] 12
|
||||
// lldb-command:v l
|
||||
// lldb-check:[...] 13
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v k
|
||||
//@ lldb-check:[...] 12
|
||||
//@ lldb-command:v l
|
||||
//@ lldb-check:[...] 13
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v m
|
||||
// lldb-check:[...] 14
|
||||
// lldb-command:v n
|
||||
// lldb-check:[...] 16
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v m
|
||||
//@ lldb-check:[...] 14
|
||||
//@ lldb-command:v n
|
||||
//@ lldb-check:[...] 16
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v o
|
||||
// lldb-check:[...] 18
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v o
|
||||
//@ lldb-check:[...] 18
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v p
|
||||
// lldb-check:[...] 19
|
||||
// lldb-command:v q
|
||||
// lldb-check:[...] 20
|
||||
// lldb-command:v r
|
||||
// lldb-check:[...] { a = 21 b = 22 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v p
|
||||
//@ lldb-check:[...] 19
|
||||
//@ lldb-command:v q
|
||||
//@ lldb-check:[...] 20
|
||||
//@ lldb-command:v r
|
||||
//@ lldb-check:[...] { a = 21 b = 22 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v s
|
||||
// lldb-check:[...] 24
|
||||
// lldb-command:v t
|
||||
// lldb-check:[...] 23
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v s
|
||||
//@ lldb-check:[...] 24
|
||||
//@ lldb-command:v t
|
||||
//@ lldb-check:[...] 23
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v u
|
||||
// lldb-check:[...] 25
|
||||
// lldb-command:v v
|
||||
// lldb-check:[...] 26
|
||||
// lldb-command:v w
|
||||
// lldb-check:[...] 27
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 28
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 29
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 30
|
||||
// lldb-command:v ae
|
||||
// lldb-check:[...] 31
|
||||
// lldb-command:v oe
|
||||
// lldb-check:[...] 32
|
||||
// lldb-command:v ue
|
||||
// lldb-check:[...] 33
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v u
|
||||
//@ lldb-check:[...] 25
|
||||
//@ lldb-command:v v
|
||||
//@ lldb-check:[...] 26
|
||||
//@ lldb-command:v w
|
||||
//@ lldb-check:[...] 27
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 28
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 29
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 30
|
||||
//@ lldb-command:v ae
|
||||
//@ lldb-check:[...] 31
|
||||
//@ lldb-command:v oe
|
||||
//@ lldb-check:[...] 32
|
||||
//@ lldb-command:v ue
|
||||
//@ lldb-check:[...] 33
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v aa
|
||||
// lldb-check:[...] { 0 = 34 1 = 35 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v aa
|
||||
//@ lldb-check:[...] { 0 = 34 1 = 35 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v bb
|
||||
// lldb-check:[...] { 0 = 36 1 = 37 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v bb
|
||||
//@ lldb-check:[...] { 0 = 36 1 = 37 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v cc
|
||||
// lldb-check:[...] 38
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v cc
|
||||
//@ lldb-check:[...] 38
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v dd
|
||||
// lldb-check:[...] { 0 = 40 1 = 41 2 = 42 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v dd
|
||||
//@ lldb-check:[...] { 0 = 40 1 = 41 2 = 42 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v *ee
|
||||
// lldb-check:[...] { 0 = 43 1 = 44 2 = 45 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *ee
|
||||
//@ lldb-check:[...] { 0 = 43 1 = 44 2 = 45 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v *ff
|
||||
// lldb-check:[...] 46
|
||||
// lldb-command:v gg
|
||||
// lldb-check:[...] { 0 = 47 1 = 48 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *ff
|
||||
//@ lldb-check:[...] 46
|
||||
//@ lldb-command:v gg
|
||||
//@ lldb-check:[...] { 0 = 47 1 = 48 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v *hh
|
||||
// lldb-check:[...] 50
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *hh
|
||||
//@ lldb-check:[...] 50
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v ii
|
||||
// lldb-check:[...] 51
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v ii
|
||||
//@ lldb-check:[...] 51
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v *jj
|
||||
// lldb-check:[...] 52
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *jj
|
||||
//@ lldb-check:[...] 52
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v kk
|
||||
// lldb-check:[...] 53
|
||||
// lldb-command:v ll
|
||||
// lldb-check:[...] 54
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v kk
|
||||
//@ lldb-check:[...] 53
|
||||
//@ lldb-command:v ll
|
||||
//@ lldb-check:[...] 54
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v mm
|
||||
// lldb-check:[...] 55
|
||||
// lldb-command:v *nn
|
||||
// lldb-check:[...] 56
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v mm
|
||||
//@ lldb-check:[...] 55
|
||||
//@ lldb-command:v *nn
|
||||
//@ lldb-check:[...] 56
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v oo
|
||||
// lldb-check:[...] 57
|
||||
// lldb-command:v pp
|
||||
// lldb-check:[...] 58
|
||||
// lldb-command:v qq
|
||||
// lldb-check:[...] 59
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v oo
|
||||
//@ lldb-check:[...] 57
|
||||
//@ lldb-command:v pp
|
||||
//@ lldb-check:[...] 58
|
||||
//@ lldb-command:v qq
|
||||
//@ lldb-check:[...] 59
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v rr
|
||||
// lldb-check:[...] 60
|
||||
// lldb-command:v ss
|
||||
// lldb-check:[...] 61
|
||||
// lldb-command:v tt
|
||||
// lldb-check:[...] 62
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v rr
|
||||
//@ lldb-check:[...] 60
|
||||
//@ lldb-command:v ss
|
||||
//@ lldb-check:[...] 61
|
||||
//@ lldb-command:v tt
|
||||
//@ lldb-check:[...] 62
|
||||
//@ lldb-command:continue
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(box_patterns)]
|
||||
|
|
|
|||
|
|
@ -4,142 +4,142 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// DESTRUCTURED STRUCT
|
||||
// gdb-command:print x
|
||||
// gdb-check:$1 = 400
|
||||
// gdb-command:print y
|
||||
// gdb-check:$2 = 401.5
|
||||
// gdb-command:print z
|
||||
// gdb-check:$3 = true
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$1 = 400
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$2 = 401.5
|
||||
//@ gdb-command:print z
|
||||
//@ gdb-check:$3 = true
|
||||
//@ gdb-command:continue
|
||||
|
||||
// DESTRUCTURED TUPLE
|
||||
// gdb-command:print/x _i8
|
||||
// gdb-check:$4 = 0x6f
|
||||
// gdb-command:print/x _u8
|
||||
// gdb-check:$5 = 0x70
|
||||
// gdb-command:print _i16
|
||||
// gdb-check:$6 = -113
|
||||
// gdb-command:print _u16
|
||||
// gdb-check:$7 = 114
|
||||
// gdb-command:print _i32
|
||||
// gdb-check:$8 = -115
|
||||
// gdb-command:print _u32
|
||||
// gdb-check:$9 = 116
|
||||
// gdb-command:print _i64
|
||||
// gdb-check:$10 = -117
|
||||
// gdb-command:print _u64
|
||||
// gdb-check:$11 = 118
|
||||
// gdb-command:print _f32
|
||||
// gdb-check:$12 = 119.5
|
||||
// gdb-command:print _f64
|
||||
// gdb-check:$13 = 120.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print/x _i8
|
||||
//@ gdb-check:$4 = 0x6f
|
||||
//@ gdb-command:print/x _u8
|
||||
//@ gdb-check:$5 = 0x70
|
||||
//@ gdb-command:print _i16
|
||||
//@ gdb-check:$6 = -113
|
||||
//@ gdb-command:print _u16
|
||||
//@ gdb-check:$7 = 114
|
||||
//@ gdb-command:print _i32
|
||||
//@ gdb-check:$8 = -115
|
||||
//@ gdb-command:print _u32
|
||||
//@ gdb-check:$9 = 116
|
||||
//@ gdb-command:print _i64
|
||||
//@ gdb-check:$10 = -117
|
||||
//@ gdb-command:print _u64
|
||||
//@ gdb-check:$11 = 118
|
||||
//@ gdb-command:print _f32
|
||||
//@ gdb-check:$12 = 119.5
|
||||
//@ gdb-command:print _f64
|
||||
//@ gdb-check:$13 = 120.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// MORE COMPLEX CASE
|
||||
// gdb-command:print v1
|
||||
// gdb-check:$14 = 80000
|
||||
// gdb-command:print x1
|
||||
// gdb-check:$15 = 8000
|
||||
// gdb-command:print *y1
|
||||
// gdb-check:$16 = 80001.5
|
||||
// gdb-command:print z1
|
||||
// gdb-check:$17 = false
|
||||
// gdb-command:print *x2
|
||||
// gdb-check:$18 = -30000
|
||||
// gdb-command:print y2
|
||||
// gdb-check:$19 = -300001.5
|
||||
// gdb-command:print *z2
|
||||
// gdb-check:$20 = true
|
||||
// gdb-command:print v2
|
||||
// gdb-check:$21 = 854237.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print v1
|
||||
//@ gdb-check:$14 = 80000
|
||||
//@ gdb-command:print x1
|
||||
//@ gdb-check:$15 = 8000
|
||||
//@ gdb-command:print *y1
|
||||
//@ gdb-check:$16 = 80001.5
|
||||
//@ gdb-command:print z1
|
||||
//@ gdb-check:$17 = false
|
||||
//@ gdb-command:print *x2
|
||||
//@ gdb-check:$18 = -30000
|
||||
//@ gdb-command:print y2
|
||||
//@ gdb-check:$19 = -300001.5
|
||||
//@ gdb-command:print *z2
|
||||
//@ gdb-check:$20 = true
|
||||
//@ gdb-command:print v2
|
||||
//@ gdb-check:$21 = 854237.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// SIMPLE IDENTIFIER
|
||||
// gdb-command:print i
|
||||
// gdb-check:$22 = 1234
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print i
|
||||
//@ gdb-check:$22 = 1234
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print simple_struct_ident
|
||||
// gdb-check:$23 = destructured_for_loop_variable::Struct {x: 3537, y: 35437.5, z: true}
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print simple_struct_ident
|
||||
//@ gdb-check:$23 = destructured_for_loop_variable::Struct {x: 3537, y: 35437.5, z: true}
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print simple_tuple_ident
|
||||
// gdb-check:$24 = (34903493, 232323)
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print simple_tuple_ident
|
||||
//@ gdb-check:$24 = (34903493, 232323)
|
||||
//@ gdb-command:continue
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:type format add --format hex char
|
||||
// lldb-command:type format add --format hex 'unsigned char'
|
||||
//@ lldb-command:type format add --format hex char
|
||||
//@ lldb-command:type format add --format hex 'unsigned char'
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// DESTRUCTURED STRUCT
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 400
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 401.5
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] true
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 400
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 401.5
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] true
|
||||
//@ lldb-command:continue
|
||||
|
||||
// DESTRUCTURED TUPLE
|
||||
// lldb-command:v _i8
|
||||
// lldb-check:[...] 0x6f
|
||||
// lldb-command:v _u8
|
||||
// lldb-check:[...] 0x70
|
||||
// lldb-command:v _i16
|
||||
// lldb-check:[...] -113
|
||||
// lldb-command:v _u16
|
||||
// lldb-check:[...] 114
|
||||
// lldb-command:v _i32
|
||||
// lldb-check:[...] -115
|
||||
// lldb-command:v _u32
|
||||
// lldb-check:[...] 116
|
||||
// lldb-command:v _i64
|
||||
// lldb-check:[...] -117
|
||||
// lldb-command:v _u64
|
||||
// lldb-check:[...] 118
|
||||
// lldb-command:v _f32
|
||||
// lldb-check:[...] 119.5
|
||||
// lldb-command:v _f64
|
||||
// lldb-check:[...] 120.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v _i8
|
||||
//@ lldb-check:[...] 0x6f
|
||||
//@ lldb-command:v _u8
|
||||
//@ lldb-check:[...] 0x70
|
||||
//@ lldb-command:v _i16
|
||||
//@ lldb-check:[...] -113
|
||||
//@ lldb-command:v _u16
|
||||
//@ lldb-check:[...] 114
|
||||
//@ lldb-command:v _i32
|
||||
//@ lldb-check:[...] -115
|
||||
//@ lldb-command:v _u32
|
||||
//@ lldb-check:[...] 116
|
||||
//@ lldb-command:v _i64
|
||||
//@ lldb-check:[...] -117
|
||||
//@ lldb-command:v _u64
|
||||
//@ lldb-check:[...] 118
|
||||
//@ lldb-command:v _f32
|
||||
//@ lldb-check:[...] 119.5
|
||||
//@ lldb-command:v _f64
|
||||
//@ lldb-check:[...] 120.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// MORE COMPLEX CASE
|
||||
// lldb-command:v v1
|
||||
// lldb-check:[...] 80000
|
||||
// lldb-command:v x1
|
||||
// lldb-check:[...] 8000
|
||||
// lldb-command:v *y1
|
||||
// lldb-check:[...] 80001.5
|
||||
// lldb-command:v z1
|
||||
// lldb-check:[...] false
|
||||
// lldb-command:v *x2
|
||||
// lldb-check:[...] -30000
|
||||
// lldb-command:v y2
|
||||
// lldb-check:[...] -300001.5
|
||||
// lldb-command:v *z2
|
||||
// lldb-check:[...] true
|
||||
// lldb-command:v v2
|
||||
// lldb-check:[...] 854237.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v v1
|
||||
//@ lldb-check:[...] 80000
|
||||
//@ lldb-command:v x1
|
||||
//@ lldb-check:[...] 8000
|
||||
//@ lldb-command:v *y1
|
||||
//@ lldb-check:[...] 80001.5
|
||||
//@ lldb-command:v z1
|
||||
//@ lldb-check:[...] false
|
||||
//@ lldb-command:v *x2
|
||||
//@ lldb-check:[...] -30000
|
||||
//@ lldb-command:v y2
|
||||
//@ lldb-check:[...] -300001.5
|
||||
//@ lldb-command:v *z2
|
||||
//@ lldb-check:[...] true
|
||||
//@ lldb-command:v v2
|
||||
//@ lldb-check:[...] 854237.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// SIMPLE IDENTIFIER
|
||||
// lldb-command:v i
|
||||
// lldb-check:[...] 1234
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v i
|
||||
//@ lldb-check:[...] 1234
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v simple_struct_ident
|
||||
// lldb-check:[...] { x = 3537 y = 35437.5 z = true }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v simple_struct_ident
|
||||
//@ lldb-check:[...] { x = 3537 y = 35437.5 z = true }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v simple_tuple_ident
|
||||
// lldb-check:[...] { 0 = 34903493 1 = 232323 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v simple_tuple_ident
|
||||
//@ lldb-check:[...] { 0 = 34903493 1 = 232323 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(box_patterns)]
|
||||
|
|
|
|||
|
|
@ -4,232 +4,232 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$1 = 1
|
||||
// gdb-command:print b
|
||||
// gdb-check:$2 = false
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$1 = 1
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$2 = false
|
||||
|
||||
// gdb-command:print c
|
||||
// gdb-check:$3 = 2
|
||||
// gdb-command:print d
|
||||
// gdb-check:$4 = 3
|
||||
// gdb-command:print e
|
||||
// gdb-check:$5 = 4
|
||||
//@ gdb-command:print c
|
||||
//@ gdb-check:$3 = 2
|
||||
//@ gdb-command:print d
|
||||
//@ gdb-check:$4 = 3
|
||||
//@ gdb-command:print e
|
||||
//@ gdb-check:$5 = 4
|
||||
|
||||
// gdb-command:print f
|
||||
// gdb-check:$6 = 5
|
||||
// gdb-command:print g
|
||||
// gdb-check:$7 = (6, 7)
|
||||
//@ gdb-command:print f
|
||||
//@ gdb-check:$6 = 5
|
||||
//@ gdb-command:print g
|
||||
//@ gdb-check:$7 = (6, 7)
|
||||
|
||||
// gdb-command:print h
|
||||
// gdb-check:$8 = 8
|
||||
// gdb-command:print i
|
||||
// gdb-check:$9 = destructured_local::Struct {a: 9, b: 10}
|
||||
// gdb-command:print j
|
||||
// gdb-check:$10 = 11
|
||||
//@ gdb-command:print h
|
||||
//@ gdb-check:$8 = 8
|
||||
//@ gdb-command:print i
|
||||
//@ gdb-check:$9 = destructured_local::Struct {a: 9, b: 10}
|
||||
//@ gdb-command:print j
|
||||
//@ gdb-check:$10 = 11
|
||||
|
||||
// gdb-command:print k
|
||||
// gdb-check:$11 = 12
|
||||
// gdb-command:print l
|
||||
// gdb-check:$12 = 13
|
||||
//@ gdb-command:print k
|
||||
//@ gdb-check:$11 = 12
|
||||
//@ gdb-command:print l
|
||||
//@ gdb-check:$12 = 13
|
||||
|
||||
// gdb-command:print m
|
||||
// gdb-check:$13 = 14
|
||||
// gdb-command:print n
|
||||
// gdb-check:$14 = 16
|
||||
//@ gdb-command:print m
|
||||
//@ gdb-check:$13 = 14
|
||||
//@ gdb-command:print n
|
||||
//@ gdb-check:$14 = 16
|
||||
|
||||
// gdb-command:print o
|
||||
// gdb-check:$15 = 18
|
||||
//@ gdb-command:print o
|
||||
//@ gdb-check:$15 = 18
|
||||
|
||||
// gdb-command:print p
|
||||
// gdb-check:$16 = 19
|
||||
// gdb-command:print q
|
||||
// gdb-check:$17 = 20
|
||||
// gdb-command:print r
|
||||
// gdb-check:$18 = destructured_local::Struct {a: 21, b: 22}
|
||||
//@ gdb-command:print p
|
||||
//@ gdb-check:$16 = 19
|
||||
//@ gdb-command:print q
|
||||
//@ gdb-check:$17 = 20
|
||||
//@ gdb-command:print r
|
||||
//@ gdb-check:$18 = destructured_local::Struct {a: 21, b: 22}
|
||||
|
||||
// gdb-command:print s
|
||||
// gdb-check:$19 = 24
|
||||
// gdb-command:print t
|
||||
// gdb-check:$20 = 23
|
||||
//@ gdb-command:print s
|
||||
//@ gdb-check:$19 = 24
|
||||
//@ gdb-command:print t
|
||||
//@ gdb-check:$20 = 23
|
||||
|
||||
// gdb-command:print u
|
||||
// gdb-check:$21 = 25
|
||||
// gdb-command:print v
|
||||
// gdb-check:$22 = 26
|
||||
// gdb-command:print w
|
||||
// gdb-check:$23 = 27
|
||||
// gdb-command:print x
|
||||
// gdb-check:$24 = 28
|
||||
// gdb-command:print y
|
||||
// gdb-check:$25 = 29
|
||||
// gdb-command:print z
|
||||
// gdb-check:$26 = 30
|
||||
// gdb-command:print ae
|
||||
// gdb-check:$27 = 31
|
||||
// gdb-command:print oe
|
||||
// gdb-check:$28 = 32
|
||||
// gdb-command:print ue
|
||||
// gdb-check:$29 = 33
|
||||
//@ gdb-command:print u
|
||||
//@ gdb-check:$21 = 25
|
||||
//@ gdb-command:print v
|
||||
//@ gdb-check:$22 = 26
|
||||
//@ gdb-command:print w
|
||||
//@ gdb-check:$23 = 27
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$24 = 28
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$25 = 29
|
||||
//@ gdb-command:print z
|
||||
//@ gdb-check:$26 = 30
|
||||
//@ gdb-command:print ae
|
||||
//@ gdb-check:$27 = 31
|
||||
//@ gdb-command:print oe
|
||||
//@ gdb-check:$28 = 32
|
||||
//@ gdb-command:print ue
|
||||
//@ gdb-check:$29 = 33
|
||||
|
||||
// gdb-command:print aa
|
||||
// gdb-check:$30 = (34, 35)
|
||||
//@ gdb-command:print aa
|
||||
//@ gdb-check:$30 = (34, 35)
|
||||
|
||||
// gdb-command:print bb
|
||||
// gdb-check:$31 = (36, 37)
|
||||
//@ gdb-command:print bb
|
||||
//@ gdb-check:$31 = (36, 37)
|
||||
|
||||
// gdb-command:print cc
|
||||
// gdb-check:$32 = 38
|
||||
//@ gdb-command:print cc
|
||||
//@ gdb-check:$32 = 38
|
||||
|
||||
// gdb-command:print dd
|
||||
// gdb-check:$33 = (40, 41, 42)
|
||||
//@ gdb-command:print dd
|
||||
//@ gdb-check:$33 = (40, 41, 42)
|
||||
|
||||
// gdb-command:print *ee
|
||||
// gdb-check:$34 = (43, 44, 45)
|
||||
//@ gdb-command:print *ee
|
||||
//@ gdb-check:$34 = (43, 44, 45)
|
||||
|
||||
// gdb-command:print *ff
|
||||
// gdb-check:$35 = 46
|
||||
//@ gdb-command:print *ff
|
||||
//@ gdb-check:$35 = 46
|
||||
|
||||
// gdb-command:print gg
|
||||
// gdb-check:$36 = (47, 48)
|
||||
//@ gdb-command:print gg
|
||||
//@ gdb-check:$36 = (47, 48)
|
||||
|
||||
// gdb-command:print *hh
|
||||
// gdb-check:$37 = 50
|
||||
//@ gdb-command:print *hh
|
||||
//@ gdb-check:$37 = 50
|
||||
|
||||
// gdb-command:print ii
|
||||
// gdb-check:$38 = 51
|
||||
//@ gdb-command:print ii
|
||||
//@ gdb-check:$38 = 51
|
||||
|
||||
// gdb-command:print *jj
|
||||
// gdb-check:$39 = 52
|
||||
//@ gdb-command:print *jj
|
||||
//@ gdb-check:$39 = 52
|
||||
|
||||
// gdb-command:print kk
|
||||
// gdb-check:$40 = 53
|
||||
//@ gdb-command:print kk
|
||||
//@ gdb-check:$40 = 53
|
||||
|
||||
// gdb-command:print ll
|
||||
// gdb-check:$41 = 54
|
||||
//@ gdb-command:print ll
|
||||
//@ gdb-check:$41 = 54
|
||||
|
||||
// gdb-command:print mm
|
||||
// gdb-check:$42 = 55
|
||||
//@ gdb-command:print mm
|
||||
//@ gdb-check:$42 = 55
|
||||
|
||||
// gdb-command:print *nn
|
||||
// gdb-check:$43 = 56
|
||||
//@ gdb-command:print *nn
|
||||
//@ gdb-check:$43 = 56
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] false
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] false
|
||||
|
||||
// lldb-command:v c
|
||||
// lldb-check:[...] 2
|
||||
// lldb-command:v d
|
||||
// lldb-check:[...] 3
|
||||
// lldb-command:v e
|
||||
// lldb-check:[...] 4
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:[...] 2
|
||||
//@ lldb-command:v d
|
||||
//@ lldb-check:[...] 3
|
||||
//@ lldb-command:v e
|
||||
//@ lldb-check:[...] 4
|
||||
|
||||
// lldb-command:v f
|
||||
// lldb-check:[...] 5
|
||||
// lldb-command:v g
|
||||
// lldb-check:[...] { 0 = 6 1 = 7 }
|
||||
//@ lldb-command:v f
|
||||
//@ lldb-check:[...] 5
|
||||
//@ lldb-command:v g
|
||||
//@ lldb-check:[...] { 0 = 6 1 = 7 }
|
||||
|
||||
// lldb-command:v h
|
||||
// lldb-check:[...] 8
|
||||
// lldb-command:v i
|
||||
// lldb-check:[...] { a = 9 b = 10 }
|
||||
// lldb-command:v j
|
||||
// lldb-check:[...] 11
|
||||
//@ lldb-command:v h
|
||||
//@ lldb-check:[...] 8
|
||||
//@ lldb-command:v i
|
||||
//@ lldb-check:[...] { a = 9 b = 10 }
|
||||
//@ lldb-command:v j
|
||||
//@ lldb-check:[...] 11
|
||||
|
||||
// lldb-command:v k
|
||||
// lldb-check:[...] 12
|
||||
// lldb-command:v l
|
||||
// lldb-check:[...] 13
|
||||
//@ lldb-command:v k
|
||||
//@ lldb-check:[...] 12
|
||||
//@ lldb-command:v l
|
||||
//@ lldb-check:[...] 13
|
||||
|
||||
// lldb-command:v m
|
||||
// lldb-check:[...] 14
|
||||
// lldb-command:v n
|
||||
// lldb-check:[...] 16
|
||||
//@ lldb-command:v m
|
||||
//@ lldb-check:[...] 14
|
||||
//@ lldb-command:v n
|
||||
//@ lldb-check:[...] 16
|
||||
|
||||
// lldb-command:v o
|
||||
// lldb-check:[...] 18
|
||||
//@ lldb-command:v o
|
||||
//@ lldb-check:[...] 18
|
||||
|
||||
// lldb-command:v p
|
||||
// lldb-check:[...] 19
|
||||
// lldb-command:v q
|
||||
// lldb-check:[...] 20
|
||||
// lldb-command:v r
|
||||
// lldb-check:[...] { a = 21 b = 22 }
|
||||
//@ lldb-command:v p
|
||||
//@ lldb-check:[...] 19
|
||||
//@ lldb-command:v q
|
||||
//@ lldb-check:[...] 20
|
||||
//@ lldb-command:v r
|
||||
//@ lldb-check:[...] { a = 21 b = 22 }
|
||||
|
||||
// lldb-command:v s
|
||||
// lldb-check:[...] 24
|
||||
// lldb-command:v t
|
||||
// lldb-check:[...] 23
|
||||
//@ lldb-command:v s
|
||||
//@ lldb-check:[...] 24
|
||||
//@ lldb-command:v t
|
||||
//@ lldb-check:[...] 23
|
||||
|
||||
// lldb-command:v u
|
||||
// lldb-check:[...] 25
|
||||
// lldb-command:v v
|
||||
// lldb-check:[...] 26
|
||||
// lldb-command:v w
|
||||
// lldb-check:[...] 27
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 28
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 29
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 30
|
||||
// lldb-command:v ae
|
||||
// lldb-check:[...] 31
|
||||
// lldb-command:v oe
|
||||
// lldb-check:[...] 32
|
||||
// lldb-command:v ue
|
||||
// lldb-check:[...] 33
|
||||
//@ lldb-command:v u
|
||||
//@ lldb-check:[...] 25
|
||||
//@ lldb-command:v v
|
||||
//@ lldb-check:[...] 26
|
||||
//@ lldb-command:v w
|
||||
//@ lldb-check:[...] 27
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 28
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 29
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 30
|
||||
//@ lldb-command:v ae
|
||||
//@ lldb-check:[...] 31
|
||||
//@ lldb-command:v oe
|
||||
//@ lldb-check:[...] 32
|
||||
//@ lldb-command:v ue
|
||||
//@ lldb-check:[...] 33
|
||||
|
||||
// lldb-command:v aa
|
||||
// lldb-check:[...] { 0 = 34 1 = 35 }
|
||||
//@ lldb-command:v aa
|
||||
//@ lldb-check:[...] { 0 = 34 1 = 35 }
|
||||
|
||||
// lldb-command:v bb
|
||||
// lldb-check:[...] { 0 = 36 1 = 37 }
|
||||
//@ lldb-command:v bb
|
||||
//@ lldb-check:[...] { 0 = 36 1 = 37 }
|
||||
|
||||
// lldb-command:v cc
|
||||
// lldb-check:[...] 38
|
||||
//@ lldb-command:v cc
|
||||
//@ lldb-check:[...] 38
|
||||
|
||||
// lldb-command:v dd
|
||||
// lldb-check:[...] { 0 = 40 1 = 41 2 = 42 }
|
||||
//@ lldb-command:v dd
|
||||
//@ lldb-check:[...] { 0 = 40 1 = 41 2 = 42 }
|
||||
|
||||
// lldb-command:v *ee
|
||||
// lldb-check:[...] { 0 = 43 1 = 44 2 = 45 }
|
||||
//@ lldb-command:v *ee
|
||||
//@ lldb-check:[...] { 0 = 43 1 = 44 2 = 45 }
|
||||
|
||||
// lldb-command:v *ff
|
||||
// lldb-check:[...] 46
|
||||
//@ lldb-command:v *ff
|
||||
//@ lldb-check:[...] 46
|
||||
|
||||
// lldb-command:v gg
|
||||
// lldb-check:[...] { 0 = 47 1 = 48 }
|
||||
//@ lldb-command:v gg
|
||||
//@ lldb-check:[...] { 0 = 47 1 = 48 }
|
||||
|
||||
// lldb-command:v *hh
|
||||
// lldb-check:[...] 50
|
||||
//@ lldb-command:v *hh
|
||||
//@ lldb-check:[...] 50
|
||||
|
||||
// lldb-command:v ii
|
||||
// lldb-check:[...] 51
|
||||
//@ lldb-command:v ii
|
||||
//@ lldb-check:[...] 51
|
||||
|
||||
// lldb-command:v *jj
|
||||
// lldb-check:[...] 52
|
||||
//@ lldb-command:v *jj
|
||||
//@ lldb-check:[...] 52
|
||||
|
||||
// lldb-command:v kk
|
||||
// lldb-check:[...] 53
|
||||
//@ lldb-command:v kk
|
||||
//@ lldb-check:[...] 53
|
||||
|
||||
// lldb-command:v ll
|
||||
// lldb-check:[...] 54
|
||||
//@ lldb-command:v ll
|
||||
//@ lldb-check:[...] 54
|
||||
|
||||
// lldb-command:v mm
|
||||
// lldb-check:[...] 55
|
||||
//@ lldb-command:v mm
|
||||
//@ lldb-check:[...] 55
|
||||
|
||||
// lldb-command:v *nn
|
||||
// lldb-check:[...] 56
|
||||
//@ lldb-command:v *nn
|
||||
//@ lldb-check:[...] 56
|
||||
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
|
|
|||
|
|
@ -12,52 +12,52 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc1[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc2[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc3[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc4[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc5[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc6[...]
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc1[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc2[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc3[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc4[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc5[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc6[...]
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:set set stop-line-count-before 0
|
||||
// lldb-command:set set stop-line-count-after 1
|
||||
//@ lldb-command:set set stop-line-count-before 0
|
||||
//@ lldb-command:set set stop-line-count-after 1
|
||||
// Can't set both to zero or lldb will stop printing source at all. So it will output the current
|
||||
// line and the next. We deal with this by having at least 2 lines between the #loc's
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #loc1 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #loc2 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #loc3 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #loc4 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #loc5 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #loc6 [...]
|
||||
//@ lldb-command:run
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #loc1 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #loc2 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #loc3 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #loc4 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #loc5 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #loc6 [...]
|
||||
|
||||
fn main() {
|
||||
|
||||
|
|
|
|||
|
|
@ -5,25 +5,25 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run 7
|
||||
//@ gdb-command:run 7
|
||||
|
||||
// gdb-command:next
|
||||
// gdb-command:next
|
||||
// gdb-check:[...]#loc1[...]
|
||||
// gdb-command:next
|
||||
// gdb-check:[...]#loc2[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:next
|
||||
//@ gdb-check:[...]#loc1[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-check:[...]#loc2[...]
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run 7
|
||||
//@ lldb-command:run 7
|
||||
|
||||
// lldb-command:next
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...]#loc1[...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...]#loc2[...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...]#loc1[...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...]#loc2[...]
|
||||
|
||||
use std::env;
|
||||
use std::num::ParseIntError;
|
||||
|
|
|
|||
|
|
@ -3,13 +3,13 @@
|
|||
|
||||
// === CDB TESTS ==================================================================================
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx duration
|
||||
// cdb-check:duration : 5s 12ns [Type: core::time::Duration]
|
||||
// cdb-check: [<Raw View>] [Type: core::time::Duration]
|
||||
// cdb-check: seconds : 5 [Type: unsigned __int64]
|
||||
// cdb-check: nanoseconds : 12 [Type: unsigned int]
|
||||
//@ cdb-command: dx duration
|
||||
//@ cdb-check:duration : 5s 12ns [Type: core::time::Duration]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::time::Duration]
|
||||
//@ cdb-check: seconds : 5 [Type: unsigned __int64]
|
||||
//@ cdb-check: nanoseconds : 12 [Type: unsigned int]
|
||||
|
||||
use std::time::Duration;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,59 +4,59 @@
|
|||
|
||||
// === CDB TESTS ==================================================================================
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// The .nvlist command in cdb does not always have a deterministic output
|
||||
// for the order that NatVis files are displayed.
|
||||
|
||||
// cdb-command: .nvlist
|
||||
// cdb-check: [...].exe (embedded NatVis "[...]embedded_visualizer-0.natvis")
|
||||
//@ cdb-command: .nvlist
|
||||
//@ cdb-check: [...].exe (embedded NatVis "[...]embedded_visualizer-0.natvis")
|
||||
|
||||
// cdb-command: .nvlist
|
||||
// cdb-check: [...].exe (embedded NatVis "[...]embedded_visualizer-1.natvis")
|
||||
//@ cdb-command: .nvlist
|
||||
//@ cdb-check: [...].exe (embedded NatVis "[...]embedded_visualizer-1.natvis")
|
||||
|
||||
// cdb-command: .nvlist
|
||||
// cdb-check: [...].exe (embedded NatVis "[...]embedded_visualizer-2.natvis")
|
||||
//@ cdb-command: .nvlist
|
||||
//@ cdb-check: [...].exe (embedded NatVis "[...]embedded_visualizer-2.natvis")
|
||||
|
||||
// cdb-command: dx point_a
|
||||
// cdb-check:point_a : (0, 0) [Type: embedded_visualizer::point::Point]
|
||||
// cdb-check: [<Raw View>] [Type: embedded_visualizer::point::Point]
|
||||
// cdb-check: [x] : 0 [Type: int]
|
||||
// cdb-check: [y] : 0 [Type: int]
|
||||
//@ cdb-command: dx point_a
|
||||
//@ cdb-check:point_a : (0, 0) [Type: embedded_visualizer::point::Point]
|
||||
//@ cdb-check: [<Raw View>] [Type: embedded_visualizer::point::Point]
|
||||
//@ cdb-check: [x] : 0 [Type: int]
|
||||
//@ cdb-check: [y] : 0 [Type: int]
|
||||
|
||||
// cdb-command: dx point_b
|
||||
// cdb-check:point_b : (5, 8) [Type: embedded_visualizer::point::Point]
|
||||
// cdb-check: [<Raw View>] [Type: embedded_visualizer::point::Point]
|
||||
// cdb-check: [x] : 5 [Type: int]
|
||||
// cdb-check: [y] : 8 [Type: int]
|
||||
//@ cdb-command: dx point_b
|
||||
//@ cdb-check:point_b : (5, 8) [Type: embedded_visualizer::point::Point]
|
||||
//@ cdb-check: [<Raw View>] [Type: embedded_visualizer::point::Point]
|
||||
//@ cdb-check: [x] : 5 [Type: int]
|
||||
//@ cdb-check: [y] : 8 [Type: int]
|
||||
|
||||
// cdb-command: dx line
|
||||
// cdb-check:line : ((0, 0), (5, 8)) [Type: embedded_visualizer::Line]
|
||||
// cdb-check: [<Raw View>] [Type: embedded_visualizer::Line]
|
||||
// cdb-check: [a] : (0, 0) [Type: embedded_visualizer::point::Point]
|
||||
// cdb-check: [b] : (5, 8) [Type: embedded_visualizer::point::Point]
|
||||
//@ cdb-command: dx line
|
||||
//@ cdb-check:line : ((0, 0), (5, 8)) [Type: embedded_visualizer::Line]
|
||||
//@ cdb-check: [<Raw View>] [Type: embedded_visualizer::Line]
|
||||
//@ cdb-check: [a] : (0, 0) [Type: embedded_visualizer::point::Point]
|
||||
//@ cdb-check: [b] : (5, 8) [Type: embedded_visualizer::point::Point]
|
||||
|
||||
// cdb-command: dx person
|
||||
// cdb-check:person : "Person A" is 10 years old. [Type: dependency_with_embedded_visualizers::Person]
|
||||
// cdb-check: [<Raw View>] [Type: dependency_with_embedded_visualizers::Person]
|
||||
// cdb-check: [name] : "Person A" [Type: alloc::string::String]
|
||||
// cdb-check: [age] : 10 [Type: int]
|
||||
//@ cdb-command: dx person
|
||||
//@ cdb-check:person : "Person A" is 10 years old. [Type: dependency_with_embedded_visualizers::Person]
|
||||
//@ cdb-check: [<Raw View>] [Type: dependency_with_embedded_visualizers::Person]
|
||||
//@ cdb-check: [name] : "Person A" [Type: alloc::string::String]
|
||||
//@ cdb-check: [age] : 10 [Type: int]
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command: run
|
||||
//@ gdb-command: run
|
||||
|
||||
// gdb-command: info auto-load python-scripts
|
||||
// gdb-check:Yes pretty-printer-embedded_visualizer-0
|
||||
// gdb-check:Yes pretty-printer-embedded_visualizer-1
|
||||
// gdb-command: print point_a
|
||||
// gdb-check:$1 = (0, 0)
|
||||
// gdb-command: print point_b
|
||||
// gdb-check:$2 = (5, 8)
|
||||
// gdb-command: print line
|
||||
// gdb-check:$3 = ((0, 0), (5, 8))
|
||||
// gdb-command: print person
|
||||
// gdb-check:$4 = "Person A" is 10 years old.
|
||||
//@ gdb-command: info auto-load python-scripts
|
||||
//@ gdb-check:Yes pretty-printer-embedded_visualizer-0
|
||||
//@ gdb-check:Yes pretty-printer-embedded_visualizer-1
|
||||
//@ gdb-command: print point_a
|
||||
//@ gdb-check:$1 = (0, 0)
|
||||
//@ gdb-command: print point_b
|
||||
//@ gdb-check:$2 = (5, 8)
|
||||
//@ gdb-command: print line
|
||||
//@ gdb-check:$3 = ((0, 0), (5, 8))
|
||||
//@ gdb-command: print person
|
||||
//@ gdb-check:$4 = "Person A" is 10 years old.
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![debugger_visualizer(natvis_file = "embedded-visualizer.natvis")]
|
||||
|
|
|
|||
|
|
@ -5,23 +5,23 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command: run
|
||||
//@ gdb-command: run
|
||||
|
||||
// gdb-command: print empty_string
|
||||
// gdb-check:$1 = ""
|
||||
//@ gdb-command: print empty_string
|
||||
//@ gdb-check:$1 = ""
|
||||
|
||||
// gdb-command: print empty_str
|
||||
// gdb-check:$2 = ""
|
||||
//@ gdb-command: print empty_str
|
||||
//@ gdb-check:$2 = ""
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:fr v empty_string
|
||||
// lldb-check:[...] empty_string = ""
|
||||
//@ lldb-command:fr v empty_string
|
||||
//@ lldb-check:[...] empty_string = ""
|
||||
|
||||
// lldb-command:fr v empty_str
|
||||
// lldb-check:[...] empty_str = ""
|
||||
//@ lldb-command:fr v empty_str
|
||||
//@ lldb-check:[...] empty_str = ""
|
||||
|
||||
fn main() {
|
||||
let empty_string = String::new();
|
||||
|
|
|
|||
|
|
@ -5,17 +5,17 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print *abc
|
||||
// gdb-check:$1 = enum_thinlto::ABC::TheA{x: 0, y: 8970181431921507452}
|
||||
//@ gdb-command:print *abc
|
||||
//@ gdb-check:$1 = enum_thinlto::ABC::TheA{x: 0, y: 8970181431921507452}
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v *abc
|
||||
// lldb-check:(enum_thinlto::ABC) *abc = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
|
||||
//@ lldb-command:v *abc
|
||||
//@ lldb-check:(enum_thinlto::ABC) *abc = TheA{x:0, y:8970181431921507452} { x = 0 y = 8970181431921507452 }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -4,40 +4,40 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print no_padding1
|
||||
// gdb-check:$1 = evec_in_struct::NoPadding1 {x: [0, 1, 2], y: -3, z: [4.5, 5.5]}
|
||||
// gdb-command:print no_padding2
|
||||
// gdb-check:$2 = evec_in_struct::NoPadding2 {x: [6, 7, 8], y: [[9, 10], [11, 12]]}
|
||||
//@ gdb-command:print no_padding1
|
||||
//@ gdb-check:$1 = evec_in_struct::NoPadding1 {x: [0, 1, 2], y: -3, z: [4.5, 5.5]}
|
||||
//@ gdb-command:print no_padding2
|
||||
//@ gdb-check:$2 = evec_in_struct::NoPadding2 {x: [6, 7, 8], y: [[9, 10], [11, 12]]}
|
||||
|
||||
// gdb-command:print struct_internal_padding
|
||||
// gdb-check:$3 = evec_in_struct::StructInternalPadding {x: [13, 14], y: [15, 16]}
|
||||
//@ gdb-command:print struct_internal_padding
|
||||
//@ gdb-check:$3 = evec_in_struct::StructInternalPadding {x: [13, 14], y: [15, 16]}
|
||||
|
||||
// gdb-command:print single_vec
|
||||
// gdb-check:$4 = evec_in_struct::SingleVec {x: [17, 18, 19, 20, 21]}
|
||||
//@ gdb-command:print single_vec
|
||||
//@ gdb-check:$4 = evec_in_struct::SingleVec {x: [17, 18, 19, 20, 21]}
|
||||
|
||||
// gdb-command:print struct_padded_at_end
|
||||
// gdb-check:$5 = evec_in_struct::StructPaddedAtEnd {x: [22, 23], y: [24, 25]}
|
||||
//@ gdb-command:print struct_padded_at_end
|
||||
//@ gdb-check:$5 = evec_in_struct::StructPaddedAtEnd {x: [22, 23], y: [24, 25]}
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v no_padding1
|
||||
// lldb-check:[...] { x = { [0] = 0 [1] = 1 [2] = 2 } y = -3 z = { [0] = 4.5 [1] = 5.5 } }
|
||||
// lldb-command:v no_padding2
|
||||
// lldb-check:[...] { x = { [0] = 6 [1] = 7 [2] = 8 } y = { [0] = { [0] = 9 [1] = 10 } [1] = { [0] = 11 [1] = 12 } } }
|
||||
//@ lldb-command:v no_padding1
|
||||
//@ lldb-check:[...] { x = { [0] = 0 [1] = 1 [2] = 2 } y = -3 z = { [0] = 4.5 [1] = 5.5 } }
|
||||
//@ lldb-command:v no_padding2
|
||||
//@ lldb-check:[...] { x = { [0] = 6 [1] = 7 [2] = 8 } y = { [0] = { [0] = 9 [1] = 10 } [1] = { [0] = 11 [1] = 12 } } }
|
||||
|
||||
// lldb-command:v struct_internal_padding
|
||||
// lldb-check:[...] { x = { [0] = 13 [1] = 14 } y = { [0] = 15 [1] = 16 } }
|
||||
//@ lldb-command:v struct_internal_padding
|
||||
//@ lldb-check:[...] { x = { [0] = 13 [1] = 14 } y = { [0] = 15 [1] = 16 } }
|
||||
|
||||
// lldb-command:v single_vec
|
||||
// lldb-check:[...] { x = { [0] = 17 [1] = 18 [2] = 19 [3] = 20 [4] = 21 } }
|
||||
//@ lldb-command:v single_vec
|
||||
//@ lldb-check:[...] { x = { [0] = 17 [1] = 18 [2] = 19 [3] = 20 [4] = 21 } }
|
||||
|
||||
// lldb-command:v struct_padded_at_end
|
||||
// lldb-check:[...] { x = { [0] = 22 [1] = 23 } y = { [0] = 24 [1] = 25 } }
|
||||
//@ lldb-command:v struct_padded_at_end
|
||||
//@ lldb-check:[...] { x = { [0] = 22 [1] = 23 } y = { [0] = 24 [1] = 25 } }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -3,34 +3,34 @@
|
|||
//@ ignore-backends: gcc
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:printf "s = \"%s\"\n", s
|
||||
// gdb-check:s = "abcd"
|
||||
// gdb-command:print len
|
||||
// gdb-check:$1 = 20
|
||||
// gdb-command:print local0
|
||||
// gdb-check:$2 = 19
|
||||
// gdb-command:print local1
|
||||
// gdb-check:$3 = true
|
||||
// gdb-command:print local2
|
||||
// gdb-check:$4 = 20.5
|
||||
//@ gdb-command:printf "s = \"%s\"\n", s
|
||||
//@ gdb-check:s = "abcd"
|
||||
//@ gdb-command:print len
|
||||
//@ gdb-check:$1 = 20
|
||||
//@ gdb-command:print local0
|
||||
//@ gdb-check:$2 = 19
|
||||
//@ gdb-command:print local1
|
||||
//@ gdb-check:$3 = true
|
||||
//@ gdb-command:print local2
|
||||
//@ gdb-check:$4 = 20.5
|
||||
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:continue
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v len
|
||||
// lldb-check:[...] 20
|
||||
// lldb-command:v local0
|
||||
// lldb-check:[...] 19
|
||||
// lldb-command:v local1
|
||||
// lldb-check:[...] true
|
||||
// lldb-command:v local2
|
||||
// lldb-check:[...] 20.5
|
||||
//@ lldb-command:v len
|
||||
//@ lldb-check:[...] 20
|
||||
//@ lldb-command:v local0
|
||||
//@ lldb-check:[...] 19
|
||||
//@ lldb-command:v local1
|
||||
//@ lldb-check:[...] true
|
||||
//@ lldb-command:v local2
|
||||
//@ lldb-check:[...] 20.5
|
||||
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:continue
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
|
|
@ -2,35 +2,35 @@
|
|||
//@ only-msvc
|
||||
|
||||
// This tests the `f16` Natvis visualiser.
|
||||
// cdb-command:g
|
||||
// cdb-command:dx v0_0
|
||||
// cdb-check:v0_0 : 0.000000 [Type: f16]
|
||||
// cdb-command:dx neg_0_0
|
||||
// cdb-check:neg_0_0 : -0.000000 [Type: f16]
|
||||
// cdb-command:dx v1_0
|
||||
// cdb-check:v1_0 : 1.000000 [Type: f16]
|
||||
// cdb-command:dx v1_5
|
||||
// cdb-check:v1_5 : 1.500000 [Type: f16]
|
||||
// cdb-command:dx v72_3
|
||||
// cdb-check:v72_3 : 72.312500 [Type: f16]
|
||||
// cdb-command:dx neg_0_126
|
||||
// cdb-check:neg_0_126 : -0.125977 [Type: f16]
|
||||
// cdb-command:dx v0_00003
|
||||
// cdb-check:v0_00003 : 0.000030 [Type: f16]
|
||||
// cdb-command:dx neg_0_00004
|
||||
// cdb-check:neg_0_00004 : -0.000040 [Type: f16]
|
||||
// cdb-command:dx max
|
||||
// cdb-check:max : 65504.000000 [Type: f16]
|
||||
// cdb-command:dx min
|
||||
// cdb-check:min : -65504.000000 [Type: f16]
|
||||
// cdb-command:dx inf
|
||||
// cdb-check:inf : inf [Type: f16]
|
||||
// cdb-command:dx neg_inf
|
||||
// cdb-check:neg_inf : -inf [Type: f16]
|
||||
// cdb-command:dx nan
|
||||
// cdb-check:nan : NaN [Type: f16]
|
||||
// cdb-command:dx other_nan
|
||||
// cdb-check:other_nan : NaN [Type: f16]
|
||||
//@ cdb-command:g
|
||||
//@ cdb-command:dx v0_0
|
||||
//@ cdb-check:v0_0 : 0.000000 [Type: f16]
|
||||
//@ cdb-command:dx neg_0_0
|
||||
//@ cdb-check:neg_0_0 : -0.000000 [Type: f16]
|
||||
//@ cdb-command:dx v1_0
|
||||
//@ cdb-check:v1_0 : 1.000000 [Type: f16]
|
||||
//@ cdb-command:dx v1_5
|
||||
//@ cdb-check:v1_5 : 1.500000 [Type: f16]
|
||||
//@ cdb-command:dx v72_3
|
||||
//@ cdb-check:v72_3 : 72.312500 [Type: f16]
|
||||
//@ cdb-command:dx neg_0_126
|
||||
//@ cdb-check:neg_0_126 : -0.125977 [Type: f16]
|
||||
//@ cdb-command:dx v0_00003
|
||||
//@ cdb-check:v0_00003 : 0.000030 [Type: f16]
|
||||
//@ cdb-command:dx neg_0_00004
|
||||
//@ cdb-check:neg_0_00004 : -0.000040 [Type: f16]
|
||||
//@ cdb-command:dx max
|
||||
//@ cdb-check:max : 65504.000000 [Type: f16]
|
||||
//@ cdb-command:dx min
|
||||
//@ cdb-check:min : -65504.000000 [Type: f16]
|
||||
//@ cdb-command:dx inf
|
||||
//@ cdb-check:inf : inf [Type: f16]
|
||||
//@ cdb-command:dx neg_inf
|
||||
//@ cdb-check:neg_inf : -inf [Type: f16]
|
||||
//@ cdb-command:dx nan
|
||||
//@ cdb-check:nan : NaN [Type: f16]
|
||||
//@ cdb-command:dx other_nan
|
||||
//@ cdb-check:other_nan : NaN [Type: f16]
|
||||
|
||||
#![feature(f16)]
|
||||
|
||||
|
|
|
|||
|
|
@ -6,21 +6,21 @@
|
|||
|
||||
// === CDB TESTS ==================================================================================
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx xs,d
|
||||
// cdb-check:xs,d [Type: int [5]]
|
||||
// cdb-check: [0] : 1 [Type: int]
|
||||
// cdb-check: [1] : 2 [Type: int]
|
||||
// cdb-check: [2] : 3 [Type: int]
|
||||
// cdb-check: [3] : 4 [Type: int]
|
||||
// cdb-check: [4] : 5 [Type: int]
|
||||
//@ cdb-command: dx xs,d
|
||||
//@ cdb-check:xs,d [Type: int [5]]
|
||||
//@ cdb-check: [0] : 1 [Type: int]
|
||||
//@ cdb-check: [1] : 2 [Type: int]
|
||||
//@ cdb-check: [2] : 3 [Type: int]
|
||||
//@ cdb-check: [3] : 4 [Type: int]
|
||||
//@ cdb-check: [4] : 5 [Type: int]
|
||||
|
||||
// cdb-command: dx ys,d
|
||||
// cdb-check:ys,d [Type: int [3]]
|
||||
// cdb-check: [0] : 0 [Type: int]
|
||||
// cdb-check: [1] : 0 [Type: int]
|
||||
// cdb-check: [2] : 0 [Type: int]
|
||||
//@ cdb-command: dx ys,d
|
||||
//@ cdb-check:ys,d [Type: int [3]]
|
||||
//@ cdb-check: [0] : 0 [Type: int]
|
||||
//@ cdb-check: [1] : 0 [Type: int]
|
||||
//@ cdb-check: [2] : 0 [Type: int]
|
||||
|
||||
fn main() {
|
||||
// Fixed-size array (type signature is superfluous)
|
||||
|
|
|
|||
|
|
@ -3,22 +3,22 @@
|
|||
|
||||
// === CDB TESTS ==================================================================================
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dx basic
|
||||
// cdb-check: basic : [...] : a!core::ops::function::FnOnce::call_once<fn_ptr::main::closure_env$0,tuple$<i32,i32> >+0x0 [Type: int (__cdecl*)(int,int)]
|
||||
// cdb-check: a!core::ops::function::FnOnce::call_once<fn_ptr::main::closure_env$0,tuple$<i32,i32> >+0x0 [Type: int __cdecl(int,int)]
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dx basic
|
||||
//@ cdb-check: basic : [...] : a!core::ops::function::FnOnce::call_once<fn_ptr::main::closure_env$0,tuple$<i32,i32> >+0x0 [Type: int (__cdecl*)(int,int)]
|
||||
//@ cdb-check: a!core::ops::function::FnOnce::call_once<fn_ptr::main::closure_env$0,tuple$<i32,i32> >+0x0 [Type: int __cdecl(int,int)]
|
||||
|
||||
// cdb-command: dx paramless
|
||||
// cdb-check: paramless : [...] : a!core::ops::function::FnOnce::call_once<fn_ptr::main::closure_env$1,tuple$<> >+0x0 [Type: int (__cdecl*)()]
|
||||
// cdb-check: a!core::ops::function::FnOnce::call_once<fn_ptr::main::closure_env$1,tuple$<> >+0x0 [Type: int __cdecl()]
|
||||
//@ cdb-command: dx paramless
|
||||
//@ cdb-check: paramless : [...] : a!core::ops::function::FnOnce::call_once<fn_ptr::main::closure_env$1,tuple$<> >+0x0 [Type: int (__cdecl*)()]
|
||||
//@ cdb-check: a!core::ops::function::FnOnce::call_once<fn_ptr::main::closure_env$1,tuple$<> >+0x0 [Type: int __cdecl()]
|
||||
|
||||
// cdb-command: dx my_struct
|
||||
// cdb-check: my_struct [Type: fn_ptr::MyStruct]
|
||||
// cdb-check: [+0x000] my_field : [...] : a!core::ops::function::FnOnce::call_once<fn_ptr::main::closure_env$2,tuple$<ref$<fn_ptr::MyStruct> > >+0x0 [Type: int (__cdecl*)(fn_ptr::MyStruct *)]
|
||||
//@ cdb-command: dx my_struct
|
||||
//@ cdb-check: my_struct [Type: fn_ptr::MyStruct]
|
||||
//@ cdb-check: [+0x000] my_field : [...] : a!core::ops::function::FnOnce::call_once<fn_ptr::main::closure_env$2,tuple$<ref$<fn_ptr::MyStruct> > >+0x0 [Type: int (__cdecl*)(fn_ptr::MyStruct *)]
|
||||
|
||||
// cdb-command: dx non_rec_struct
|
||||
// cdb-check: non_rec_struct [Type: fn_ptr::NonRecStruct]
|
||||
// cdb-check: [+0x000] my_field : [...] : a!core::ops::function::FnOnce::call_once<fn_ptr::main::closure_env$3,tuple$<i32> >+0x0 [Type: int (__cdecl*)(int)]
|
||||
//@ cdb-command: dx non_rec_struct
|
||||
//@ cdb-check: non_rec_struct [Type: fn_ptr::NonRecStruct]
|
||||
//@ cdb-check: [+0x000] my_field : [...] : a!core::ops::function::FnOnce::call_once<fn_ptr::main::closure_env$3,tuple$<i32> >+0x0 [Type: int (__cdecl*)(int)]
|
||||
|
||||
type BasicFnPtr = fn(i32, i32) -> i32;
|
||||
|
||||
|
|
|
|||
|
|
@ -13,206 +13,206 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// IMMEDIATE ARGS
|
||||
// gdb-command:print a
|
||||
// gdb-check:$1 = 1
|
||||
// gdb-command:print b
|
||||
// gdb-check:$2 = true
|
||||
// gdb-command:print c
|
||||
// gdb-check:$3 = 2.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$1 = 1
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$2 = true
|
||||
//@ gdb-command:print c
|
||||
//@ gdb-check:$3 = 2.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// NON IMMEDIATE ARGS
|
||||
// gdb-command:print a
|
||||
// gdb-check:$4 = function_arg_initialization::BigStruct {a: 3, b: 4, c: 5, d: 6, e: 7, f: 8, g: 9, h: 10}
|
||||
// gdb-command:print b
|
||||
// gdb-check:$5 = function_arg_initialization::BigStruct {a: 11, b: 12, c: 13, d: 14, e: 15, f: 16, g: 17, h: 18}
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$4 = function_arg_initialization::BigStruct {a: 3, b: 4, c: 5, d: 6, e: 7, f: 8, g: 9, h: 10}
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$5 = function_arg_initialization::BigStruct {a: 11, b: 12, c: 13, d: 14, e: 15, f: 16, g: 17, h: 18}
|
||||
//@ gdb-command:continue
|
||||
|
||||
// BINDING
|
||||
// gdb-command:print a
|
||||
// gdb-check:$6 = 19
|
||||
// gdb-command:print b
|
||||
// gdb-check:$7 = 20
|
||||
// gdb-command:print c
|
||||
// gdb-check:$8 = 21.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$6 = 19
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$7 = 20
|
||||
//@ gdb-command:print c
|
||||
//@ gdb-check:$8 = 21.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// ASSIGNMENT
|
||||
// gdb-command:print a
|
||||
// gdb-check:$9 = 22
|
||||
// gdb-command:print b
|
||||
// gdb-check:$10 = 23
|
||||
// gdb-command:print c
|
||||
// gdb-check:$11 = 24.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$9 = 22
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$10 = 23
|
||||
//@ gdb-command:print c
|
||||
//@ gdb-check:$11 = 24.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// FUNCTION CALL
|
||||
// gdb-command:print x
|
||||
// gdb-check:$12 = 25
|
||||
// gdb-command:print y
|
||||
// gdb-check:$13 = 26
|
||||
// gdb-command:print z
|
||||
// gdb-check:$14 = 27.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$12 = 25
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$13 = 26
|
||||
//@ gdb-command:print z
|
||||
//@ gdb-check:$14 = 27.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// EXPR
|
||||
// gdb-command:print x
|
||||
// gdb-check:$15 = 28
|
||||
// gdb-command:print y
|
||||
// gdb-check:$16 = 29
|
||||
// gdb-command:print z
|
||||
// gdb-check:$17 = 30.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$15 = 28
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$16 = 29
|
||||
//@ gdb-command:print z
|
||||
//@ gdb-check:$17 = 30.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// RETURN EXPR
|
||||
// gdb-command:print x
|
||||
// gdb-check:$18 = 31
|
||||
// gdb-command:print y
|
||||
// gdb-check:$19 = 32
|
||||
// gdb-command:print z
|
||||
// gdb-check:$20 = 33.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$18 = 31
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$19 = 32
|
||||
//@ gdb-command:print z
|
||||
//@ gdb-check:$20 = 33.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// ARITHMETIC EXPR
|
||||
// gdb-command:print x
|
||||
// gdb-check:$21 = 34
|
||||
// gdb-command:print y
|
||||
// gdb-check:$22 = 35
|
||||
// gdb-command:print z
|
||||
// gdb-check:$23 = 36.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$21 = 34
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$22 = 35
|
||||
//@ gdb-command:print z
|
||||
//@ gdb-check:$23 = 36.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// IF EXPR
|
||||
// gdb-command:print x
|
||||
// gdb-check:$24 = 37
|
||||
// gdb-command:print y
|
||||
// gdb-check:$25 = 38
|
||||
// gdb-command:print z
|
||||
// gdb-check:$26 = 39.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$24 = 37
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$25 = 38
|
||||
//@ gdb-command:print z
|
||||
//@ gdb-check:$26 = 39.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// WHILE EXPR
|
||||
// gdb-command:print x
|
||||
// gdb-check:$27 = 40
|
||||
// gdb-command:print y
|
||||
// gdb-check:$28 = 41
|
||||
// gdb-command:print z
|
||||
// gdb-check:$29 = 42
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$27 = 40
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$28 = 41
|
||||
//@ gdb-command:print z
|
||||
//@ gdb-check:$29 = 42
|
||||
//@ gdb-command:continue
|
||||
|
||||
// LOOP EXPR
|
||||
// gdb-command:print x
|
||||
// gdb-check:$30 = 43
|
||||
// gdb-command:print y
|
||||
// gdb-check:$31 = 44
|
||||
// gdb-command:print z
|
||||
// gdb-check:$32 = 45
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$30 = 43
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$31 = 44
|
||||
//@ gdb-command:print z
|
||||
//@ gdb-check:$32 = 45
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// IMMEDIATE ARGS
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] true
|
||||
// lldb-command:v c
|
||||
// lldb-check:[...] 2.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] true
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:[...] 2.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// NON IMMEDIATE ARGS
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] BigStruct { a: 3, b: 4, c: 5, d: 6, e: 7, f: 8, g: 9, h: 10 }
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] BigStruct { a: 11, b: 12, c: 13, d: 14, e: 15, f: 16, g: 17, h: 18 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] BigStruct { a: 3, b: 4, c: 5, d: 6, e: 7, f: 8, g: 9, h: 10 }
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] BigStruct { a: 11, b: 12, c: 13, d: 14, e: 15, f: 16, g: 17, h: 18 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// BINDING
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 19
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 20
|
||||
// lldb-command:v c
|
||||
// lldb-check:[...] 21.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 19
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 20
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:[...] 21.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// ASSIGNMENT
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 22
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 23
|
||||
// lldb-command:v c
|
||||
// lldb-check:[...] 24.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 22
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 23
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:[...] 24.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// FUNCTION CALL
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 25
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 26
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 27.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 25
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 26
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 27.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// EXPR
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 28
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 29
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 30.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 28
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 29
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 30.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// RETURN EXPR
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 31
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 32
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 33.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 31
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 32
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 33.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// ARITHMETIC EXPR
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 34
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 35
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 36.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 34
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 35
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 36.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// IF EXPR
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 37
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 38
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 39.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 37
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 38
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 39.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// WHILE EXPR
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 40
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 41
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 42
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 40
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 41
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 42
|
||||
//@ lldb-command:continue
|
||||
|
||||
// LOOP EXPR
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 43
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 44
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 45
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 43
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 44
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 45
|
||||
//@ lldb-command:continue
|
||||
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
|
|
|||
|
|
@ -4,35 +4,35 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$1 = 111102
|
||||
// gdb-command:print y
|
||||
// gdb-check:$2 = true
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$1 = 111102
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$2 = true
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$3 = 2000
|
||||
// gdb-command:print b
|
||||
// gdb-check:$4 = 3000
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$3 = 2000
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$4 = 3000
|
||||
//@ gdb-command:continue
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 111102
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] true
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 111102
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] true
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 2000
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 3000
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 2000
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 3000
|
||||
//@ lldb-command:continue
|
||||
|
||||
fn main() {
|
||||
|
||||
|
|
|
|||
|
|
@ -6,15 +6,15 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print fun(45, true)
|
||||
// gdb-check:$1 = true
|
||||
// gdb-command:print fun(444, false)
|
||||
// gdb-check:$2 = false
|
||||
//@ gdb-command:print fun(45, true)
|
||||
//@ gdb-check:$1 = true
|
||||
//@ gdb-command:print fun(444, false)
|
||||
//@ gdb-check:$2 = false
|
||||
|
||||
// gdb-command:print r.get_x()
|
||||
// gdb-check:$3 = 4
|
||||
//@ gdb-command:print r.get_x()
|
||||
//@ gdb-check:$3 = 4
|
||||
|
||||
#![allow(dead_code, unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -8,76 +8,76 @@
|
|||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// Top-level function
|
||||
// gdb-command:info functions -q function_names::main
|
||||
// gdb-check:[...]static fn function_names::main();
|
||||
// gdb-command:info functions -q function_names::generic_func<*
|
||||
// gdb-check:[...]static fn function_names::generic_func<i32>(i32) -> i32;
|
||||
//@ gdb-command:info functions -q function_names::main
|
||||
//@ gdb-check:[...]static fn function_names::main();
|
||||
//@ gdb-command:info functions -q function_names::generic_func<*
|
||||
//@ gdb-check:[...]static fn function_names::generic_func<i32>(i32) -> i32;
|
||||
|
||||
// Implementations
|
||||
// gdb-command:info functions -q function_names::.*::impl_function.*
|
||||
// gdb-check:[...]static fn function_names::GenericStruct<i32, i32>::impl_function<i32, i32>();
|
||||
// gdb-check:[...]static fn function_names::Mod1::TestStruct2::impl_function();
|
||||
// gdb-check:[...]static fn function_names::TestStruct1::impl_function();
|
||||
//@ gdb-command:info functions -q function_names::.*::impl_function.*
|
||||
//@ gdb-check:[...]static fn function_names::GenericStruct<i32, i32>::impl_function<i32, i32>();
|
||||
//@ gdb-check:[...]static fn function_names::Mod1::TestStruct2::impl_function();
|
||||
//@ gdb-check:[...]static fn function_names::TestStruct1::impl_function();
|
||||
|
||||
// Trait implementations
|
||||
// gdb-command:info functions -q function_names::.*::trait_function.*
|
||||
// gdb-check:[...]static fn function_names::Mod1::{impl#1}::trait_function();
|
||||
// gdb-check:[...]static fn function_names::{impl#1}::trait_function();
|
||||
// gdb-check:[...]static fn function_names::{impl#3}::trait_function<i32>();
|
||||
// gdb-check:[...]static fn function_names::{impl#5}::trait_function3<function_names::TestStruct1>();
|
||||
// gdb-check:[...]static fn function_names::{impl#6}::trait_function<i32, 1>();
|
||||
//@ gdb-command:info functions -q function_names::.*::trait_function.*
|
||||
//@ gdb-check:[...]static fn function_names::Mod1::{impl#1}::trait_function();
|
||||
//@ gdb-check:[...]static fn function_names::{impl#1}::trait_function();
|
||||
//@ gdb-check:[...]static fn function_names::{impl#3}::trait_function<i32>();
|
||||
//@ gdb-check:[...]static fn function_names::{impl#5}::trait_function3<function_names::TestStruct1>();
|
||||
//@ gdb-check:[...]static fn function_names::{impl#6}::trait_function<i32, 1>();
|
||||
|
||||
// Closure
|
||||
// gdb-command:info functions -q function_names::.*::{closure.*
|
||||
// gdb-check:[...]static fn function_names::generic_func::{closure#0}<i32>(*mut function_names::generic_func::{closure_env#0}<i32>);
|
||||
// gdb-check:[...]static fn function_names::main::{closure#0}(*mut function_names::main::{closure_env#0});
|
||||
// gdb-check:[...]static fn function_names::{impl#2}::impl_function::{closure#0}<i32, i32>(*mut function_names::{impl#2}::impl_function::{closure_env#0}<i32, i32>);
|
||||
//@ gdb-command:info functions -q function_names::.*::{closure.*
|
||||
//@ gdb-check:[...]static fn function_names::generic_func::{closure#0}<i32>(*mut function_names::generic_func::{closure_env#0}<i32>);
|
||||
//@ gdb-check:[...]static fn function_names::main::{closure#0}(*mut function_names::main::{closure_env#0});
|
||||
//@ gdb-check:[...]static fn function_names::{impl#2}::impl_function::{closure#0}<i32, i32>(*mut function_names::{impl#2}::impl_function::{closure_env#0}<i32, i32>);
|
||||
|
||||
// Coroutine
|
||||
// Coroutines don't seem to appear in GDB's symbol table.
|
||||
|
||||
// Const generic parameter
|
||||
// gdb-command:info functions -q function_names::const_generic_fn.*
|
||||
// gdb-check:[...]static fn function_names::const_generic_fn_bool<false>();
|
||||
// gdb-check:[...]static fn function_names::const_generic_fn_non_int<{CONST#ffa3db4ca1d52dce}>();
|
||||
// gdb-check:[...]static fn function_names::const_generic_fn_signed_int<-7>();
|
||||
// gdb-check:[...]static fn function_names::const_generic_fn_unsigned_int<14>();
|
||||
//@ gdb-command:info functions -q function_names::const_generic_fn.*
|
||||
//@ gdb-check:[...]static fn function_names::const_generic_fn_bool<false>();
|
||||
//@ gdb-check:[...]static fn function_names::const_generic_fn_non_int<{CONST#ffa3db4ca1d52dce}>();
|
||||
//@ gdb-check:[...]static fn function_names::const_generic_fn_signed_int<-7>();
|
||||
//@ gdb-check:[...]static fn function_names::const_generic_fn_unsigned_int<14>();
|
||||
|
||||
// === CDB TESTS ===================================================================================
|
||||
|
||||
// Top-level function
|
||||
// cdb-command:x a!function_names::main
|
||||
// cdb-check:[...] a!function_names::main (void)
|
||||
// cdb-command:x a!function_names::generic_func<*
|
||||
// cdb-check:[...] a!function_names::generic_func<i32> (int)
|
||||
//@ cdb-command:x a!function_names::main
|
||||
//@ cdb-check:[...] a!function_names::main (void)
|
||||
//@ cdb-command:x a!function_names::generic_func<*
|
||||
//@ cdb-check:[...] a!function_names::generic_func<i32> (int)
|
||||
|
||||
// Implementations
|
||||
// cdb-command:x a!function_names::*::impl_function*
|
||||
// cdb-check:[...] a!function_names::Mod1::TestStruct2::impl_function (void)
|
||||
// cdb-check:[...] a!function_names::TestStruct1::impl_function (void)
|
||||
// cdb-check:[...] a!function_names::GenericStruct<i32,i32>::impl_function<i32,i32> (void)
|
||||
//@ cdb-command:x a!function_names::*::impl_function*
|
||||
//@ cdb-check:[...] a!function_names::Mod1::TestStruct2::impl_function (void)
|
||||
//@ cdb-check:[...] a!function_names::TestStruct1::impl_function (void)
|
||||
//@ cdb-check:[...] a!function_names::GenericStruct<i32,i32>::impl_function<i32,i32> (void)
|
||||
|
||||
// Trait implementations
|
||||
// cdb-command:x a!function_names::*::trait_function*
|
||||
// cdb-check:[...] a!function_names::impl$3::trait_function<i32> (void)
|
||||
// cdb-check:[...] a!function_names::impl$6::trait_function<i32,1> (void)
|
||||
// cdb-check:[...] a!function_names::impl$1::trait_function (void)
|
||||
// cdb-check:[...] a!function_names::impl$5::trait_function3<function_names::TestStruct1> (void)
|
||||
// cdb-check:[...] a!function_names::Mod1::impl$1::trait_function (void)
|
||||
//@ cdb-command:x a!function_names::*::trait_function*
|
||||
//@ cdb-check:[...] a!function_names::impl$3::trait_function<i32> (void)
|
||||
//@ cdb-check:[...] a!function_names::impl$6::trait_function<i32,1> (void)
|
||||
//@ cdb-check:[...] a!function_names::impl$1::trait_function (void)
|
||||
//@ cdb-check:[...] a!function_names::impl$5::trait_function3<function_names::TestStruct1> (void)
|
||||
//@ cdb-check:[...] a!function_names::Mod1::impl$1::trait_function (void)
|
||||
|
||||
// Closure
|
||||
// cdb-command:x a!function_names::*::closure*
|
||||
// cdb-check:[...] a!function_names::impl$2::impl_function::closure$0<i32,i32> (void)
|
||||
// cdb-check:[...] a!function_names::main::closure$0 (void)
|
||||
// cdb-check:[...] a!function_names::generic_func::closure$0<i32> (void)
|
||||
//@ cdb-command:x a!function_names::*::closure*
|
||||
//@ cdb-check:[...] a!function_names::impl$2::impl_function::closure$0<i32,i32> (void)
|
||||
//@ cdb-check:[...] a!function_names::main::closure$0 (void)
|
||||
//@ cdb-check:[...] a!function_names::generic_func::closure$0<i32> (void)
|
||||
|
||||
// Coroutine
|
||||
// cdb-command:x a!function_names::*::coroutine*
|
||||
// cdb-check:[...] a!function_names::main::coroutine$1 (void)
|
||||
//@ cdb-command:x a!function_names::*::coroutine*
|
||||
//@ cdb-check:[...] a!function_names::main::coroutine$1 (void)
|
||||
|
||||
// Const generic parameter
|
||||
// cdb-command:x a!function_names::const_generic_fn*
|
||||
// cdb-check:[...] a!function_names::const_generic_fn_bool<false> (void)
|
||||
//@ cdb-command:x a!function_names::const_generic_fn*
|
||||
//@ cdb-check:[...] a!function_names::const_generic_fn_bool<false> (void)
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![feature(adt_const_params, coroutines, coroutine_trait, stmt_expr_attributes)]
|
||||
|
|
|
|||
|
|
@ -6,115 +6,115 @@
|
|||
//@ compile-flags:-g
|
||||
//@ disable-gdb-pretty-printers
|
||||
|
||||
// lldb-command:breakpoint set --name immediate_args
|
||||
// lldb-command:breakpoint set --name non_immediate_args
|
||||
// lldb-command:breakpoint set --name binding
|
||||
// lldb-command:breakpoint set --name assignment
|
||||
// lldb-command:breakpoint set --name function_call
|
||||
// lldb-command:breakpoint set --name identifier
|
||||
// lldb-command:breakpoint set --name return_expr
|
||||
// lldb-command:breakpoint set --name arithmetic_expr
|
||||
// lldb-command:breakpoint set --name if_expr
|
||||
// lldb-command:breakpoint set --name while_expr
|
||||
// lldb-command:breakpoint set --name loop_expr
|
||||
// lldb-command:run
|
||||
//@ lldb-command:breakpoint set --name immediate_args
|
||||
//@ lldb-command:breakpoint set --name non_immediate_args
|
||||
//@ lldb-command:breakpoint set --name binding
|
||||
//@ lldb-command:breakpoint set --name assignment
|
||||
//@ lldb-command:breakpoint set --name function_call
|
||||
//@ lldb-command:breakpoint set --name identifier
|
||||
//@ lldb-command:breakpoint set --name return_expr
|
||||
//@ lldb-command:breakpoint set --name arithmetic_expr
|
||||
//@ lldb-command:breakpoint set --name if_expr
|
||||
//@ lldb-command:breakpoint set --name while_expr
|
||||
//@ lldb-command:breakpoint set --name loop_expr
|
||||
//@ lldb-command:run
|
||||
|
||||
// IMMEDIATE ARGS
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] true
|
||||
// lldb-command:v c
|
||||
// lldb-check:[...] 2.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] true
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:[...] 2.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// NON IMMEDIATE ARGS
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] { a = 3, b = 4, c = 5, d = 6, e = 7, f = 8, g = 9, h = 10 }
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] { a = 11, b = 12, c = 13, d = 14, e = 15, f = 16, g = 17, h = 18 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] { a = 3, b = 4, c = 5, d = 6, e = 7, f = 8, g = 9, h = 10 }
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] { a = 11, b = 12, c = 13, d = 14, e = 15, f = 16, g = 17, h = 18 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
// BINDING
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 19
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 20
|
||||
// lldb-command:v c
|
||||
// lldb-check:[...] 21.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 19
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 20
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:[...] 21.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// ASSIGNMENT
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 22
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 23
|
||||
// lldb-command:v c
|
||||
// lldb-check:[...] 24.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 22
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 23
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:[...] 24.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// FUNCTION CALL
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 25
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 26
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 27.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 25
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 26
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 27.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// EXPR
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 28
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 29
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 30.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 28
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 29
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 30.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// RETURN EXPR
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 31
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 32
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 33.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 31
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 32
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 33.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// ARITHMETIC EXPR
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 34
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 35
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 36.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 34
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 35
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 36.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// IF EXPR
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 37
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 38
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 39.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 37
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 38
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 39.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// WHILE EXPR
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 40
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 41
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 42
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 40
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 41
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 42
|
||||
//@ lldb-command:continue
|
||||
|
||||
// LOOP EXPR
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 43
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 44
|
||||
// lldb-command:v z
|
||||
// lldb-check:[...] 45
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 43
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 44
|
||||
//@ lldb-command:v z
|
||||
//@ lldb-check:[...] 45
|
||||
//@ lldb-command:continue
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -8,9 +8,9 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:print ch
|
||||
// gdb-check:$1 = 97 'a'
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:print ch
|
||||
//@ gdb-check:$1 = 97 'a'
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -4,22 +4,22 @@
|
|||
//@ compile-flags:-g
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// gdb-command: run
|
||||
//@ gdb-command: run
|
||||
|
||||
// gdb-command: print regular_struct
|
||||
// gdb-check:$1 = gdb_pretty_struct_and_enums::RegularStruct {the_first_field: 101, the_second_field: 102.5, the_third_field: false}
|
||||
//@ gdb-command: print regular_struct
|
||||
//@ gdb-check:$1 = gdb_pretty_struct_and_enums::RegularStruct {the_first_field: 101, the_second_field: 102.5, the_third_field: false}
|
||||
|
||||
// gdb-command: print empty_struct
|
||||
// gdb-check:$2 = gdb_pretty_struct_and_enums::EmptyStruct
|
||||
//@ gdb-command: print empty_struct
|
||||
//@ gdb-check:$2 = gdb_pretty_struct_and_enums::EmptyStruct
|
||||
|
||||
// gdb-command: print c_style_enum1
|
||||
// gdb-check:$3 = gdb_pretty_struct_and_enums::CStyleEnum::CStyleEnumVar1
|
||||
//@ gdb-command: print c_style_enum1
|
||||
//@ gdb-check:$3 = gdb_pretty_struct_and_enums::CStyleEnum::CStyleEnumVar1
|
||||
|
||||
// gdb-command: print c_style_enum2
|
||||
// gdb-check:$4 = gdb_pretty_struct_and_enums::CStyleEnum::CStyleEnumVar2
|
||||
//@ gdb-command: print c_style_enum2
|
||||
//@ gdb-check:$4 = gdb_pretty_struct_and_enums::CStyleEnum::CStyleEnumVar2
|
||||
|
||||
// gdb-command: print c_style_enum3
|
||||
// gdb-check:$5 = gdb_pretty_struct_and_enums::CStyleEnum::CStyleEnumVar3
|
||||
//@ gdb-command: print c_style_enum3
|
||||
//@ gdb-check:$5 = gdb_pretty_struct_and_enums::CStyleEnum::CStyleEnumVar3
|
||||
|
||||
#![allow(dead_code, unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -5,57 +5,57 @@
|
|||
//@ ignore-backends: gcc
|
||||
|
||||
// === GDB TESTS ===================================================================================
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print eight_bytes1
|
||||
// gdb-check:$1 = generic_enum_with_different_disr_sizes::Enum<f64>::Variant1(100)
|
||||
//@ gdb-command:print eight_bytes1
|
||||
//@ gdb-check:$1 = generic_enum_with_different_disr_sizes::Enum<f64>::Variant1(100)
|
||||
|
||||
// gdb-command:print four_bytes1
|
||||
// gdb-check:$2 = generic_enum_with_different_disr_sizes::Enum<i32>::Variant1(101)
|
||||
//@ gdb-command:print four_bytes1
|
||||
//@ gdb-check:$2 = generic_enum_with_different_disr_sizes::Enum<i32>::Variant1(101)
|
||||
|
||||
// gdb-command:print two_bytes1
|
||||
// gdb-check:$3 = generic_enum_with_different_disr_sizes::Enum<i16>::Variant1(102)
|
||||
//@ gdb-command:print two_bytes1
|
||||
//@ gdb-check:$3 = generic_enum_with_different_disr_sizes::Enum<i16>::Variant1(102)
|
||||
|
||||
// gdb-command:print one_byte1
|
||||
// gdb-check:$4 = generic_enum_with_different_disr_sizes::Enum<u8>::Variant1(65)
|
||||
//@ gdb-command:print one_byte1
|
||||
//@ gdb-check:$4 = generic_enum_with_different_disr_sizes::Enum<u8>::Variant1(65)
|
||||
|
||||
|
||||
// gdb-command:print eight_bytes2
|
||||
// gdb-check:$5 = generic_enum_with_different_disr_sizes::Enum<f64>::Variant2(100)
|
||||
//@ gdb-command:print eight_bytes2
|
||||
//@ gdb-check:$5 = generic_enum_with_different_disr_sizes::Enum<f64>::Variant2(100)
|
||||
|
||||
// gdb-command:print four_bytes2
|
||||
// gdb-check:$6 = generic_enum_with_different_disr_sizes::Enum<i32>::Variant2(101)
|
||||
//@ gdb-command:print four_bytes2
|
||||
//@ gdb-check:$6 = generic_enum_with_different_disr_sizes::Enum<i32>::Variant2(101)
|
||||
|
||||
// gdb-command:print two_bytes2
|
||||
// gdb-check:$7 = generic_enum_with_different_disr_sizes::Enum<i16>::Variant2(102)
|
||||
//@ gdb-command:print two_bytes2
|
||||
//@ gdb-check:$7 = generic_enum_with_different_disr_sizes::Enum<i16>::Variant2(102)
|
||||
|
||||
// gdb-command:print one_byte2
|
||||
// gdb-check:$8 = generic_enum_with_different_disr_sizes::Enum<u8>::Variant2(65)
|
||||
//@ gdb-command:print one_byte2
|
||||
//@ gdb-check:$8 = generic_enum_with_different_disr_sizes::Enum<u8>::Variant2(65)
|
||||
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:continue
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v eight_bytes1
|
||||
// lldb-check:[...] Variant1(100)
|
||||
// lldb-command:v four_bytes1
|
||||
// lldb-check:[...] Variant1(101)
|
||||
// lldb-command:v two_bytes1
|
||||
// lldb-check:[...] Variant1(102)
|
||||
// lldb-command:v one_byte1
|
||||
// lldb-check:[...] Variant1('A')
|
||||
//@ lldb-command:v eight_bytes1
|
||||
//@ lldb-check:[...] Variant1(100)
|
||||
//@ lldb-command:v four_bytes1
|
||||
//@ lldb-check:[...] Variant1(101)
|
||||
//@ lldb-command:v two_bytes1
|
||||
//@ lldb-check:[...] Variant1(102)
|
||||
//@ lldb-command:v one_byte1
|
||||
//@ lldb-check:[...] Variant1('A')
|
||||
|
||||
// lldb-command:v eight_bytes2
|
||||
// lldb-check:[...] Variant2(100)
|
||||
// lldb-command:v four_bytes2
|
||||
// lldb-check:[...] Variant2(101)
|
||||
// lldb-command:v two_bytes2
|
||||
// lldb-check:[...] Variant2(102)
|
||||
// lldb-command:v one_byte2
|
||||
// lldb-check:[...] Variant2('A')
|
||||
//@ lldb-command:v eight_bytes2
|
||||
//@ lldb-check:[...] Variant2(100)
|
||||
//@ lldb-command:v four_bytes2
|
||||
//@ lldb-check:[...] Variant2(101)
|
||||
//@ lldb-command:v two_bytes2
|
||||
//@ lldb-check:[...] Variant2(102)
|
||||
//@ lldb-command:v one_byte2
|
||||
//@ lldb-check:[...] Variant2('A')
|
||||
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:continue
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
|
|
@ -4,47 +4,47 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print *t0
|
||||
// gdb-check:$1 = 1
|
||||
// gdb-command:print *t1
|
||||
// gdb-check:$2 = 2.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *t0
|
||||
//@ gdb-check:$1 = 1
|
||||
//@ gdb-command:print *t1
|
||||
//@ gdb-check:$2 = 2.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print *t0
|
||||
// gdb-check:$3 = 3.5
|
||||
// gdb-command:print *t1
|
||||
// gdb-check:$4 = 4
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *t0
|
||||
//@ gdb-check:$3 = 3.5
|
||||
//@ gdb-command:print *t1
|
||||
//@ gdb-check:$4 = 4
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print *t0
|
||||
// gdb-check:$5 = 5
|
||||
// gdb-command:print *t1
|
||||
// gdb-check:$6 = generic_function::Struct {a: 6, b: 7.5}
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *t0
|
||||
//@ gdb-check:$5 = 5
|
||||
//@ gdb-command:print *t1
|
||||
//@ gdb-check:$6 = generic_function::Struct {a: 6, b: 7.5}
|
||||
//@ gdb-command:continue
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v *t0
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:v *t1
|
||||
// lldb-check:[...] 2.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *t0
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:v *t1
|
||||
//@ lldb-check:[...] 2.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v *t0
|
||||
// lldb-check:[...] 3.5
|
||||
// lldb-command:v *t1
|
||||
// lldb-check:[...] 4
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *t0
|
||||
//@ lldb-check:[...] 3.5
|
||||
//@ lldb-command:v *t1
|
||||
//@ lldb-check:[...] 4
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v *t0
|
||||
// lldb-check:[...] 5
|
||||
// lldb-command:v *t1
|
||||
// lldb-check:[...] { a = 6 b = 7.5 }
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *t0
|
||||
//@ lldb-check:[...] 5
|
||||
//@ lldb-command:v *t1
|
||||
//@ lldb-check:[...] { a = 6 b = 7.5 }
|
||||
//@ lldb-command:continue
|
||||
|
||||
#[derive(Clone)]
|
||||
struct Struct {
|
||||
|
|
|
|||
|
|
@ -4,60 +4,60 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$1 = -1
|
||||
// gdb-command:print y
|
||||
// gdb-check:$2 = 1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$1 = -1
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$2 = 1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$3 = -1
|
||||
// gdb-command:print y
|
||||
// gdb-check:$4 = 2.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$3 = -1
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$4 = 2.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$5 = -2.5
|
||||
// gdb-command:print y
|
||||
// gdb-check:$6 = 1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$5 = -2.5
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$6 = 1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$7 = -2.5
|
||||
// gdb-command:print y
|
||||
// gdb-check:$8 = 2.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$7 = -2.5
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$8 = 2.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 2.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 2.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] -2.5
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] -2.5
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] -2.5
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 2.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] -2.5
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 2.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
fn outer<TA: Clone>(a: TA) {
|
||||
inner(a.clone(), 1);
|
||||
|
|
|
|||
|
|
@ -4,102 +4,102 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// STACK BY REF
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$1 = generic_method_on_generic_struct::Struct<(u32, i32)> {x: (8888, -8888)}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$2 = -1
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$3 = 2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$1 = generic_method_on_generic_struct::Struct<(u32, i32)> {x: (8888, -8888)}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$2 = -1
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$3 = 2
|
||||
//@ gdb-command:continue
|
||||
|
||||
// STACK BY VAL
|
||||
// gdb-command:print self
|
||||
// gdb-check:$4 = generic_method_on_generic_struct::Struct<(u32, i32)> {x: (8888, -8888)}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$5 = -3
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$6 = -4
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$4 = generic_method_on_generic_struct::Struct<(u32, i32)> {x: (8888, -8888)}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$5 = -3
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$6 = -4
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED BY REF
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$7 = generic_method_on_generic_struct::Struct<f64> {x: 1234.5}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$8 = -5
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$9 = -6
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$7 = generic_method_on_generic_struct::Struct<f64> {x: 1234.5}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$8 = -5
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$9 = -6
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED BY VAL
|
||||
// gdb-command:print self
|
||||
// gdb-check:$10 = generic_method_on_generic_struct::Struct<f64> {x: 1234.5}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$11 = -7
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$12 = -8
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$10 = generic_method_on_generic_struct::Struct<f64> {x: 1234.5}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$11 = -7
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$12 = -8
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED MOVED
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$13 = generic_method_on_generic_struct::Struct<f64> {x: 1234.5}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$14 = -9
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$15 = -10.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$13 = generic_method_on_generic_struct::Struct<f64> {x: 1234.5}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$14 = -9
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$15 = -10.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// STACK BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] 2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] 2
|
||||
//@ lldb-command:continue
|
||||
|
||||
// STACK BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -3
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -4
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -3
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -4
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { x = 1234.5 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -5
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -6
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] { x = 1234.5 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -5
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -6
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] { x = 1234.5 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -7
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -8
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] { x = 1234.5 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -7
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -8
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED MOVED
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { x = 1234.5 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -9
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -10.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] { x = 1234.5 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -9
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -10.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
struct Struct<T> {
|
||||
|
|
|
|||
|
|
@ -2,23 +2,23 @@
|
|||
//@ disable-gdb-pretty-printers
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// STRUCT
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$1 = 1
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$2 = 2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$1 = 1
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$2 = 2
|
||||
//@ gdb-command:continue
|
||||
|
||||
// ENUM
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$3 = -3
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$4 = 4.5
|
||||
// gdb-command:print arg3
|
||||
// gdb-check:$5 = 5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$3 = -3
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$4 = 4.5
|
||||
//@ gdb-command:print arg3
|
||||
//@ gdb-check:$5 = 5
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
struct Struct {
|
||||
|
|
|
|||
|
|
@ -2,20 +2,20 @@
|
|||
//@ disable-gdb-pretty-printers
|
||||
//@ ignore-backends: gcc
|
||||
|
||||
// gdb-command:set print union on
|
||||
// gdb-command:run
|
||||
//@ gdb-command:set print union on
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print case1
|
||||
// gdb-check:$1 = generic_struct_style_enum::Regular<u16, u32, i64>::Case1{a: 0, b: 31868, c: 31868, d: 31868, e: 31868}
|
||||
//@ gdb-command:print case1
|
||||
//@ gdb-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
|
||||
// gdb-check:$2 = generic_struct_style_enum::Regular<i16, u32, i64>::Case2{a: 0, b: 286331153, c: 286331153}
|
||||
//@ gdb-command:print case2
|
||||
//@ gdb-check:$2 = generic_struct_style_enum::Regular<i16, u32, i64>::Case2{a: 0, b: 286331153, c: 286331153}
|
||||
|
||||
// gdb-command:print case3
|
||||
// gdb-check:$3 = generic_struct_style_enum::Regular<u16, i32, u64>::Case3{a: 0, b: 6438275382588823897}
|
||||
//@ gdb-command:print case3
|
||||
//@ gdb-check:$3 = generic_struct_style_enum::Regular<u16, i32, u64>::Case3{a: 0, b: 6438275382588823897}
|
||||
|
||||
// gdb-command:print univariant
|
||||
// gdb-check:$4 = generic_struct_style_enum::Univariant<i32>::TheOnlyCase{a: -1}
|
||||
//@ gdb-command:print univariant
|
||||
//@ gdb-check:$4 = generic_struct_style_enum::Univariant<i32>::TheOnlyCase{a: -1}
|
||||
|
||||
|
||||
use self::Regular::{Case1, Case2, Case3};
|
||||
|
|
|
|||
|
|
@ -4,51 +4,51 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print int_int
|
||||
// gdb-check:$1 = generic_struct::AGenericStruct<i32, i32> {key: 0, value: 1}
|
||||
// gdb-command:print int_float
|
||||
// gdb-check:$2 = generic_struct::AGenericStruct<i32, f64> {key: 2, value: 3.5}
|
||||
// gdb-command:print float_int
|
||||
// gdb-check:$3 = generic_struct::AGenericStruct<f64, i32> {key: 4.5, value: 5}
|
||||
// gdb-command:print float_int_float
|
||||
// gdb-check:$4 = generic_struct::AGenericStruct<f64, generic_struct::AGenericStruct<i32, f64>> {key: 6.5, value: generic_struct::AGenericStruct<i32, f64> {key: 7, value: 8.5}}
|
||||
//@ gdb-command:print int_int
|
||||
//@ gdb-check:$1 = generic_struct::AGenericStruct<i32, i32> {key: 0, value: 1}
|
||||
//@ gdb-command:print int_float
|
||||
//@ gdb-check:$2 = generic_struct::AGenericStruct<i32, f64> {key: 2, value: 3.5}
|
||||
//@ gdb-command:print float_int
|
||||
//@ gdb-check:$3 = generic_struct::AGenericStruct<f64, i32> {key: 4.5, value: 5}
|
||||
//@ gdb-command:print float_int_float
|
||||
//@ gdb-check:$4 = generic_struct::AGenericStruct<f64, generic_struct::AGenericStruct<i32, f64>> {key: 6.5, value: generic_struct::AGenericStruct<i32, f64> {key: 7, value: 8.5}}
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v int_int
|
||||
// lldb-check:[...]AGenericStruct<int, int>) int_int = { key = 0 value = 1 }
|
||||
// lldb-command:v int_float
|
||||
// lldb-check:[...]AGenericStruct<int, double>) int_float = { key = 2 value = 3.5 }
|
||||
// lldb-command:v float_int
|
||||
// lldb-check:[...]AGenericStruct<double, int>) float_int = { key = 4.5 value = 5 }
|
||||
//@ lldb-command:v int_int
|
||||
//@ lldb-check:[...]AGenericStruct<int, int>) int_int = { key = 0 value = 1 }
|
||||
//@ lldb-command:v int_float
|
||||
//@ lldb-check:[...]AGenericStruct<int, double>) int_float = { key = 2 value = 3.5 }
|
||||
//@ lldb-command:v float_int
|
||||
//@ lldb-check:[...]AGenericStruct<double, int>) float_int = { key = 4.5 value = 5 }
|
||||
|
||||
// lldb-command:v float_int_float
|
||||
// lldb-check:[...]AGenericStruct<double, generic_struct::AGenericStruct<int, double> >) float_int_float = { key = 6.5 value = { key = 7 value = 8.5 } }
|
||||
//@ lldb-command:v float_int_float
|
||||
//@ lldb-check:[...]AGenericStruct<double, generic_struct::AGenericStruct<int, double> >) float_int_float = { key = 6.5 value = { key = 7 value = 8.5 } }
|
||||
|
||||
// === CDB TESTS ===================================================================================
|
||||
|
||||
// cdb-command:g
|
||||
//@ cdb-command:g
|
||||
|
||||
// cdb-command:dx int_int
|
||||
// cdb-check:int_int [Type: generic_struct::AGenericStruct<i32,i32>]
|
||||
// cdb-check:[...]key : 0 [Type: int]
|
||||
// cdb-check:[...]value : 1 [Type: int]
|
||||
// cdb-command:dx int_float
|
||||
// cdb-check:int_float [Type: generic_struct::AGenericStruct<i32,f64>]
|
||||
// cdb-check:[...]key : 2 [Type: int]
|
||||
// cdb-check:[...]value : 3.500000 [Type: double]
|
||||
// cdb-command:dx float_int
|
||||
// cdb-check:float_int [Type: generic_struct::AGenericStruct<f64,i32>]
|
||||
// cdb-check:[...]key : 4.500000 [Type: double]
|
||||
// cdb-check:[...]value : 5 [Type: int]
|
||||
// cdb-command:dx float_int_float
|
||||
// cdb-check:float_int_float [Type: generic_struct::AGenericStruct<f64,generic_struct::AGenericStruct<i32,f64> >]
|
||||
// cdb-check:[...]key : 6.500000 [Type: double]
|
||||
// cdb-check:[...]value [Type: generic_struct::AGenericStruct<i32,f64>]
|
||||
//@ cdb-command:dx int_int
|
||||
//@ cdb-check:int_int [Type: generic_struct::AGenericStruct<i32,i32>]
|
||||
//@ cdb-check:[...]key : 0 [Type: int]
|
||||
//@ cdb-check:[...]value : 1 [Type: int]
|
||||
//@ cdb-command:dx int_float
|
||||
//@ cdb-check:int_float [Type: generic_struct::AGenericStruct<i32,f64>]
|
||||
//@ cdb-check:[...]key : 2 [Type: int]
|
||||
//@ cdb-check:[...]value : 3.500000 [Type: double]
|
||||
//@ cdb-command:dx float_int
|
||||
//@ cdb-check:float_int [Type: generic_struct::AGenericStruct<f64,i32>]
|
||||
//@ cdb-check:[...]key : 4.500000 [Type: double]
|
||||
//@ cdb-check:[...]value : 5 [Type: int]
|
||||
//@ cdb-command:dx float_int_float
|
||||
//@ cdb-check:float_int_float [Type: generic_struct::AGenericStruct<f64,generic_struct::AGenericStruct<i32,f64> >]
|
||||
//@ cdb-check:[...]key : 6.500000 [Type: double]
|
||||
//@ cdb-check:[...]value [Type: generic_struct::AGenericStruct<i32,f64>]
|
||||
|
||||
|
||||
struct AGenericStruct<TKey, TValue> {
|
||||
|
|
|
|||
|
|
@ -4,33 +4,33 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:set print union on
|
||||
// gdb-command:run
|
||||
//@ gdb-command:set print union on
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print case1
|
||||
// gdb-check:$1 = generic_tuple_style_enum::Regular<u16, u32, u64>::Case1(0, 31868, 31868, 31868, 31868)
|
||||
//@ gdb-command:print case1
|
||||
//@ gdb-check:$1 = generic_tuple_style_enum::Regular<u16, u32, u64>::Case1(0, 31868, 31868, 31868, 31868)
|
||||
|
||||
// gdb-command:print case2
|
||||
// gdb-check:$2 = generic_tuple_style_enum::Regular<i16, i32, i64>::Case2(0, 286331153, 286331153)
|
||||
//@ gdb-command:print case2
|
||||
//@ gdb-check:$2 = generic_tuple_style_enum::Regular<i16, i32, i64>::Case2(0, 286331153, 286331153)
|
||||
|
||||
// gdb-command:print case3
|
||||
// gdb-check:$3 = generic_tuple_style_enum::Regular<i16, i32, i64>::Case3(0, 6438275382588823897)
|
||||
//@ gdb-command:print case3
|
||||
//@ gdb-check:$3 = generic_tuple_style_enum::Regular<i16, i32, i64>::Case3(0, 6438275382588823897)
|
||||
|
||||
// gdb-command:print univariant
|
||||
// gdb-check:$4 = generic_tuple_style_enum::Univariant<i64>::TheOnlyCase(-1)
|
||||
//@ gdb-command:print univariant
|
||||
//@ gdb-check:$4 = generic_tuple_style_enum::Univariant<i64>::TheOnlyCase(-1)
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v case1
|
||||
//@ lldb-command:v case1
|
||||
|
||||
// lldb-command:v case2
|
||||
//@ lldb-command:v case2
|
||||
|
||||
// lldb-command:v case3
|
||||
//@ lldb-command:v case3
|
||||
|
||||
// lldb-command:v univariant
|
||||
//@ lldb-command:v univariant
|
||||
|
||||
|
||||
use self::Regular::{Case1, Case2, Case3};
|
||||
|
|
|
|||
|
|
@ -4,28 +4,28 @@
|
|||
//@ compile-flags:-g
|
||||
//@ disable-gdb-pretty-printers
|
||||
//@ ignore-backends: gcc
|
||||
// gdb-command:run
|
||||
// gdb-command:print string1.length
|
||||
// gdb-check:$1 = 48
|
||||
// gdb-command:print string2.length
|
||||
// gdb-check:$2 = 49
|
||||
// gdb-command:print string3.length
|
||||
// gdb-check:$3 = 50
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:print string1.length
|
||||
//@ gdb-check:$1 = 48
|
||||
//@ gdb-command:print string2.length
|
||||
//@ gdb-check:$2 = 49
|
||||
//@ gdb-command:print string3.length
|
||||
//@ gdb-check:$3 = 50
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v string1.length
|
||||
// lldb-check:[...] 48
|
||||
// lldb-command:v string2.length
|
||||
// lldb-check:[...] 49
|
||||
// lldb-command:v string3.length
|
||||
// lldb-check:[...] 50
|
||||
//@ lldb-command:v string1.length
|
||||
//@ lldb-check:[...] 48
|
||||
//@ lldb-command:v string2.length
|
||||
//@ lldb-check:[...] 49
|
||||
//@ lldb-command:v string3.length
|
||||
//@ lldb-check:[...] 50
|
||||
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:continue
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -4,10 +4,10 @@
|
|||
//@ compile-flags:-g
|
||||
//@ disable-gdb-pretty-printers
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:next
|
||||
// gdb-check:[...]22[...]let s = Some(5).unwrap(); // #break
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:next
|
||||
//@ gdb-check:[...]22[...]let s = Some(5).unwrap(); // #break
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// IF YOU MODIFY THIS FILE, BE CAREFUL TO ADAPT THE LINE NUMBERS IN THE DEBUGGER COMMANDS
|
||||
|
|
|
|||
|
|
@ -8,12 +8,12 @@
|
|||
//@ disable-gdb-pretty-printers
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v v
|
||||
// lldb-check:[...] size=3 { [0] = 1 [1] = 2 [2] = 3 }
|
||||
// lldb-command:v zs
|
||||
// lldb-check:[...] { x = y = 123 z = w = 456 }
|
||||
//@ lldb-command:v v
|
||||
//@ lldb-check:[...] size=3 { [0] = 1 [1] = 2 [2] = 3 }
|
||||
//@ lldb-command:v zs
|
||||
//@ lldb-check:[...] { x = y = 123 z = w = 456 }
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![allow(dead_code)]
|
||||
|
|
|
|||
|
|
@ -8,23 +8,23 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print g
|
||||
// gdb-check:$1 = issue_57822::main::{closure_env#1} {f: issue_57822::main::{closure_env#0} {x: 1}}
|
||||
//@ gdb-command:print g
|
||||
//@ gdb-check:$1 = issue_57822::main::{closure_env#1} {f: issue_57822::main::{closure_env#0} {x: 1}}
|
||||
|
||||
// gdb-command:print b
|
||||
// gdb-check:$2 = issue_57822::main::{coroutine_env#3}::Unresumed{a: issue_57822::main::{coroutine_env#2}::Unresumed{y: 2}}
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$2 = issue_57822::main::{coroutine_env#3}::Unresumed{a: issue_57822::main::{coroutine_env#2}::Unresumed{y: 2}}
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v g
|
||||
// lldb-check:(issue_57822::main::{closure_env#1}) g = { f = { x = 1 } }
|
||||
//@ lldb-command:v g
|
||||
//@ lldb-check:(issue_57822::main::{closure_env#1}) g = { f = { x = 1 } }
|
||||
|
||||
// lldb-command:v b
|
||||
// lldb-check:(issue_57822::main::{coroutine_env#3}) b = 2{a:2{y:2}} { a = 2{y:2} { y = 2 } }
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:(issue_57822::main::{coroutine_env#3}) b = 2{a:2{y:2}} { a = 2{y:2} { y = 2 } }
|
||||
|
||||
#![feature(coroutines, coroutine_trait, stmt_expr_attributes)]
|
||||
|
||||
|
|
|
|||
|
|
@ -4,76 +4,76 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// FIRST ITERATION
|
||||
// gdb-command:print x
|
||||
// gdb-check:$1 = 1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$1 = 1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$2 = -1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$2 = -1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// SECOND ITERATION
|
||||
// gdb-command:print x
|
||||
// gdb-check:$3 = 2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$3 = 2
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$4 = -2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$4 = -2
|
||||
//@ gdb-command:continue
|
||||
|
||||
// THIRD ITERATION
|
||||
// gdb-command:print x
|
||||
// gdb-check:$5 = 3
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$5 = 3
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$6 = -3
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$6 = -3
|
||||
//@ gdb-command:continue
|
||||
|
||||
// AFTER LOOP
|
||||
// gdb-command:print x
|
||||
// gdb-check:$7 = 1000000
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$7 = 1000000
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// FIRST ITERATION
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// SECOND ITERATION
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 2
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] -2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] -2
|
||||
//@ lldb-command:continue
|
||||
|
||||
// THIRD ITERATION
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 3
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 3
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] -3
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] -3
|
||||
//@ lldb-command:continue
|
||||
|
||||
// AFTER LOOP
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 1000000
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 1000000
|
||||
//@ lldb-command:continue
|
||||
|
||||
fn main() {
|
||||
|
||||
|
|
|
|||
|
|
@ -3,78 +3,78 @@
|
|||
|
||||
// === GDB TESTS ==================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:info locals
|
||||
// gdb-check:a = 123
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:info locals
|
||||
//@ gdb-check:a = 123
|
||||
|
||||
// gdb-command:continue
|
||||
// gdb-command:info locals
|
||||
// gdb-check:x = 42
|
||||
// gdb-check:a = 123
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:info locals
|
||||
//@ gdb-check:x = 42
|
||||
//@ gdb-check:a = 123
|
||||
|
||||
// gdb-command:continue
|
||||
// gdb-command:info locals
|
||||
// gdb-check:y = true
|
||||
// gdb-check:b = 456
|
||||
// gdb-check:x = 42
|
||||
// gdb-check:a = 123
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:info locals
|
||||
//@ gdb-check:y = true
|
||||
//@ gdb-check:b = 456
|
||||
//@ gdb-check:x = 42
|
||||
//@ gdb-check:a = 123
|
||||
|
||||
// gdb-command:continue
|
||||
// gdb-command:info locals
|
||||
// gdb-check:z = 10
|
||||
// gdb-check:c = 789
|
||||
// gdb-check:y = true
|
||||
// gdb-check:b = 456
|
||||
// gdb-check:x = 42
|
||||
// gdb-check:a = 123
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:info locals
|
||||
//@ gdb-check:z = 10
|
||||
//@ gdb-check:c = 789
|
||||
//@ gdb-check:y = true
|
||||
//@ gdb-check:b = 456
|
||||
//@ gdb-check:x = 42
|
||||
//@ gdb-check:a = 123
|
||||
|
||||
// === LLDB TESTS =================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-command:frame variable
|
||||
// lldb-check:(int) a = 123
|
||||
//@ lldb-command:run
|
||||
//@ lldb-command:frame variable
|
||||
//@ lldb-check:(int) a = 123
|
||||
|
||||
// lldb-command:continue
|
||||
// lldb-command:frame variable
|
||||
// lldb-check:(int) a = 123 (int) x = 42
|
||||
//@ lldb-command:continue
|
||||
//@ lldb-command:frame variable
|
||||
//@ lldb-check:(int) a = 123 (int) x = 42
|
||||
|
||||
// lldb-command:continue
|
||||
// lldb-command:frame variable
|
||||
// lldb-check:(int) a = 123 (int) x = 42 (int) b = 456 (bool) y = true
|
||||
//@ lldb-command:continue
|
||||
//@ lldb-command:frame variable
|
||||
//@ lldb-check:(int) a = 123 (int) x = 42 (int) b = 456 (bool) y = true
|
||||
|
||||
// lldb-command:continue
|
||||
// lldb-command:frame variable
|
||||
// lldb-check:(int) a = 123 (int) x = 42 (int) b = 456 (bool) y = true (int) c = 789 (int) z = 10
|
||||
//@ lldb-command:continue
|
||||
//@ lldb-command:frame variable
|
||||
//@ lldb-check:(int) a = 123 (int) x = 42 (int) b = 456 (bool) y = true (int) c = 789 (int) z = 10
|
||||
|
||||
// === CDB TESTS ==================================================================================
|
||||
|
||||
// Note: `/n` causes the the output to be sorted to avoid depending on the order in PDB which may
|
||||
// be arbitrary.
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dv /n
|
||||
// cdb-check:[...]a = 0n123
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dv /n
|
||||
//@ cdb-check:[...]a = 0n123
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dv /n
|
||||
// cdb-check:[...]a = 0n123
|
||||
// cdb-check:[...]x = 0n42
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dv /n
|
||||
//@ cdb-check:[...]a = 0n123
|
||||
//@ cdb-check:[...]x = 0n42
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dv /n
|
||||
// cdb-check:[...]a = 0n123
|
||||
// cdb-check:[...]b = 0n456
|
||||
// cdb-check:[...]x = 0n42
|
||||
// cdb-check:[...]y = true
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dv /n
|
||||
//@ cdb-check:[...]a = 0n123
|
||||
//@ cdb-check:[...]b = 0n456
|
||||
//@ cdb-check:[...]x = 0n42
|
||||
//@ cdb-check:[...]y = true
|
||||
|
||||
// cdb-command: g
|
||||
// cdb-command: dv /n
|
||||
// cdb-check:[...]a = 0n123
|
||||
// cdb-check:[...]b = 0n456
|
||||
// cdb-check:[...]c = 0n789
|
||||
// cdb-check:[...]x = 0n42
|
||||
// cdb-check:[...]y = true
|
||||
// cdb-check:[...]z = 0n10
|
||||
//@ cdb-command: g
|
||||
//@ cdb-command: dv /n
|
||||
//@ cdb-check:[...]a = 0n123
|
||||
//@ cdb-check:[...]b = 0n456
|
||||
//@ cdb-check:[...]c = 0n789
|
||||
//@ cdb-check:[...]x = 0n42
|
||||
//@ cdb-check:[...]y = true
|
||||
//@ cdb-check:[...]z = 0n10
|
||||
|
||||
fn main() {
|
||||
let a = id(123);
|
||||
|
|
|
|||
|
|
@ -4,124 +4,124 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// BEFORE if
|
||||
// gdb-command:print x
|
||||
// gdb-check:$1 = 999
|
||||
// gdb-command:print y
|
||||
// gdb-check:$2 = -1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$1 = 999
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$2 = -1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// AT BEGINNING of 'then' block
|
||||
// gdb-command:print x
|
||||
// gdb-check:$3 = 999
|
||||
// gdb-command:print y
|
||||
// gdb-check:$4 = -1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$3 = 999
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$4 = -1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// AFTER 1st redeclaration of 'x'
|
||||
// gdb-command:print x
|
||||
// gdb-check:$5 = 1001
|
||||
// gdb-command:print y
|
||||
// gdb-check:$6 = -1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$5 = 1001
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$6 = -1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// AFTER 2st redeclaration of 'x'
|
||||
// gdb-command:print x
|
||||
// gdb-check:$7 = 1002
|
||||
// gdb-command:print y
|
||||
// gdb-check:$8 = 1003
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$7 = 1002
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$8 = 1003
|
||||
//@ gdb-command:continue
|
||||
|
||||
// AFTER 1st if expression
|
||||
// gdb-command:print x
|
||||
// gdb-check:$9 = 999
|
||||
// gdb-command:print y
|
||||
// gdb-check:$10 = -1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$9 = 999
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$10 = -1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// BEGINNING of else branch
|
||||
// gdb-command:print x
|
||||
// gdb-check:$11 = 999
|
||||
// gdb-command:print y
|
||||
// gdb-check:$12 = -1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$11 = 999
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$12 = -1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// BEGINNING of else branch
|
||||
// gdb-command:print x
|
||||
// gdb-check:$13 = 1004
|
||||
// gdb-command:print y
|
||||
// gdb-check:$14 = 1005
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$13 = 1004
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$14 = 1005
|
||||
//@ gdb-command:continue
|
||||
|
||||
// BEGINNING of else branch
|
||||
// gdb-command:print x
|
||||
// gdb-check:$15 = 999
|
||||
// gdb-command:print y
|
||||
// gdb-check:$16 = -1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$15 = 999
|
||||
//@ gdb-command:print y
|
||||
//@ gdb-check:$16 = -1
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// BEFORE if
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 999
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 999
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// AT BEGINNING of 'then' block
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 999
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 999
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// AFTER 1st redeclaration of 'x'
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 1001
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 1001
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// AFTER 2st redeclaration of 'x'
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 1002
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 1003
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 1002
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 1003
|
||||
//@ lldb-command:continue
|
||||
|
||||
// AFTER 1st if expression
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 999
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 999
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// BEGINNING of else branch
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 999
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 999
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// BEGINNING of else branch
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 1004
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] 1005
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 1004
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] 1005
|
||||
//@ lldb-command:continue
|
||||
|
||||
// BEGINNING of else branch
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 999
|
||||
// lldb-command:v y
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 999
|
||||
//@ lldb-command:v y
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:continue
|
||||
|
||||
fn main() {
|
||||
|
||||
|
|
|
|||
|
|
@ -4,116 +4,116 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print shadowed
|
||||
// gdb-check:$1 = 231
|
||||
// gdb-command:print not_shadowed
|
||||
// gdb-check:$2 = 232
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print shadowed
|
||||
//@ gdb-check:$1 = 231
|
||||
//@ gdb-command:print not_shadowed
|
||||
//@ gdb-check:$2 = 232
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print shadowed
|
||||
// gdb-check:$3 = 233
|
||||
// gdb-command:print not_shadowed
|
||||
// gdb-check:$4 = 232
|
||||
// gdb-command:print local_to_arm
|
||||
// gdb-check:$5 = 234
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print shadowed
|
||||
//@ gdb-check:$3 = 233
|
||||
//@ gdb-command:print not_shadowed
|
||||
//@ gdb-check:$4 = 232
|
||||
//@ gdb-command:print local_to_arm
|
||||
//@ gdb-check:$5 = 234
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print shadowed
|
||||
// gdb-check:$6 = 236
|
||||
// gdb-command:print not_shadowed
|
||||
// gdb-check:$7 = 232
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print shadowed
|
||||
//@ gdb-check:$6 = 236
|
||||
//@ gdb-command:print not_shadowed
|
||||
//@ gdb-check:$7 = 232
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print shadowed
|
||||
// gdb-check:$8 = 237
|
||||
// gdb-command:print not_shadowed
|
||||
// gdb-check:$9 = 232
|
||||
// gdb-command:print local_to_arm
|
||||
// gdb-check:$10 = 238
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print shadowed
|
||||
//@ gdb-check:$8 = 237
|
||||
//@ gdb-command:print not_shadowed
|
||||
//@ gdb-check:$9 = 232
|
||||
//@ gdb-command:print local_to_arm
|
||||
//@ gdb-check:$10 = 238
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print shadowed
|
||||
// gdb-check:$11 = 239
|
||||
// gdb-command:print not_shadowed
|
||||
// gdb-check:$12 = 232
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print shadowed
|
||||
//@ gdb-check:$11 = 239
|
||||
//@ gdb-command:print not_shadowed
|
||||
//@ gdb-check:$12 = 232
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print shadowed
|
||||
// gdb-check:$13 = 241
|
||||
// gdb-command:print not_shadowed
|
||||
// gdb-check:$14 = 232
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print shadowed
|
||||
//@ gdb-check:$13 = 241
|
||||
//@ gdb-command:print not_shadowed
|
||||
//@ gdb-check:$14 = 232
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print shadowed
|
||||
// gdb-check:$15 = 243
|
||||
// gdb-command:print *local_to_arm
|
||||
// gdb-check:$16 = 244
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print shadowed
|
||||
//@ gdb-check:$15 = 243
|
||||
//@ gdb-command:print *local_to_arm
|
||||
//@ gdb-check:$16 = 244
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print shadowed
|
||||
// gdb-check:$17 = 231
|
||||
// gdb-command:print not_shadowed
|
||||
// gdb-check:$18 = 232
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print shadowed
|
||||
//@ gdb-check:$17 = 231
|
||||
//@ gdb-command:print not_shadowed
|
||||
//@ gdb-check:$18 = 232
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v shadowed
|
||||
// lldb-check:[...] 231
|
||||
// lldb-command:v not_shadowed
|
||||
// lldb-check:[...] 232
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v shadowed
|
||||
//@ lldb-check:[...] 231
|
||||
//@ lldb-command:v not_shadowed
|
||||
//@ lldb-check:[...] 232
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v shadowed
|
||||
// lldb-check:[...] 233
|
||||
// lldb-command:v not_shadowed
|
||||
// lldb-check:[...] 232
|
||||
// lldb-command:v local_to_arm
|
||||
// lldb-check:[...] 234
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v shadowed
|
||||
//@ lldb-check:[...] 233
|
||||
//@ lldb-command:v not_shadowed
|
||||
//@ lldb-check:[...] 232
|
||||
//@ lldb-command:v local_to_arm
|
||||
//@ lldb-check:[...] 234
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v shadowed
|
||||
// lldb-check:[...] 236
|
||||
// lldb-command:v not_shadowed
|
||||
// lldb-check:[...] 232
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v shadowed
|
||||
//@ lldb-check:[...] 236
|
||||
//@ lldb-command:v not_shadowed
|
||||
//@ lldb-check:[...] 232
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v shadowed
|
||||
// lldb-check:[...] 237
|
||||
// lldb-command:v not_shadowed
|
||||
// lldb-check:[...] 232
|
||||
// lldb-command:v local_to_arm
|
||||
// lldb-check:[...] 238
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v shadowed
|
||||
//@ lldb-check:[...] 237
|
||||
//@ lldb-command:v not_shadowed
|
||||
//@ lldb-check:[...] 232
|
||||
//@ lldb-command:v local_to_arm
|
||||
//@ lldb-check:[...] 238
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v shadowed
|
||||
// lldb-check:[...] 239
|
||||
// lldb-command:v not_shadowed
|
||||
// lldb-check:[...] 232
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v shadowed
|
||||
//@ lldb-check:[...] 239
|
||||
//@ lldb-command:v not_shadowed
|
||||
//@ lldb-check:[...] 232
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v shadowed
|
||||
// lldb-check:[...] 241
|
||||
// lldb-command:v not_shadowed
|
||||
// lldb-check:[...] 232
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v shadowed
|
||||
//@ lldb-check:[...] 241
|
||||
//@ lldb-command:v not_shadowed
|
||||
//@ lldb-check:[...] 232
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v shadowed
|
||||
// lldb-check:[...] 243
|
||||
// lldb-command:v *local_to_arm
|
||||
// lldb-check:[...] 244
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v shadowed
|
||||
//@ lldb-check:[...] 243
|
||||
//@ lldb-command:v *local_to_arm
|
||||
//@ lldb-check:[...] 244
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v shadowed
|
||||
// lldb-check:[...] 231
|
||||
// lldb-command:v not_shadowed
|
||||
// lldb-check:[...] 232
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v shadowed
|
||||
//@ lldb-check:[...] 231
|
||||
//@ lldb-command:v not_shadowed
|
||||
//@ lldb-check:[...] 232
|
||||
//@ lldb-command:continue
|
||||
|
||||
struct Struct {
|
||||
x: isize,
|
||||
|
|
|
|||
|
|
@ -1,7 +1,7 @@
|
|||
//@ compile-flags:-C debuginfo=1
|
||||
|
||||
// gdb-command:run
|
||||
// lldb-command:run
|
||||
//@ gdb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// Nothing to do here really, just make sure it compiles. See issue #8513.
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -4,60 +4,60 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$1 = false
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$1 = false
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$2 = false
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$2 = false
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$3 = 1000
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$3 = 1000
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$4 = 2.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$4 = 2.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$5 = true
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$5 = true
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$6 = false
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$6 = false
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] false
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] false
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] false
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] false
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 1000
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 1000
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 2.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 2.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] true
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] true
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] false
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] false
|
||||
//@ lldb-command:continue
|
||||
|
||||
fn main() {
|
||||
|
||||
|
|
|
|||
|
|
@ -4,122 +4,122 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// FIRST ITERATION
|
||||
// gdb-command:print x
|
||||
// gdb-check:$1 = 0
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$1 = 0
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$2 = 1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$2 = 1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$3 = 101
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$3 = 101
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$4 = 101
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$4 = 101
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$5 = -987
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$5 = -987
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$6 = 101
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$6 = 101
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// SECOND ITERATION
|
||||
// gdb-command:print x
|
||||
// gdb-check:$7 = 1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$7 = 1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$8 = 2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$8 = 2
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$9 = 102
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$9 = 102
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$10 = 102
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$10 = 102
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$11 = -987
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$11 = -987
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$12 = 102
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$12 = 102
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$13 = 2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$13 = 2
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// FIRST ITERATION
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 0
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 0
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 101
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 101
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 101
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 101
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] -987
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] -987
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 101
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 101
|
||||
//@ lldb-command:continue
|
||||
|
||||
|
||||
// SECOND ITERATION
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 2
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 102
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 102
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 102
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 102
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] -987
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] -987
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 102
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 102
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 2
|
||||
//@ lldb-command:continue
|
||||
|
||||
fn main() {
|
||||
|
||||
|
|
|
|||
|
|
@ -4,60 +4,60 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$1 = false
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$1 = false
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$2 = false
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$2 = false
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$3 = 1000
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$3 = 1000
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$4 = 2.5
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$4 = 2.5
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$5 = true
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$5 = true
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$6 = false
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$6 = false
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] false
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] false
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] false
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] false
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 1000
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 1000
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 2.5
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 2.5
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] true
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] true
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] false
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] false
|
||||
//@ lldb-command:continue
|
||||
|
||||
|
||||
fn main() {
|
||||
|
|
|
|||
|
|
@ -4,122 +4,122 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// FIRST ITERATION
|
||||
// gdb-command:print x
|
||||
// gdb-check:$1 = 0
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$1 = 0
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$2 = 1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$2 = 1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$3 = 101
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$3 = 101
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$4 = 101
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$4 = 101
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$5 = -987
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$5 = -987
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$6 = 101
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$6 = 101
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// SECOND ITERATION
|
||||
// gdb-command:print x
|
||||
// gdb-check:$7 = 1
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$7 = 1
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$8 = 2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$8 = 2
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$9 = 102
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$9 = 102
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$10 = 102
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$10 = 102
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$11 = -987
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$11 = -987
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$12 = 102
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$12 = 102
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print x
|
||||
// gdb-check:$13 = 2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print x
|
||||
//@ gdb-check:$13 = 2
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// FIRST ITERATION
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 0
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 0
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 101
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 101
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 101
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 101
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] -987
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] -987
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 101
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 101
|
||||
//@ lldb-command:continue
|
||||
|
||||
|
||||
// SECOND ITERATION
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 1
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 1
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 2
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 102
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 102
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 102
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 102
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] -987
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] -987
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 102
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 102
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v x
|
||||
// lldb-check:[...] 2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v x
|
||||
//@ lldb-check:[...] 2
|
||||
//@ lldb-command:continue
|
||||
|
||||
fn main() {
|
||||
|
||||
|
|
|
|||
|
|
@ -4,100 +4,100 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$1 = 10
|
||||
// gdb-command:print b
|
||||
// gdb-check:$2 = 34
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$1 = 10
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$2 = 34
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$3 = 890242
|
||||
// gdb-command:print b
|
||||
// gdb-check:$4 = 34
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$3 = 890242
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$4 = 34
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$5 = 10
|
||||
// gdb-command:print b
|
||||
// gdb-check:$6 = 34
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$5 = 10
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$6 = 34
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$7 = 102
|
||||
// gdb-command:print b
|
||||
// gdb-check:$8 = 34
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$7 = 102
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$8 = 34
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$9 = 110
|
||||
// gdb-command:print b
|
||||
// gdb-check:$10 = 34
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$9 = 110
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$10 = 34
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$11 = 10
|
||||
// gdb-command:print b
|
||||
// gdb-check:$12 = 34
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$11 = 10
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$12 = 34
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$13 = 10
|
||||
// gdb-command:print b
|
||||
// gdb-check:$14 = 34
|
||||
// gdb-command:print c
|
||||
// gdb-check:$15 = 400
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$13 = 10
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$14 = 34
|
||||
//@ gdb-command:print c
|
||||
//@ gdb-check:$15 = 400
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 34
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 34
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 890242
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 34
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 890242
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 34
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 34
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 34
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 102
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 34
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 102
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 34
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:print a
|
||||
// lldb-check:[...] 110
|
||||
// lldb-command:print b
|
||||
// lldb-check:[...] 34
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:print a
|
||||
//@ lldb-check:[...] 110
|
||||
//@ lldb-command:print b
|
||||
//@ lldb-check:[...] 34
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:print a
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:print b
|
||||
// lldb-check:[...] 34
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:print a
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:print b
|
||||
//@ lldb-check:[...] 34
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:print a
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:print b
|
||||
// lldb-check:[...] 34
|
||||
// lldb-command:print c
|
||||
// lldb-check:[...] 400
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:print a
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:print b
|
||||
//@ lldb-check:[...] 34
|
||||
//@ lldb-command:print c
|
||||
//@ lldb-check:[...] 400
|
||||
//@ lldb-command:continue
|
||||
|
||||
macro_rules! trivial {
|
||||
($e1:expr) => ($e1)
|
||||
|
|
|
|||
|
|
@ -4,337 +4,337 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
// gdb-check:$1 = 0
|
||||
//@ gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
//@ gdb-check:$1 = 0
|
||||
|
||||
// STRUCT EXPRESSION
|
||||
// gdb-command:print val
|
||||
// gdb-check:$2 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$3 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$2 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$3 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$4 = 11
|
||||
// gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
// gdb-check:$5 = 1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$6 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$4 = 11
|
||||
//@ gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
//@ gdb-check:$5 = 1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$6 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$7 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$8 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$7 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$8 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// FUNCTION CALL
|
||||
// gdb-command:print val
|
||||
// gdb-check:$9 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$10 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$9 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$10 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$11 = 12
|
||||
// gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
// gdb-check:$12 = 2
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$13 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$11 = 12
|
||||
//@ gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
//@ gdb-check:$12 = 2
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$13 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$14 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$15 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$14 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$15 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// TUPLE EXPRESSION
|
||||
// gdb-command:print val
|
||||
// gdb-check:$16 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$17 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$16 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$17 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$18 = 13
|
||||
// gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
// gdb-check:$19 = 3
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$20 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$18 = 13
|
||||
//@ gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
//@ gdb-check:$19 = 3
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$20 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$21 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$22 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$21 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$22 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// VEC EXPRESSION
|
||||
// gdb-command:print val
|
||||
// gdb-check:$23 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$24 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$23 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$24 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$25 = 14
|
||||
// gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
// gdb-check:$26 = 4
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$27 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$25 = 14
|
||||
//@ gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
//@ gdb-check:$26 = 4
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$27 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$28 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$29 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$28 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$29 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// REPEAT VEC EXPRESSION
|
||||
// gdb-command:print val
|
||||
// gdb-check:$30 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$31 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$30 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$31 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$32 = 15
|
||||
// gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
// gdb-check:$33 = 5
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$34 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$32 = 15
|
||||
//@ gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
//@ gdb-check:$33 = 5
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$34 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$35 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$36 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$35 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$36 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// ASSIGNMENT EXPRESSION
|
||||
// gdb-command:print val
|
||||
// gdb-check:$37 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$38 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$37 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$38 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$39 = 16
|
||||
// gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
// gdb-check:$40 = 6
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$41 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$39 = 16
|
||||
//@ gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
//@ gdb-check:$40 = 6
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$41 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$42 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$43 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$42 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$43 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// ARITHMETIC EXPRESSION
|
||||
// gdb-command:print val
|
||||
// gdb-check:$44 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$45 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$44 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$45 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$46 = 17
|
||||
// gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
// gdb-check:$47 = 7
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$48 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$46 = 17
|
||||
//@ gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
//@ gdb-check:$47 = 7
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$48 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$49 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$50 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$49 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$50 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// INDEX EXPRESSION
|
||||
// gdb-command:print val
|
||||
// gdb-check:$51 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$52 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$51 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$52 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$53 = 18
|
||||
// gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
// gdb-check:$54 = 8
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$55 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$53 = 18
|
||||
//@ gdb-command:print lexical_scopes_in_block_expression::MUT_INT
|
||||
//@ gdb-check:$54 = 8
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$55 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print val
|
||||
// gdb-check:$56 = -1
|
||||
// gdb-command:print ten
|
||||
// gdb-check:$57 = 10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print val
|
||||
//@ gdb-check:$56 = -1
|
||||
//@ gdb-command:print ten
|
||||
//@ gdb-check:$57 = 10
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// STRUCT EXPRESSION
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] 11
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] 11
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// FUNCTION CALL
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] 12
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] 12
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// TUPLE EXPRESSION
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] 13
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] 13
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// VEC EXPRESSION
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] 14
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] 14
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// REPEAT VEC EXPRESSION
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] 15
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] 15
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// ASSIGNMENT EXPRESSION
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] 16
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] 16
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
|
||||
// ARITHMETIC EXPRESSION
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] 17
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] 17
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// INDEX EXPRESSION
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] 18
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] 18
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v val
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v ten
|
||||
// lldb-check:[...] 10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v val
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v ten
|
||||
//@ lldb-check:[...] 10
|
||||
//@ lldb-command:continue
|
||||
|
||||
#![allow(unused_variables)]
|
||||
#![allow(unused_assignments)]
|
||||
|
|
|
|||
|
|
@ -5,18 +5,18 @@
|
|||
//@ ignore-backends: gcc
|
||||
|
||||
// Make sure functions have proper names
|
||||
// gdb-command:info functions
|
||||
// gdb-check:fn limited_debuginfo::main();
|
||||
// gdb-check:fn limited_debuginfo::some_function();
|
||||
// gdb-check:fn limited_debuginfo::some_other_function();
|
||||
// gdb-check:fn limited_debuginfo::zzz();
|
||||
//@ gdb-command:info functions
|
||||
//@ gdb-check:fn limited_debuginfo::main();
|
||||
//@ gdb-check:fn limited_debuginfo::some_function();
|
||||
//@ gdb-check:fn limited_debuginfo::some_other_function();
|
||||
//@ gdb-check:fn limited_debuginfo::zzz();
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// Make sure there is no information about locals
|
||||
// gdb-command:info locals
|
||||
// gdb-check:No locals.
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:info locals
|
||||
//@ gdb-check:No locals.
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
|
|
|||
|
|
@ -14,77 +14,77 @@ extern crate macro_stepping; // exports new_scope!()
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc1[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc2[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc3[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc4[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc5[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#loc6[...]
|
||||
//@ gdb-command:run
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc1[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc2[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc3[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc4[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc5[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#loc6[...]
|
||||
|
||||
// gdb-command:continue
|
||||
// gdb-command:step
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#inc-loc1[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#inc-loc2[...]
|
||||
// gdb-command:next
|
||||
// gdb-command:frame
|
||||
// gdb-check:[...]#inc-loc3[...]
|
||||
//@ gdb-command:continue
|
||||
//@ gdb-command:step
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#inc-loc1[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#inc-loc2[...]
|
||||
//@ gdb-command:next
|
||||
//@ gdb-command:frame
|
||||
//@ gdb-check:[...]#inc-loc3[...]
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:set set stop-line-count-before 0
|
||||
// lldb-command:set set stop-line-count-after 1
|
||||
//@ lldb-command:set set stop-line-count-before 0
|
||||
//@ lldb-command:set set stop-line-count-after 1
|
||||
// Can't set both to zero or lldb will stop printing source at all. So it will output the current
|
||||
// line and the next. We deal with this by having at least 2 lines between the #loc's
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #loc1 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #loc2 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #loc3 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #loc4 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #loc5 [...]
|
||||
//@ lldb-command:run
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #loc1 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #loc2 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #loc3 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #loc4 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #loc5 [...]
|
||||
|
||||
// lldb-command:continue
|
||||
// lldb-command:step
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #inc-loc1 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #inc-loc2 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #inc-loc1 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #inc-loc2 [...]
|
||||
// lldb-command:next
|
||||
// lldb-command:frame select
|
||||
// lldb-check:[...] #inc-loc3 [...]
|
||||
//@ lldb-command:continue
|
||||
//@ lldb-command:step
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #inc-loc1 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #inc-loc2 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #inc-loc1 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #inc-loc2 [...]
|
||||
//@ lldb-command:next
|
||||
//@ lldb-command:frame select
|
||||
//@ lldb-check:[...] #inc-loc3 [...]
|
||||
|
||||
#[collapse_debuginfo(yes)]
|
||||
macro_rules! foo {
|
||||
|
|
|
|||
|
|
@ -3,29 +3,29 @@
|
|||
|
||||
// === CDB TESTS ==================================================================================
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx nonnull
|
||||
// cdb-check:nonnull : NonNull(0x[...]: 0xc) [Type: core::ptr::non_null::NonNull<u32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::ptr::non_null::NonNull<u32>]
|
||||
// cdb-check: 0xc [Type: unsigned int]
|
||||
//@ cdb-command: dx nonnull
|
||||
//@ cdb-check:nonnull : NonNull(0x[...]: 0xc) [Type: core::ptr::non_null::NonNull<u32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::ptr::non_null::NonNull<u32>]
|
||||
//@ cdb-check: 0xc [Type: unsigned int]
|
||||
|
||||
// cdb-command: dx manuallydrop
|
||||
// cdb-check:manuallydrop : 12345 [Type: core::mem::manually_drop::ManuallyDrop<i32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::mem::manually_drop::ManuallyDrop<i32>]
|
||||
//@ cdb-command: dx manuallydrop
|
||||
//@ cdb-check:manuallydrop : 12345 [Type: core::mem::manually_drop::ManuallyDrop<i32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::mem::manually_drop::ManuallyDrop<i32>]
|
||||
|
||||
// cdb-command: dx pin
|
||||
// cdb-check:pin : Pin(0x[...]: "this") [Type: core::pin::Pin<ref_mut$<alloc::string::String> >]
|
||||
// cdb-check: [<Raw View>] [Type: core::pin::Pin<ref_mut$<alloc::string::String> >]
|
||||
// cdb-check: [len] : 0x4 [Type: unsigned [...]]
|
||||
// cdb-check: [capacity] : 0x4 [Type: unsigned [...]]
|
||||
// cdb-check: [chars] : "this"
|
||||
//@ cdb-command: dx pin
|
||||
//@ cdb-check:pin : Pin(0x[...]: "this") [Type: core::pin::Pin<ref_mut$<alloc::string::String> >]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::pin::Pin<ref_mut$<alloc::string::String> >]
|
||||
//@ cdb-check: [len] : 0x4 [Type: unsigned [...]]
|
||||
//@ cdb-check: [capacity] : 0x4 [Type: unsigned [...]]
|
||||
//@ cdb-check: [chars] : "this"
|
||||
|
||||
// cdb-command: dx unique
|
||||
// cdb-check:unique : Unique(0x[...]: (0x2a, 4321)) [Type: core::ptr::unique::Unique<tuple$<u64,i32> >]
|
||||
// cdb-check: [<Raw View>] [Type: core::ptr::unique::Unique<tuple$<u64,i32> >]
|
||||
// cdb-check: [0] : 0x2a [Type: unsigned __int64]
|
||||
// cdb-check: [1] : 4321 [Type: int]
|
||||
//@ cdb-command: dx unique
|
||||
//@ cdb-check:unique : Unique(0x[...]: (0x2a, 4321)) [Type: core::ptr::unique::Unique<tuple$<u64,i32> >]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::ptr::unique::Unique<tuple$<u64,i32> >]
|
||||
//@ cdb-check: [0] : 0x2a [Type: unsigned __int64]
|
||||
//@ cdb-check: [1] : 4321 [Type: int]
|
||||
|
||||
#![feature(ptr_internals)]
|
||||
|
||||
|
|
|
|||
|
|
@ -8,102 +8,102 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// STACK BY REF
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$1 = method_on_enum::Enum::Variant2(117901063)
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$2 = -1
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$3 = -2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$1 = method_on_enum::Enum::Variant2(117901063)
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$2 = -1
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$3 = -2
|
||||
//@ gdb-command:continue
|
||||
|
||||
// STACK BY VAL
|
||||
// gdb-command:print self
|
||||
// gdb-check:$4 = method_on_enum::Enum::Variant2(117901063)
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$5 = -3
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$6 = -4
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$4 = method_on_enum::Enum::Variant2(117901063)
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$5 = -3
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$6 = -4
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED BY REF
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$7 = method_on_enum::Enum::Variant1{x: 1799, y: 1799}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$8 = -5
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$9 = -6
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$7 = method_on_enum::Enum::Variant1{x: 1799, y: 1799}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$8 = -5
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$9 = -6
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED BY VAL
|
||||
// gdb-command:print self
|
||||
// gdb-check:$10 = method_on_enum::Enum::Variant1{x: 1799, y: 1799}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$11 = -7
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$12 = -8
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$10 = method_on_enum::Enum::Variant1{x: 1799, y: 1799}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$11 = -7
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$12 = -8
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED MOVED
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$13 = method_on_enum::Enum::Variant1{x: 1799, y: 1799}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$14 = -9
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$15 = -10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$13 = method_on_enum::Enum::Variant1{x: 1799, y: 1799}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$14 = -9
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$15 = -10
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// STACK BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] Variant2(117901063)
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] Variant2(117901063)
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -2
|
||||
//@ lldb-command:continue
|
||||
|
||||
// STACK BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] Variant2(117901063)
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -3
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -4
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] Variant2(117901063)
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -3
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -4
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] Variant1 { x: 1799, y: 1799 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -5
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -6
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] Variant1 { x: 1799, y: 1799 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -5
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -6
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] Variant1 { x: 1799, y: 1799 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -7
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -8
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] Variant1 { x: 1799, y: 1799 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -7
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -8
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED MOVED
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] Variant1 { x: 1799, y: 1799 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -9
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] Variant1 { x: 1799, y: 1799 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -9
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -10
|
||||
//@ lldb-command:continue
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
enum Enum {
|
||||
|
|
|
|||
|
|
@ -4,102 +4,102 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// STACK BY REF
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$1 = method_on_generic_struct::Struct<(u32, i32)> {x: (8888, -8888)}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$2 = -1
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$3 = -2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$1 = method_on_generic_struct::Struct<(u32, i32)> {x: (8888, -8888)}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$2 = -1
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$3 = -2
|
||||
//@ gdb-command:continue
|
||||
|
||||
// STACK BY VAL
|
||||
// gdb-command:print self
|
||||
// gdb-check:$4 = method_on_generic_struct::Struct<(u32, i32)> {x: (8888, -8888)}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$5 = -3
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$6 = -4
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$4 = method_on_generic_struct::Struct<(u32, i32)> {x: (8888, -8888)}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$5 = -3
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$6 = -4
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED BY REF
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$7 = method_on_generic_struct::Struct<f64> {x: 1234.5}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$8 = -5
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$9 = -6
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$7 = method_on_generic_struct::Struct<f64> {x: 1234.5}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$8 = -5
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$9 = -6
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED BY VAL
|
||||
// gdb-command:print self
|
||||
// gdb-check:$10 = method_on_generic_struct::Struct<f64> {x: 1234.5}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$11 = -7
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$12 = -8
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$10 = method_on_generic_struct::Struct<f64> {x: 1234.5}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$11 = -7
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$12 = -8
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED MOVED
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$13 = method_on_generic_struct::Struct<f64> {x: 1234.5}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$14 = -9
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$15 = -10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$13 = method_on_generic_struct::Struct<f64> {x: 1234.5}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$14 = -9
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$15 = -10
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// STACK BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...]Struct<(u32, i32)>) *self = { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...]Struct<(u32, i32)>) *self = { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -2
|
||||
//@ lldb-command:continue
|
||||
|
||||
// STACK BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...]Struct<(u32, i32)>) self = { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -3
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -4
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...]Struct<(u32, i32)>) self = { x = (8888, -8888) { 0 = 8888 1 = -8888 } }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -3
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -4
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...]Struct<double>) *self = { x = 1234.5 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -5
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -6
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...]Struct<double>) *self = { x = 1234.5 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -5
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -6
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...]Struct<double>) self = { x = 1234.5 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -7
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -8
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...]Struct<double>) self = { x = 1234.5 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -7
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -8
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED MOVED
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...]Struct<double>) *self = { x = 1234.5 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -9
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...]Struct<double>) *self = { x = 1234.5 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -9
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -10
|
||||
//@ lldb-command:continue
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
struct Struct<T> {
|
||||
|
|
|
|||
|
|
@ -4,102 +4,102 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// STACK BY REF
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$1 = method_on_struct::Struct {x: 100}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$2 = -1
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$3 = -2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$1 = method_on_struct::Struct {x: 100}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$2 = -1
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$3 = -2
|
||||
//@ gdb-command:continue
|
||||
|
||||
// STACK BY VAL
|
||||
// gdb-command:print self
|
||||
// gdb-check:$4 = method_on_struct::Struct {x: 100}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$5 = -3
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$6 = -4
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$4 = method_on_struct::Struct {x: 100}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$5 = -3
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$6 = -4
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED BY REF
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$7 = method_on_struct::Struct {x: 200}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$8 = -5
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$9 = -6
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$7 = method_on_struct::Struct {x: 200}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$8 = -5
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$9 = -6
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED BY VAL
|
||||
// gdb-command:print self
|
||||
// gdb-check:$10 = method_on_struct::Struct {x: 200}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$11 = -7
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$12 = -8
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$10 = method_on_struct::Struct {x: 200}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$11 = -7
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$12 = -8
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED MOVED
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$13 = method_on_struct::Struct {x: 200}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$14 = -9
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$15 = -10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$13 = method_on_struct::Struct {x: 200}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$14 = -9
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$15 = -10
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// STACK BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { x = 100 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] { x = 100 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -2
|
||||
//@ lldb-command:continue
|
||||
|
||||
// STACK BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] { x = 100 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -3
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -4
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] { x = 100 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -3
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -4
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { x = 200 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -5
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -6
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] { x = 200 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -5
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -6
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] { x = 200 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -7
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -8
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] { x = 200 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -7
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -8
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED MOVED
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { x = 200 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -9
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] { x = 200 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -9
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -10
|
||||
//@ lldb-command:continue
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
struct Struct {
|
||||
|
|
|
|||
|
|
@ -4,102 +4,102 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// STACK BY REF
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$1 = method_on_trait::Struct {x: 100}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$2 = -1
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$3 = -2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$1 = method_on_trait::Struct {x: 100}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$2 = -1
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$3 = -2
|
||||
//@ gdb-command:continue
|
||||
|
||||
// STACK BY VAL
|
||||
// gdb-command:print self
|
||||
// gdb-check:$4 = method_on_trait::Struct {x: 100}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$5 = -3
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$6 = -4
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$4 = method_on_trait::Struct {x: 100}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$5 = -3
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$6 = -4
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED BY REF
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$7 = method_on_trait::Struct {x: 200}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$8 = -5
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$9 = -6
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$7 = method_on_trait::Struct {x: 200}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$8 = -5
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$9 = -6
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED BY VAL
|
||||
// gdb-command:print self
|
||||
// gdb-check:$10 = method_on_trait::Struct {x: 200}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$11 = -7
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$12 = -8
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$10 = method_on_trait::Struct {x: 200}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$11 = -7
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$12 = -8
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED MOVED
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$13 = method_on_trait::Struct {x: 200}
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$14 = -9
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$15 = -10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$13 = method_on_trait::Struct {x: 200}
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$14 = -9
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$15 = -10
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// STACK BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { x = 100 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] { x = 100 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -2
|
||||
//@ lldb-command:continue
|
||||
|
||||
// STACK BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] { x = 100 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -3
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -4
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] { x = 100 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -3
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -4
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { x = 200 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -5
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -6
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] { x = 200 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -5
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -6
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] { x = 200 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -7
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -8
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] { x = 200 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -7
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -8
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED MOVED
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { x = 200 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -9
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] { x = 200 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -9
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -10
|
||||
//@ lldb-command:continue
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
struct Struct {
|
||||
|
|
|
|||
|
|
@ -4,102 +4,102 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// STACK BY REF
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$1 = method_on_tuple_struct::TupleStruct (100, -100.5)
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$2 = -1
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$3 = -2
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$1 = method_on_tuple_struct::TupleStruct (100, -100.5)
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$2 = -1
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$3 = -2
|
||||
//@ gdb-command:continue
|
||||
|
||||
// STACK BY VAL
|
||||
// gdb-command:print self
|
||||
// gdb-check:$4 = method_on_tuple_struct::TupleStruct (100, -100.5)
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$5 = -3
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$6 = -4
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$4 = method_on_tuple_struct::TupleStruct (100, -100.5)
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$5 = -3
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$6 = -4
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED BY REF
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$7 = method_on_tuple_struct::TupleStruct (200, -200.5)
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$8 = -5
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$9 = -6
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$7 = method_on_tuple_struct::TupleStruct (200, -200.5)
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$8 = -5
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$9 = -6
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED BY VAL
|
||||
// gdb-command:print self
|
||||
// gdb-check:$10 = method_on_tuple_struct::TupleStruct (200, -200.5)
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$11 = -7
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$12 = -8
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print self
|
||||
//@ gdb-check:$10 = method_on_tuple_struct::TupleStruct (200, -200.5)
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$11 = -7
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$12 = -8
|
||||
//@ gdb-command:continue
|
||||
|
||||
// OWNED MOVED
|
||||
// gdb-command:print *self
|
||||
// gdb-check:$13 = method_on_tuple_struct::TupleStruct (200, -200.5)
|
||||
// gdb-command:print arg1
|
||||
// gdb-check:$14 = -9
|
||||
// gdb-command:print arg2
|
||||
// gdb-check:$15 = -10
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print *self
|
||||
//@ gdb-check:$13 = method_on_tuple_struct::TupleStruct (200, -200.5)
|
||||
//@ gdb-command:print arg1
|
||||
//@ gdb-check:$14 = -9
|
||||
//@ gdb-command:print arg2
|
||||
//@ gdb-check:$15 = -10
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// STACK BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { 0 = 100 1 = -100.5 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -1
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -2
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] { 0 = 100 1 = -100.5 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -1
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -2
|
||||
//@ lldb-command:continue
|
||||
|
||||
// STACK BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] { 0 = 100 1 = -100.5 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -3
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -4
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] { 0 = 100 1 = -100.5 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -3
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -4
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED BY REF
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { 0 = 200 1 = -200.5 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -5
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -6
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] { 0 = 200 1 = -200.5 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -5
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -6
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED BY VAL
|
||||
// lldb-command:v self
|
||||
// lldb-check:[...] { 0 = 200 1 = -200.5 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -7
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -8
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v self
|
||||
//@ lldb-check:[...] { 0 = 200 1 = -200.5 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -7
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -8
|
||||
//@ lldb-command:continue
|
||||
|
||||
// OWNED MOVED
|
||||
// lldb-command:v *self
|
||||
// lldb-check:[...] { 0 = 200 1 = -200.5 }
|
||||
// lldb-command:v arg1
|
||||
// lldb-check:[...] -9
|
||||
// lldb-command:v arg2
|
||||
// lldb-check:[...] -10
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v *self
|
||||
//@ lldb-check:[...] { 0 = 200 1 = -200.5 }
|
||||
//@ lldb-command:v arg1
|
||||
//@ lldb-check:[...] -9
|
||||
//@ lldb-command:v arg2
|
||||
//@ lldb-check:[...] -10
|
||||
//@ lldb-command:continue
|
||||
|
||||
#[derive(Copy, Clone)]
|
||||
struct TupleStruct(isize, f64);
|
||||
|
|
|
|||
|
|
@ -4,233 +4,233 @@
|
|||
//@ compile-flags:-g
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:(core::option::Option<msvc_pretty_enums::CStyleEnum>) a = { value = { 0 = Low } }
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:(core::option::Option<msvc_pretty_enums::CStyleEnum>) a = { value = { 0 = Low } }
|
||||
|
||||
// lldb-command:v b
|
||||
// lldb-check:(core::option::Option<msvc_pretty_enums::CStyleEnum>) b = { value = $discr$ = '\x01' }
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:(core::option::Option<msvc_pretty_enums::CStyleEnum>) b = { value = $discr$ = '\x01' }
|
||||
|
||||
// lldb-command:v c
|
||||
// lldb-check:(msvc_pretty_enums::NicheLayoutEnum) c = { value = $discr$ = '\x11' }
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:(msvc_pretty_enums::NicheLayoutEnum) c = { value = $discr$ = '\x11' }
|
||||
|
||||
// lldb-command:v d
|
||||
// lldb-check:(msvc_pretty_enums::NicheLayoutEnum) d = { value = { my_data = High } }
|
||||
//@ lldb-command:v d
|
||||
//@ lldb-check:(msvc_pretty_enums::NicheLayoutEnum) d = { value = { my_data = High } }
|
||||
|
||||
// lldb-command:v e
|
||||
// lldb-check:(msvc_pretty_enums::NicheLayoutEnum) e = { value = $discr$ = '\x13' }
|
||||
//@ lldb-command:v e
|
||||
//@ lldb-check:(msvc_pretty_enums::NicheLayoutEnum) e = { value = $discr$ = '\x13' }
|
||||
|
||||
// lldb-command:v h
|
||||
// lldb-check:(core::option::Option<u32>) h = { value = { 0 = 12 } $discr$ = 1 }
|
||||
//@ lldb-command:v h
|
||||
//@ lldb-check:(core::option::Option<u32>) h = { value = { 0 = 12 } $discr$ = 1 }
|
||||
|
||||
// lldb-command:v i
|
||||
// lldb-check:(core::option::Option<u32>) i = { value = $discr$ = 0 }
|
||||
//@ lldb-command:v i
|
||||
//@ lldb-check:(core::option::Option<u32>) i = { value = $discr$ = 0 }
|
||||
|
||||
// lldb-command:v j
|
||||
// lldb-check:(msvc_pretty_enums::CStyleEnum) j = High
|
||||
//@ lldb-command:v j
|
||||
//@ lldb-check:(msvc_pretty_enums::CStyleEnum) j = High
|
||||
|
||||
// lldb-command:v k
|
||||
// lldb-check:(core::option::Option<alloc::string::String>) k = { value = { 0 = "IAMA optional string!" { [0] = 'I' [1] = 'A' [2] = 'M' [3] = 'A' [4] = ' ' [5] = 'o' [6] = 'p' [7] = 't' [8] = 'i' [9] = 'o' [10] = 'n' [11] = 'a' [12] = 'l' [13] = ' ' [14] = 's' [15] = 't' [16] = 'r' [17] = 'i' [18] = 'n' [19] = 'g' [20] = '!' } } }
|
||||
//@ lldb-command:v k
|
||||
//@ lldb-check:(core::option::Option<alloc::string::String>) k = { value = { 0 = "IAMA optional string!" { [0] = 'I' [1] = 'A' [2] = 'M' [3] = 'A' [4] = ' ' [5] = 'o' [6] = 'p' [7] = 't' [8] = 'i' [9] = 'o' [10] = 'n' [11] = 'a' [12] = 'l' [13] = ' ' [14] = 's' [15] = 't' [16] = 'r' [17] = 'i' [18] = 'n' [19] = 'g' [20] = '!' } } }
|
||||
|
||||
// lldb-command:v l
|
||||
// lldb-check:(core::result::Result<u32, msvc_pretty_enums::Empty>) l = { value = { 0 = {} } }
|
||||
//@ lldb-command:v l
|
||||
//@ lldb-check:(core::result::Result<u32, msvc_pretty_enums::Empty>) l = { value = { 0 = {} } }
|
||||
|
||||
// lldb-command:v niche128_some
|
||||
// lldb-check:(core::option::Option<core::num::nonzero::NonZero<i128>>) niche128_some = { value = $discr$ = 123456 }
|
||||
//@ lldb-command:v niche128_some
|
||||
//@ lldb-check:(core::option::Option<core::num::nonzero::NonZero<i128>>) niche128_some = { value = $discr$ = 123456 }
|
||||
|
||||
// lldb-command:v niche128_none
|
||||
// lldb-check:(core::option::Option<core::num::nonzero::NonZero<i128>>) niche128_none = { value = $discr$ = 0 }
|
||||
//@ lldb-command:v niche128_none
|
||||
//@ lldb-check:(core::option::Option<core::num::nonzero::NonZero<i128>>) niche128_none = { value = $discr$ = 0 }
|
||||
|
||||
// lldb-command:v wrapping_niche128_untagged
|
||||
// lldb-check:(msvc_pretty_enums::Wrapping128Niche) wrapping_niche128_untagged = { value = { 0 = { 0 = 340282366920938463463374607431768211454 } } }
|
||||
//@ lldb-command:v wrapping_niche128_untagged
|
||||
//@ lldb-check:(msvc_pretty_enums::Wrapping128Niche) wrapping_niche128_untagged = { value = { 0 = { 0 = 340282366920938463463374607431768211454 } } }
|
||||
|
||||
// lldb-command:v wrapping_niche128_none1
|
||||
// lldb-check:(msvc_pretty_enums::Wrapping128Niche) wrapping_niche128_none1 = { value = { 0 = { 0 = 2 } } }
|
||||
//@ lldb-command:v wrapping_niche128_none1
|
||||
//@ lldb-check:(msvc_pretty_enums::Wrapping128Niche) wrapping_niche128_none1 = { value = { 0 = { 0 = 2 } } }
|
||||
|
||||
// lldb-command:v direct_tag_128_a
|
||||
// lldb-check:(msvc_pretty_enums::DirectTag128) direct_tag_128_a = { value = { 0 = 42 } $discr$ = 0 }
|
||||
//@ lldb-command:v direct_tag_128_a
|
||||
//@ lldb-check:(msvc_pretty_enums::DirectTag128) direct_tag_128_a = { value = { 0 = 42 } $discr$ = 0 }
|
||||
|
||||
// lldb-command:v direct_tag_128_b
|
||||
// lldb-check:(msvc_pretty_enums::DirectTag128) direct_tag_128_b = { value = { 0 = 137 } $discr$ = 1 }
|
||||
//@ lldb-command:v direct_tag_128_b
|
||||
//@ lldb-check:(msvc_pretty_enums::DirectTag128) direct_tag_128_b = { value = { 0 = 137 } $discr$ = 1 }
|
||||
|
||||
// &u32 is incorrectly formatted and LLDB thinks it's a char* so skipping niche_w_fields_1_some
|
||||
|
||||
// lldb-command:v niche_w_fields_1_none
|
||||
// lldb-check:(msvc_pretty_enums::NicheLayoutWithFields1) niche_w_fields_1_none = { value = { 0 = 99 } $discr$ = 1 }
|
||||
//@ lldb-command:v niche_w_fields_1_none
|
||||
//@ lldb-check:(msvc_pretty_enums::NicheLayoutWithFields1) niche_w_fields_1_none = { value = { 0 = 99 } $discr$ = 1 }
|
||||
|
||||
// lldb-command:v niche_w_fields_2_some
|
||||
// lldb-check:(msvc_pretty_enums::NicheLayoutWithFields2) niche_w_fields_2_some = { value = { 0 = 800 { __0 = { 0 = 800 } } 1 = 900 } $discr$ = 0 }
|
||||
//@ lldb-command:v niche_w_fields_2_some
|
||||
//@ lldb-check:(msvc_pretty_enums::NicheLayoutWithFields2) niche_w_fields_2_some = { value = { 0 = 800 { __0 = { 0 = 800 } } 1 = 900 } $discr$ = 0 }
|
||||
|
||||
// lldb-command:v niche_w_fields_3_some
|
||||
// lldb-check:(msvc_pretty_enums::NicheLayoutWithFields3) niche_w_fields_3_some = { value = { 0 = '\x89' 1 = true } }
|
||||
//@ lldb-command:v niche_w_fields_3_some
|
||||
//@ lldb-check:(msvc_pretty_enums::NicheLayoutWithFields3) niche_w_fields_3_some = { value = { 0 = '\x89' 1 = true } }
|
||||
|
||||
// lldb-command:v niche_w_fields_3_niche3
|
||||
// lldb-check:(msvc_pretty_enums::NicheLayoutWithFields3) niche_w_fields_3_niche3 = { value = { 0 = '"' } $discr$ = '\x04' }
|
||||
//@ lldb-command:v niche_w_fields_3_niche3
|
||||
//@ lldb-check:(msvc_pretty_enums::NicheLayoutWithFields3) niche_w_fields_3_niche3 = { value = { 0 = '"' } $discr$ = '\x04' }
|
||||
|
||||
// lldb-command:v arbitrary_discr1
|
||||
// lldb-check:(msvc_pretty_enums::ArbitraryDiscr) arbitrary_discr1 = { value = { 0 = 1234 } $discr$ = 1000 }
|
||||
//@ lldb-command:v arbitrary_discr1
|
||||
//@ lldb-check:(msvc_pretty_enums::ArbitraryDiscr) arbitrary_discr1 = { value = { 0 = 1234 } $discr$ = 1000 }
|
||||
|
||||
// lldb-command:v arbitrary_discr2
|
||||
// lldb-check:(msvc_pretty_enums::ArbitraryDiscr) arbitrary_discr2 = { value = { 0 = 5678 } $discr$ = 5000000 }
|
||||
//@ lldb-command:v arbitrary_discr2
|
||||
//@ lldb-check:(msvc_pretty_enums::ArbitraryDiscr) arbitrary_discr2 = { value = { 0 = 5678 } $discr$ = 5000000 }
|
||||
|
||||
// === CDB TESTS ==================================================================================
|
||||
|
||||
// cdb-command: g
|
||||
//
|
||||
// cdb-command: dx a
|
||||
// cdb-check:a : Some [Type: enum2$<core::option::Option<msvc_pretty_enums::CStyleEnum> >]
|
||||
// cdb-check: [+0x000] __0 : Low (0x2) [Type: msvc_pretty_enums::CStyleEnum]
|
||||
//
|
||||
// cdb-command: dx b
|
||||
// cdb-check:b : None [Type: enum2$<core::option::Option<msvc_pretty_enums::CStyleEnum> >]
|
||||
//
|
||||
// cdb-command: dx c
|
||||
// cdb-check:c : Tag1 [Type: enum2$<msvc_pretty_enums::NicheLayoutEnum>]
|
||||
//
|
||||
// cdb-command: dx d
|
||||
// cdb-check:d : Data [Type: enum2$<msvc_pretty_enums::NicheLayoutEnum>]
|
||||
// cdb-check: [+0x000] my_data : High (0x10) [Type: msvc_pretty_enums::CStyleEnum]
|
||||
//
|
||||
// cdb-command: dx e
|
||||
// cdb-check:e : Tag2 [Type: enum2$<msvc_pretty_enums::NicheLayoutEnum>]
|
||||
//
|
||||
// cdb-command: dx f
|
||||
// cdb-check:f : Some [Type: enum2$<core::option::Option<ref$<u32> > >]
|
||||
// cdb-check: [+0x000] __0 : 0x[...] : 0x1 [Type: unsigned int *]
|
||||
//
|
||||
// cdb-command: dx g
|
||||
// cdb-check:g : None [Type: enum2$<core::option::Option<ref$<u32> > >]
|
||||
//
|
||||
// cdb-command: dx h
|
||||
// cdb-check:h : Some [Type: enum2$<core::option::Option<u32> >]
|
||||
// cdb-check: [+0x004] __0 : 0xc [Type: unsigned int]
|
||||
//
|
||||
// cdb-command: dx i
|
||||
// cdb-check:i : None [Type: enum2$<core::option::Option<u32> >]
|
||||
//
|
||||
// cdb-command: dx j
|
||||
// cdb-check:j : High (0x10) [Type: msvc_pretty_enums::CStyleEnum]
|
||||
//
|
||||
// cdb-command: dx k
|
||||
// cdb-check:k : Some [Type: enum2$<core::option::Option<alloc::string::String> >]
|
||||
// cdb-check: [+0x000] __0 : "IAMA optional string!" [Type: alloc::string::String]
|
||||
//
|
||||
// cdb-command: dx l
|
||||
// cdb-check:l : Ok [Type: enum2$<core::result::Result<u32,enum2$<msvc_pretty_enums::Empty> > >]
|
||||
// cdb-check: [+0x000] __0 : 0x2a [Type: unsigned int]
|
||||
//
|
||||
// cdb-command: dx niche128_some
|
||||
// cdb-check: niche128_some : Some [Type: enum2$<core::option::Option<core::num::nonzero::NonZero<i128> > >]
|
||||
//@ cdb-command: g
|
||||
|
||||
//@ cdb-command: dx a
|
||||
//@ cdb-check:a : Some [Type: enum2$<core::option::Option<msvc_pretty_enums::CStyleEnum> >]
|
||||
//@ cdb-check: [+0x000] __0 : Low (0x2) [Type: msvc_pretty_enums::CStyleEnum]
|
||||
|
||||
//@ cdb-command: dx b
|
||||
//@ cdb-check:b : None [Type: enum2$<core::option::Option<msvc_pretty_enums::CStyleEnum> >]
|
||||
|
||||
//@ cdb-command: dx c
|
||||
//@ cdb-check:c : Tag1 [Type: enum2$<msvc_pretty_enums::NicheLayoutEnum>]
|
||||
|
||||
//@ cdb-command: dx d
|
||||
//@ cdb-check:d : Data [Type: enum2$<msvc_pretty_enums::NicheLayoutEnum>]
|
||||
//@ cdb-check: [+0x000] my_data : High (0x10) [Type: msvc_pretty_enums::CStyleEnum]
|
||||
|
||||
//@ cdb-command: dx e
|
||||
//@ cdb-check:e : Tag2 [Type: enum2$<msvc_pretty_enums::NicheLayoutEnum>]
|
||||
|
||||
//@ cdb-command: dx f
|
||||
//@ cdb-check:f : Some [Type: enum2$<core::option::Option<ref$<u32> > >]
|
||||
//@ cdb-check: [+0x000] __0 : 0x[...] : 0x1 [Type: unsigned int *]
|
||||
|
||||
//@ cdb-command: dx g
|
||||
//@ cdb-check:g : None [Type: enum2$<core::option::Option<ref$<u32> > >]
|
||||
|
||||
//@ cdb-command: dx h
|
||||
//@ cdb-check:h : Some [Type: enum2$<core::option::Option<u32> >]
|
||||
//@ cdb-check: [+0x004] __0 : 0xc [Type: unsigned int]
|
||||
|
||||
//@ cdb-command: dx i
|
||||
//@ cdb-check:i : None [Type: enum2$<core::option::Option<u32> >]
|
||||
|
||||
//@ cdb-command: dx j
|
||||
//@ cdb-check:j : High (0x10) [Type: msvc_pretty_enums::CStyleEnum]
|
||||
|
||||
//@ cdb-command: dx k
|
||||
//@ cdb-check:k : Some [Type: enum2$<core::option::Option<alloc::string::String> >]
|
||||
//@ cdb-check: [+0x000] __0 : "IAMA optional string!" [Type: alloc::string::String]
|
||||
|
||||
//@ cdb-command: dx l
|
||||
//@ cdb-check:l : Ok [Type: enum2$<core::result::Result<u32,enum2$<msvc_pretty_enums::Empty> > >]
|
||||
//@ cdb-check: [+0x000] __0 : 0x2a [Type: unsigned int]
|
||||
|
||||
//@ cdb-command: dx niche128_some
|
||||
//@ cdb-check: niche128_some : Some [Type: enum2$<core::option::Option<core::num::nonzero::NonZero<i128> > >]
|
||||
// Note: we can't actually read the value of the field because CDB cannot handle 128 bit integers.
|
||||
// cdb-check: [+0x000] __0 [...] [Type: core::num::nonzero::NonZero<i128>]
|
||||
//
|
||||
// cdb-command: dx niche128_none
|
||||
// cdb-check: niche128_none : None [Type: enum2$<core::option::Option<core::num::nonzero::NonZero<i128> > >]
|
||||
//
|
||||
// cdb-command: dx wrapping_niche128_untagged
|
||||
// cdb-check: wrapping_niche128_untagged : X [Type: enum2$<msvc_pretty_enums::Wrapping128Niche>]
|
||||
// cdb-check: [+0x[...]] __0 [Type: msvc_pretty_enums::Wrapping128]
|
||||
//
|
||||
// cdb-command: dx wrapping_niche128_none1
|
||||
// cdb-check: wrapping_niche128_none1 : Y [Type: enum2$<msvc_pretty_enums::Wrapping128Niche>]
|
||||
// cdb-check: [+0x[...]] __0 [Type: msvc_pretty_enums::Wrapping128]
|
||||
//
|
||||
// cdb-command: dx wrapping_niche128_none2
|
||||
// cdb-check: wrapping_niche128_none2 : Z [Type: enum2$<msvc_pretty_enums::Wrapping128Niche>]
|
||||
// cdb-check: [+0x[...]] __0 [Type: msvc_pretty_enums::Wrapping128]
|
||||
//
|
||||
// cdb-command: dx direct_tag_128_a,d
|
||||
// cdb-check: direct_tag_128_a,d : A [Type: enum2$<msvc_pretty_enums::DirectTag128>]
|
||||
// cdb-check: [+0x[...]] __0 : 42 [Type: unsigned int]
|
||||
//
|
||||
// cdb-command: dx direct_tag_128_b,d
|
||||
// cdb-check: direct_tag_128_b,d : B [Type: enum2$<msvc_pretty_enums::DirectTag128>]
|
||||
// cdb-check: [+0x[...]] __0 : 137 [Type: unsigned int]
|
||||
//
|
||||
// cdb-command: dx niche_w_fields_1_some,d
|
||||
// cdb-check: niche_w_fields_1_some,d : A [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields1>]
|
||||
// cdb-check: [+0x[...]] __0 : 0x[...] : 77 [Type: unsigned char *]
|
||||
// cdb-check: [+0x[...]] __1 : 7 [Type: unsigned int]
|
||||
//
|
||||
// cdb-command: dx niche_w_fields_1_none,d
|
||||
// cdb-check: niche_w_fields_1_none,d : B [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields1>]
|
||||
// cdb-check: [+0x[...]] __0 : 99 [Type: unsigned int]
|
||||
//
|
||||
// cdb-command: dx niche_w_fields_2_some,d
|
||||
// cdb-check: niche_w_fields_2_some,d : A [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields2>]
|
||||
// cdb-check: [+0x[...]] __0 : 800 [Type: core::num::nonzero::NonZero<u32>]
|
||||
// cdb-check: [+0x[...]] __1 : 900 [Type: unsigned __int64]
|
||||
//
|
||||
// cdb-command: dx niche_w_fields_2_none,d
|
||||
// cdb-check: niche_w_fields_2_none,d : B [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields2>]
|
||||
// cdb-check: [+0x[...]] __0 : 1000 [Type: unsigned __int64]
|
||||
//
|
||||
// cdb-command: dx niche_w_fields_3_some,d
|
||||
// cdb-check: niche_w_fields_3_some,d : A [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]
|
||||
// cdb-check: [+0x[...]] __0 : 137 [Type: unsigned char]
|
||||
// cdb-check: [+0x[...]] __1 : true [Type: bool]
|
||||
//
|
||||
// cdb-command: dx niche_w_fields_3_niche1,d
|
||||
// cdb-check: niche_w_fields_3_niche1,d : B [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]
|
||||
// cdb-check: [+0x[...]] __0 : 12 [Type: unsigned char]
|
||||
//
|
||||
// cdb-command: dx niche_w_fields_3_niche2,d
|
||||
// cdb-check: niche_w_fields_3_niche2,d : C [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]
|
||||
// cdb-check: [+0x[...]] __0 : false [Type: bool]
|
||||
//
|
||||
// cdb-command: dx niche_w_fields_3_niche3,d
|
||||
// cdb-check: niche_w_fields_3_niche3,d : D [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]
|
||||
// cdb-check: [+0x[...]] __0 : 34 [Type: unsigned char]
|
||||
//
|
||||
// cdb-command: dx niche_w_fields_3_niche4,d
|
||||
// cdb-check: niche_w_fields_3_niche4,d : E [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]
|
||||
// cdb-check: [+0x[...]] __0 : 56 [Type: unsigned char]
|
||||
//
|
||||
// cdb-command: dx niche_w_fields_3_niche5,d
|
||||
// cdb-check: niche_w_fields_3_niche5,d : F [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]
|
||||
//
|
||||
// cdb-command: dx -r3 niche_w_fields_std_result_ok,d
|
||||
// cdb-check: niche_w_fields_std_result_ok,d : Ok [Type: enum2$<core::result::Result<alloc::boxed::Box<slice2$<u8>,alloc::alloc::Global>,u64> >]
|
||||
// cdb-check: [+0x[...]] __0 [Type: alloc::boxed::Box<slice2$<u8>,alloc::alloc::Global>]
|
||||
// cdb-check: [+0x[...]] data_ptr : [...]
|
||||
// cdb-check: [+0x[...]] length : 3 [...]
|
||||
//
|
||||
// cdb-command: dx -r3 niche_w_fields_std_result_err,d
|
||||
// cdb-check: niche_w_fields_std_result_err,d : Err [Type: enum2$<core::result::Result<alloc::boxed::Box<slice2$<u8>,alloc::alloc::Global>,u64> >]
|
||||
// cdb-check: [+0x[...]] __0 : 789 [Type: unsigned __int64]
|
||||
//
|
||||
// cdb-command: dx -r2 arbitrary_discr1,d
|
||||
// cdb-check: arbitrary_discr1,d : Abc [Type: enum2$<msvc_pretty_enums::ArbitraryDiscr>]
|
||||
// cdb-check: [+0x[...]] __0 : 1234 [Type: unsigned int]
|
||||
//
|
||||
// cdb-command: dx -r2 arbitrary_discr2,d
|
||||
// cdb-check: arbitrary_discr2,d : Def [Type: enum2$<msvc_pretty_enums::ArbitraryDiscr>]
|
||||
// cdb-check: [+0x[...]] __0 : 5678 [Type: unsigned int]
|
||||
//
|
||||
// cdb-command: dx c_style_u128_a
|
||||
// cdb-check: c_style_u128_a : A [Type: enum2$<msvc_pretty_enums::CStyleU128>]
|
||||
//
|
||||
// cdb-command: dx c_style_u128_b
|
||||
// cdb-check: c_style_u128_b : B [Type: enum2$<msvc_pretty_enums::CStyleU128>]
|
||||
//
|
||||
// cdb-command: dx c_style_u128_c
|
||||
// cdb-check: c_style_u128_c : C [Type: enum2$<msvc_pretty_enums::CStyleU128>]
|
||||
//
|
||||
// cdb-command: dx c_style_u128_d
|
||||
// cdb-check: c_style_u128_d : D [Type: enum2$<msvc_pretty_enums::CStyleU128>]
|
||||
//
|
||||
// cdb-command: dx c_style_i128_a
|
||||
// cdb-check: c_style_i128_a : A [Type: enum2$<msvc_pretty_enums::CStyleI128>]
|
||||
//
|
||||
// cdb-command: dx c_style_i128_b
|
||||
// cdb-check: c_style_i128_b : B [Type: enum2$<msvc_pretty_enums::CStyleI128>]
|
||||
//
|
||||
// cdb-command: dx c_style_i128_c
|
||||
// cdb-check: c_style_i128_c : C [Type: enum2$<msvc_pretty_enums::CStyleI128>]
|
||||
//
|
||||
// cdb-command: dx c_style_i128_d
|
||||
// cdb-check: c_style_i128_d : D [Type: enum2$<msvc_pretty_enums::CStyleI128>]
|
||||
//@ cdb-check: [+0x000] __0 [...] [Type: core::num::nonzero::NonZero<i128>]
|
||||
|
||||
//@ cdb-command: dx niche128_none
|
||||
//@ cdb-check: niche128_none : None [Type: enum2$<core::option::Option<core::num::nonzero::NonZero<i128> > >]
|
||||
|
||||
//@ cdb-command: dx wrapping_niche128_untagged
|
||||
//@ cdb-check: wrapping_niche128_untagged : X [Type: enum2$<msvc_pretty_enums::Wrapping128Niche>]
|
||||
//@ cdb-check: [+0x[...]] __0 [Type: msvc_pretty_enums::Wrapping128]
|
||||
|
||||
//@ cdb-command: dx wrapping_niche128_none1
|
||||
//@ cdb-check: wrapping_niche128_none1 : Y [Type: enum2$<msvc_pretty_enums::Wrapping128Niche>]
|
||||
//@ cdb-check: [+0x[...]] __0 [Type: msvc_pretty_enums::Wrapping128]
|
||||
|
||||
//@ cdb-command: dx wrapping_niche128_none2
|
||||
//@ cdb-check: wrapping_niche128_none2 : Z [Type: enum2$<msvc_pretty_enums::Wrapping128Niche>]
|
||||
//@ cdb-check: [+0x[...]] __0 [Type: msvc_pretty_enums::Wrapping128]
|
||||
|
||||
//@ cdb-command: dx direct_tag_128_a,d
|
||||
//@ cdb-check: direct_tag_128_a,d : A [Type: enum2$<msvc_pretty_enums::DirectTag128>]
|
||||
//@ cdb-check: [+0x[...]] __0 : 42 [Type: unsigned int]
|
||||
|
||||
//@ cdb-command: dx direct_tag_128_b,d
|
||||
//@ cdb-check: direct_tag_128_b,d : B [Type: enum2$<msvc_pretty_enums::DirectTag128>]
|
||||
//@ cdb-check: [+0x[...]] __0 : 137 [Type: unsigned int]
|
||||
|
||||
//@ cdb-command: dx niche_w_fields_1_some,d
|
||||
//@ cdb-check: niche_w_fields_1_some,d : A [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields1>]
|
||||
//@ cdb-check: [+0x[...]] __0 : 0x[...] : 77 [Type: unsigned char *]
|
||||
//@ cdb-check: [+0x[...]] __1 : 7 [Type: unsigned int]
|
||||
|
||||
//@ cdb-command: dx niche_w_fields_1_none,d
|
||||
//@ cdb-check: niche_w_fields_1_none,d : B [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields1>]
|
||||
//@ cdb-check: [+0x[...]] __0 : 99 [Type: unsigned int]
|
||||
|
||||
//@ cdb-command: dx niche_w_fields_2_some,d
|
||||
//@ cdb-check: niche_w_fields_2_some,d : A [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields2>]
|
||||
//@ cdb-check: [+0x[...]] __0 : 800 [Type: core::num::nonzero::NonZero<u32>]
|
||||
//@ cdb-check: [+0x[...]] __1 : 900 [Type: unsigned __int64]
|
||||
|
||||
//@ cdb-command: dx niche_w_fields_2_none,d
|
||||
//@ cdb-check: niche_w_fields_2_none,d : B [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields2>]
|
||||
//@ cdb-check: [+0x[...]] __0 : 1000 [Type: unsigned __int64]
|
||||
|
||||
//@ cdb-command: dx niche_w_fields_3_some,d
|
||||
//@ cdb-check: niche_w_fields_3_some,d : A [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]
|
||||
//@ cdb-check: [+0x[...]] __0 : 137 [Type: unsigned char]
|
||||
//@ cdb-check: [+0x[...]] __1 : true [Type: bool]
|
||||
|
||||
//@ cdb-command: dx niche_w_fields_3_niche1,d
|
||||
//@ cdb-check: niche_w_fields_3_niche1,d : B [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]
|
||||
//@ cdb-check: [+0x[...]] __0 : 12 [Type: unsigned char]
|
||||
|
||||
//@ cdb-command: dx niche_w_fields_3_niche2,d
|
||||
//@ cdb-check: niche_w_fields_3_niche2,d : C [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]
|
||||
//@ cdb-check: [+0x[...]] __0 : false [Type: bool]
|
||||
|
||||
//@ cdb-command: dx niche_w_fields_3_niche3,d
|
||||
//@ cdb-check: niche_w_fields_3_niche3,d : D [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]
|
||||
//@ cdb-check: [+0x[...]] __0 : 34 [Type: unsigned char]
|
||||
|
||||
//@ cdb-command: dx niche_w_fields_3_niche4,d
|
||||
//@ cdb-check: niche_w_fields_3_niche4,d : E [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]
|
||||
//@ cdb-check: [+0x[...]] __0 : 56 [Type: unsigned char]
|
||||
|
||||
//@ cdb-command: dx niche_w_fields_3_niche5,d
|
||||
//@ cdb-check: niche_w_fields_3_niche5,d : F [Type: enum2$<msvc_pretty_enums::NicheLayoutWithFields3>]
|
||||
|
||||
//@ cdb-command: dx -r3 niche_w_fields_std_result_ok,d
|
||||
//@ cdb-check: niche_w_fields_std_result_ok,d : Ok [Type: enum2$<core::result::Result<alloc::boxed::Box<slice2$<u8>,alloc::alloc::Global>,u64> >]
|
||||
//@ cdb-check: [+0x[...]] __0 [Type: alloc::boxed::Box<slice2$<u8>,alloc::alloc::Global>]
|
||||
//@ cdb-check: [+0x[...]] data_ptr : [...]
|
||||
//@ cdb-check: [+0x[...]] length : 3 [...]
|
||||
|
||||
//@ cdb-command: dx -r3 niche_w_fields_std_result_err,d
|
||||
//@ cdb-check: niche_w_fields_std_result_err,d : Err [Type: enum2$<core::result::Result<alloc::boxed::Box<slice2$<u8>,alloc::alloc::Global>,u64> >]
|
||||
//@ cdb-check: [+0x[...]] __0 : 789 [Type: unsigned __int64]
|
||||
|
||||
//@ cdb-command: dx -r2 arbitrary_discr1,d
|
||||
//@ cdb-check: arbitrary_discr1,d : Abc [Type: enum2$<msvc_pretty_enums::ArbitraryDiscr>]
|
||||
//@ cdb-check: [+0x[...]] __0 : 1234 [Type: unsigned int]
|
||||
|
||||
//@ cdb-command: dx -r2 arbitrary_discr2,d
|
||||
//@ cdb-check: arbitrary_discr2,d : Def [Type: enum2$<msvc_pretty_enums::ArbitraryDiscr>]
|
||||
//@ cdb-check: [+0x[...]] __0 : 5678 [Type: unsigned int]
|
||||
|
||||
//@ cdb-command: dx c_style_u128_a
|
||||
//@ cdb-check: c_style_u128_a : A [Type: enum2$<msvc_pretty_enums::CStyleU128>]
|
||||
|
||||
//@ cdb-command: dx c_style_u128_b
|
||||
//@ cdb-check: c_style_u128_b : B [Type: enum2$<msvc_pretty_enums::CStyleU128>]
|
||||
|
||||
//@ cdb-command: dx c_style_u128_c
|
||||
//@ cdb-check: c_style_u128_c : C [Type: enum2$<msvc_pretty_enums::CStyleU128>]
|
||||
|
||||
//@ cdb-command: dx c_style_u128_d
|
||||
//@ cdb-check: c_style_u128_d : D [Type: enum2$<msvc_pretty_enums::CStyleU128>]
|
||||
|
||||
//@ cdb-command: dx c_style_i128_a
|
||||
//@ cdb-check: c_style_i128_a : A [Type: enum2$<msvc_pretty_enums::CStyleI128>]
|
||||
|
||||
//@ cdb-command: dx c_style_i128_b
|
||||
//@ cdb-check: c_style_i128_b : B [Type: enum2$<msvc_pretty_enums::CStyleI128>]
|
||||
|
||||
//@ cdb-command: dx c_style_i128_c
|
||||
//@ cdb-check: c_style_i128_c : C [Type: enum2$<msvc_pretty_enums::CStyleI128>]
|
||||
|
||||
//@ cdb-command: dx c_style_i128_d
|
||||
//@ cdb-check: c_style_i128_d : D [Type: enum2$<msvc_pretty_enums::CStyleI128>]
|
||||
#![feature(rustc_attrs)]
|
||||
|
||||
use std::num::NonZero;
|
||||
|
|
|
|||
|
|
@ -1,57 +1,57 @@
|
|||
//@ only-cdb
|
||||
//@ compile-flags: -g
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx r1
|
||||
// cdb-check:r1 : (0xa..0xc) [Type: core::ops::range::Range<u32>]
|
||||
// cdb-command: dx r2
|
||||
// cdb-check:r2 : (0x14..0x1e) [Type: core::ops::range::Range<u64>]
|
||||
//@ cdb-command: dx r1
|
||||
//@ cdb-check:r1 : (0xa..0xc) [Type: core::ops::range::Range<u32>]
|
||||
//@ cdb-command: dx r2
|
||||
//@ cdb-check:r2 : (0x14..0x1e) [Type: core::ops::range::Range<u64>]
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx r1
|
||||
// cdb-check:r1 : (0x9..0x64) [Type: core::ops::range::Range<u32>]
|
||||
// cdb-command: dx r2
|
||||
// cdb-check:r2 : (0xc..0x5a) [Type: core::ops::range::Range<u64>]
|
||||
//@ cdb-command: dx r1
|
||||
//@ cdb-check:r1 : (0x9..0x64) [Type: core::ops::range::Range<u32>]
|
||||
//@ cdb-command: dx r2
|
||||
//@ cdb-check:r2 : (0xc..0x5a) [Type: core::ops::range::Range<u64>]
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx o1
|
||||
// cdb-check:o1 : Some [Type: enum2$<core::option::Option<u32> >]
|
||||
// cdb-check: [+0x004] __0 : 0x4d2 [Type: [...]]
|
||||
// cdb-command: dx o2
|
||||
// cdb-check:o2 : Some [Type: enum2$<core::option::Option<u64> >]
|
||||
// cdb-check: [+0x008] __0 : 0x162e [Type: unsigned __int64]
|
||||
//@ cdb-command: dx o1
|
||||
//@ cdb-check:o1 : Some [Type: enum2$<core::option::Option<u32> >]
|
||||
//@ cdb-check: [+0x004] __0 : 0x4d2 [Type: [...]]
|
||||
//@ cdb-command: dx o2
|
||||
//@ cdb-check:o2 : Some [Type: enum2$<core::option::Option<u64> >]
|
||||
//@ cdb-check: [+0x008] __0 : 0x162e [Type: unsigned __int64]
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx t1
|
||||
// cdb-check:t1 : (0xa, 0x14) [Type: tuple$<u32,u32>]
|
||||
// cdb-check: [0] : 0xa [Type: unsigned int]
|
||||
// cdb-check: [1] : 0x14 [Type: unsigned int]
|
||||
// cdb-command: dx t2
|
||||
// cdb-check:t2 : (0x1e, 0x28) [Type: tuple$<u64,u64>]
|
||||
// cdb-check: [0] : 0x1e [Type: unsigned __int64]
|
||||
// cdb-check: [1] : 0x28 [Type: unsigned __int64]
|
||||
//@ cdb-command: dx t1
|
||||
//@ cdb-check:t1 : (0xa, 0x14) [Type: tuple$<u32,u32>]
|
||||
//@ cdb-check: [0] : 0xa [Type: unsigned int]
|
||||
//@ cdb-check: [1] : 0x14 [Type: unsigned int]
|
||||
//@ cdb-command: dx t2
|
||||
//@ cdb-check:t2 : (0x1e, 0x28) [Type: tuple$<u64,u64>]
|
||||
//@ cdb-check: [0] : 0x1e [Type: unsigned __int64]
|
||||
//@ cdb-check: [1] : 0x28 [Type: unsigned __int64]
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx s
|
||||
// cdb-check:s : "this is a static str" [Type: ref$<str$>]
|
||||
// cdb-check: [len] : 0x14 [Type: unsigned [...]]
|
||||
// cdb-check: [chars]
|
||||
//@ cdb-command: dx s
|
||||
//@ cdb-check:s : "this is a static str" [Type: ref$<str$>]
|
||||
//@ cdb-check: [len] : 0x14 [Type: unsigned [...]]
|
||||
//@ cdb-check: [chars]
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx s
|
||||
// cdb-check:s : { len=0x5 } [Type: ref$<slice2$<u8> >]
|
||||
// cdb-check: [len] : 0x5 [Type: unsigned [...]]
|
||||
// cdb-check: [0] : 0x1 [Type: unsigned char]
|
||||
// cdb-check: [1] : 0x2 [Type: unsigned char]
|
||||
// cdb-check: [2] : 0x3 [Type: unsigned char]
|
||||
// cdb-check: [3] : 0x4 [Type: unsigned char]
|
||||
// cdb-check: [4] : 0x5 [Type: unsigned char]
|
||||
//@ cdb-command: dx s
|
||||
//@ cdb-check:s : { len=0x5 } [Type: ref$<slice2$<u8> >]
|
||||
//@ cdb-check: [len] : 0x5 [Type: unsigned [...]]
|
||||
//@ cdb-check: [0] : 0x1 [Type: unsigned char]
|
||||
//@ cdb-check: [1] : 0x2 [Type: unsigned char]
|
||||
//@ cdb-check: [2] : 0x3 [Type: unsigned char]
|
||||
//@ cdb-check: [3] : 0x4 [Type: unsigned char]
|
||||
//@ cdb-check: [4] : 0x5 [Type: unsigned char]
|
||||
|
||||
use std::ops::Range;
|
||||
|
||||
|
|
|
|||
|
|
@ -7,28 +7,28 @@
|
|||
|
||||
// === GDB TESTS ===============================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print xxx
|
||||
// gdb-check:$1 = 12345
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print xxx
|
||||
//@ gdb-check:$1 = 12345
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print yyy
|
||||
// gdb-check:$2 = 67890
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print yyy
|
||||
//@ gdb-check:$2 = 67890
|
||||
//@ gdb-command:continue
|
||||
|
||||
|
||||
// === LLDB TESTS ==============================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v xxx
|
||||
// lldb-check:[...] 12345
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v xxx
|
||||
//@ lldb-check:[...] 12345
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v yyy
|
||||
// lldb-check:[...] 67890
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v yyy
|
||||
//@ lldb-check:[...] 67890
|
||||
//@ lldb-command:continue
|
||||
|
||||
|
||||
mod a {
|
||||
|
|
|
|||
|
|
@ -3,17 +3,17 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command: run
|
||||
// gdb-check:[...]#break[...]
|
||||
// gdb-command: up
|
||||
// gdb-check:[...]zzz[...]
|
||||
//@ gdb-command: run
|
||||
//@ gdb-check:[...]#break[...]
|
||||
//@ gdb-command: up
|
||||
//@ gdb-check:[...]zzz[...]
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
// lldb-check:[...]#break[...]
|
||||
// lldb-command: up
|
||||
// lldb-check:[...]zzz[...]
|
||||
//@ lldb-command:run
|
||||
//@ lldb-check:[...]#break[...]
|
||||
//@ lldb-command: up
|
||||
//@ lldb-check:[...]zzz[...]
|
||||
|
||||
struct Foo;
|
||||
|
||||
|
|
|
|||
|
|
@ -4,34 +4,34 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print abc
|
||||
// gdb-check:$1 = 10101
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print abc
|
||||
//@ gdb-check:$1 = 10101
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print abc
|
||||
// gdb-check:$2 = 20202
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print abc
|
||||
//@ gdb-check:$2 = 20202
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print abc
|
||||
// gdb-check:$3 = 30303
|
||||
//@ gdb-command:print abc
|
||||
//@ gdb-check:$3 = 30303
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v abc
|
||||
// lldb-check:[...] 10101
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v abc
|
||||
//@ lldb-check:[...] 10101
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v abc
|
||||
// lldb-check:[...] 20202
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v abc
|
||||
//@ lldb-check:[...] 20202
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v abc
|
||||
// lldb-check:[...] 30303
|
||||
//@ lldb-command:v abc
|
||||
//@ lldb-check:[...] 30303
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -4,34 +4,34 @@
|
|||
|
||||
// === GDB TESTS ===================================================================================
|
||||
|
||||
// gdb-command:run
|
||||
//@ gdb-command:run
|
||||
|
||||
// gdb-command:print a
|
||||
// gdb-check:$1 = 10101
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print a
|
||||
//@ gdb-check:$1 = 10101
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print b
|
||||
// gdb-check:$2 = 20202
|
||||
// gdb-command:continue
|
||||
//@ gdb-command:print b
|
||||
//@ gdb-check:$2 = 20202
|
||||
//@ gdb-command:continue
|
||||
|
||||
// gdb-command:print c
|
||||
// gdb-check:$3 = 30303
|
||||
//@ gdb-command:print c
|
||||
//@ gdb-check:$3 = 30303
|
||||
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command:run
|
||||
//@ lldb-command:run
|
||||
|
||||
// lldb-command:v a
|
||||
// lldb-check:[...] 10101
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v a
|
||||
//@ lldb-check:[...] 10101
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v b
|
||||
// lldb-check:[...] 20202
|
||||
// lldb-command:continue
|
||||
//@ lldb-command:v b
|
||||
//@ lldb-check:[...] 20202
|
||||
//@ lldb-command:continue
|
||||
|
||||
// lldb-command:v c
|
||||
// lldb-check:[...] 30303
|
||||
//@ lldb-command:v c
|
||||
//@ lldb-check:[...] 30303
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
|
|
@ -6,67 +6,67 @@
|
|||
|
||||
// === CDB TESTS ==================================================================================
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command:dx static_c,d
|
||||
// cdb-check:static_c,d : 10 [Type: core::cell::Cell<i32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::cell::Cell<i32>]
|
||||
//@ cdb-command:dx static_c,d
|
||||
//@ cdb-check:static_c,d : 10 [Type: core::cell::Cell<i32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::cell::Cell<i32>]
|
||||
|
||||
// cdb-command: dx static_c.value,d
|
||||
// cdb-check:static_c.value,d : 10 [Type: core::cell::UnsafeCell<i32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::cell::UnsafeCell<i32>]
|
||||
//@ cdb-command: dx static_c.value,d
|
||||
//@ cdb-check:static_c.value,d : 10 [Type: core::cell::UnsafeCell<i32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::cell::UnsafeCell<i32>]
|
||||
|
||||
// cdb-command: dx dynamic_c,d
|
||||
// cdb-check:dynamic_c,d : 15 [Type: core::cell::RefCell<i32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::cell::RefCell<i32>]
|
||||
// cdb-check: [Borrow state] : Unborrowed
|
||||
//@ cdb-command: dx dynamic_c,d
|
||||
//@ cdb-check:dynamic_c,d : 15 [Type: core::cell::RefCell<i32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::cell::RefCell<i32>]
|
||||
//@ cdb-check: [Borrow state] : Unborrowed
|
||||
|
||||
// cdb-command: dx dynamic_c.value,d
|
||||
// cdb-check:dynamic_c.value,d : 15 [Type: core::cell::UnsafeCell<i32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::cell::UnsafeCell<i32>]
|
||||
//@ cdb-command: dx dynamic_c.value,d
|
||||
//@ cdb-check:dynamic_c.value,d : 15 [Type: core::cell::UnsafeCell<i32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::cell::UnsafeCell<i32>]
|
||||
|
||||
// cdb-command: dx b,d
|
||||
// cdb-check:b,d : 42 [Type: core::cell::RefMut<i32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::cell::RefMut<i32>]
|
||||
// cdb-check: 42 [Type: int]
|
||||
//@ cdb-command: dx b,d
|
||||
//@ cdb-check:b,d : 42 [Type: core::cell::RefMut<i32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::cell::RefMut<i32>]
|
||||
//@ cdb-check: 42 [Type: int]
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx dynamic_c,d
|
||||
// cdb-check:dynamic_c,d : 15 [Type: core::cell::RefCell<i32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::cell::RefCell<i32>]
|
||||
// cdb-check: [Borrow state] : Immutably borrowed
|
||||
//@ cdb-command: dx dynamic_c,d
|
||||
//@ cdb-check:dynamic_c,d : 15 [Type: core::cell::RefCell<i32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::cell::RefCell<i32>]
|
||||
//@ cdb-check: [Borrow state] : Immutably borrowed
|
||||
|
||||
// cdb-command: dx r_borrow,d
|
||||
// cdb-check:r_borrow,d : 15 [Type: core::cell::Ref<i32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::cell::Ref<i32>]
|
||||
// cdb-check: 15 [Type: int]
|
||||
//@ cdb-command: dx r_borrow,d
|
||||
//@ cdb-check:r_borrow,d : 15 [Type: core::cell::Ref<i32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::cell::Ref<i32>]
|
||||
//@ cdb-check: 15 [Type: int]
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx dynamic_c,d
|
||||
// cdb-check:dynamic_c,d : 15 [Type: core::cell::RefCell<i32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::cell::RefCell<i32>]
|
||||
// cdb-check: [Borrow state] : Unborrowed
|
||||
//@ cdb-command: dx dynamic_c,d
|
||||
//@ cdb-check:dynamic_c,d : 15 [Type: core::cell::RefCell<i32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::cell::RefCell<i32>]
|
||||
//@ cdb-check: [Borrow state] : Unborrowed
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx dynamic_c,d
|
||||
// cdb-check:dynamic_c,d : 15 [Type: core::cell::RefCell<i32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::cell::RefCell<i32>]
|
||||
// cdb-check: [Borrow state] : Mutably borrowed
|
||||
//@ cdb-command: dx dynamic_c,d
|
||||
//@ cdb-check:dynamic_c,d : 15 [Type: core::cell::RefCell<i32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::cell::RefCell<i32>]
|
||||
//@ cdb-check: [Borrow state] : Mutably borrowed
|
||||
|
||||
// cdb-command: dx r_borrow_mut,d
|
||||
// cdb-check:r_borrow_mut,d : 15 [Type: core::cell::RefMut<i32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::cell::RefMut<i32>]
|
||||
// cdb-check: 15 [Type: int]
|
||||
//@ cdb-command: dx r_borrow_mut,d
|
||||
//@ cdb-check:r_borrow_mut,d : 15 [Type: core::cell::RefMut<i32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::cell::RefMut<i32>]
|
||||
//@ cdb-check: 15 [Type: int]
|
||||
|
||||
// cdb-command: g
|
||||
//@ cdb-command: g
|
||||
|
||||
// cdb-command: dx dynamic_c,d
|
||||
// cdb-check:dynamic_c,d : 15 [Type: core::cell::RefCell<i32>]
|
||||
// cdb-check: [<Raw View>] [Type: core::cell::RefCell<i32>]
|
||||
// cdb-check: [Borrow state] : Unborrowed
|
||||
//@ cdb-command: dx dynamic_c,d
|
||||
//@ cdb-check:dynamic_c,d : 15 [Type: core::cell::RefCell<i32>]
|
||||
//@ cdb-check: [<Raw View>] [Type: core::cell::RefCell<i32>]
|
||||
//@ cdb-check: [Borrow state] : Unborrowed
|
||||
|
||||
#![allow(unused_variables)]
|
||||
|
||||
|
|
|
|||
Some files were not shown because too many files have changed in this diff Show more
Loading…
Add table
Add a link
Reference in a new issue