Fix remaining LLDB commands.
This commit is contained in:
parent
96431e4b82
commit
3ee1219088
@ -17,12 +17,12 @@
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command: run
|
||||
// lldb-command:run
|
||||
|
||||
// lldb-command: fr v empty_string
|
||||
// lldb-command:fr v empty_string
|
||||
// lldb-check:[...] empty_string = "" { vec = size=0 }
|
||||
|
||||
// lldb-command: fr v empty_str
|
||||
// lldb-command:fr v empty_str
|
||||
// lldb-check:[...] empty_str = "" { data_ptr = [...] length = 0 }
|
||||
|
||||
fn main() {
|
||||
|
@ -11,9 +11,9 @@
|
||||
// === LLDB TESTS ==================================================================================
|
||||
// lldb-command:run
|
||||
// lldb-command:v TEST
|
||||
// lldb-check: (unsigned long) TEST = 3735928559
|
||||
// lldb-check:(unsigned long) TEST = 3735928559
|
||||
// lldb-command:v OTHER_TEST
|
||||
// lldb-check: (unsigned long) no_mangle_info::namespace::OTHER_TEST::[...] = 42
|
||||
// lldb-check:(unsigned long) no_mangle_info::namespace::OTHER_TEST::[...] = 42
|
||||
|
||||
// === CDB TESTS ==================================================================================
|
||||
// cdb-command: g
|
||||
|
@ -18,19 +18,19 @@
|
||||
// gdb-command: print mut_str_slice
|
||||
// gdb-check: $4 = "mutable string slice"
|
||||
|
||||
// lldb-command: run
|
||||
// lldb-command:run
|
||||
|
||||
// lldb-command: print slice
|
||||
// lldb-check: (&[i32]) size=3 { [0] = 0 [1] = 1 [2] = 2 }
|
||||
// lldb-command:v slice
|
||||
// lldb-check:(&[i32]) slice = size=3 { [0] = 0 [1] = 1 [2] = 2 }
|
||||
|
||||
// lldb-command: print mut_slice
|
||||
// lldb-check: (&mut [i32]) size=4 { [0] = 2 [1] = 3 [2] = 5 [3] = 7 }
|
||||
// lldb-command:v mut_slice
|
||||
// lldb-check:(&mut [i32]) mut_slice = size=4 { [0] = 2 [1] = 3 [2] = 5 [3] = 7 }
|
||||
|
||||
// lldb-command: print str_slice
|
||||
// lldb-check: (&str) "string slice" { data_ptr = [...] length = 12 }
|
||||
// lldb-command:v str_slice
|
||||
// lldb-check:(&str) str_slice = "string slice" { data_ptr = [...] length = 12 }
|
||||
|
||||
// lldb-command: print mut_str_slice
|
||||
// lldb-check: (&mut str) "mutable string slice" { data_ptr = [...] length = 20 }
|
||||
// lldb-command:v mut_str_slice
|
||||
// lldb-check:(&mut str) mut_str_slice = "mutable string slice" { data_ptr = [...] length = 20 }
|
||||
|
||||
fn b() {}
|
||||
|
||||
|
@ -42,28 +42,28 @@
|
||||
|
||||
// === LLDB TESTS ==================================================================================
|
||||
|
||||
// lldb-command: run
|
||||
// lldb-command:run
|
||||
|
||||
// lldb-command: print slice
|
||||
// lldb-check:[...] &[0, 1, 2, 3]
|
||||
// lldb-command:v slice
|
||||
// lldb-check:[...] slice = &[0, 1, 2, 3]
|
||||
|
||||
// lldb-command: print vec
|
||||
// lldb-check:[...] vec![4, 5, 6, 7]
|
||||
// lldb-command:v vec
|
||||
// lldb-check:[...] vec = vec![4, 5, 6, 7]
|
||||
|
||||
// lldb-command: print str_slice
|
||||
// lldb-check:[...] "IAMA string slice!"
|
||||
// lldb-command:v str_slice
|
||||
// lldb-check:[...] str_slice = "IAMA string slice!"
|
||||
|
||||
// lldb-command: print string
|
||||
// lldb-check:[...] "IAMA string!"
|
||||
// lldb-command:v string
|
||||
// lldb-check:[...] string = "IAMA string!"
|
||||
|
||||
// lldb-command: print some
|
||||
// lldb-check:[...] Some(8)
|
||||
// lldb-command:v some
|
||||
// lldb-check:[...] some = Some(8)
|
||||
|
||||
// lldb-command: print none
|
||||
// lldb-check:[...] None
|
||||
// lldb-command:v none
|
||||
// lldb-check:[...] none = None
|
||||
|
||||
// lldb-command: print os_string
|
||||
// lldb-check:[...] "IAMA OS string 😃"[...]
|
||||
// lldb-command:v os_string
|
||||
// lldb-check:[...] os_string = "IAMA OS string 😃"[...]
|
||||
|
||||
// === CDB TESTS ==================================================================================
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user