Fixed remaining issues to pass debug-test/* tests.
Made debugger scripts source line insensitive.
This commit is contained in:
parent
62e86e044d
commit
65dd6218af
9 changed files with 73 additions and 28 deletions
|
|
@ -8,7 +8,7 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// xfail-test
|
||||
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
|
||||
|
||||
// Caveats - gdb prints any 8-bit value (meaning rust i8 and u8 values)
|
||||
// as its numerical value along with its associated ASCII char, there
|
||||
|
|
@ -17,8 +17,9 @@
|
|||
// its numerical value.
|
||||
|
||||
// compile-flags:-Z extra-debug-info
|
||||
// debugger:break 67
|
||||
// debugger:break _zzz
|
||||
// debugger:run
|
||||
// debugger:finish
|
||||
// debugger:print b
|
||||
// check:$1 = false
|
||||
// debugger:print i
|
||||
|
|
@ -66,5 +67,7 @@ fn main() {
|
|||
let f: float = 1.5;
|
||||
let f32: f32 = 2.5;
|
||||
let f64: f64 = 3.5;
|
||||
let _z = ();
|
||||
_zzz();
|
||||
}
|
||||
|
||||
fn _zzz() {()}
|
||||
|
|
|
|||
|
|
@ -8,12 +8,13 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// xfail-test
|
||||
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
|
||||
|
||||
// compile-flags:-Z extra-debug-info
|
||||
// debugger:set print pretty off
|
||||
// debugger:break 29
|
||||
// debugger:break _zzz
|
||||
// debugger:run
|
||||
// debugger:finish
|
||||
// debugger:print a->boxed
|
||||
// check:$1 = 1
|
||||
// debugger:print b->boxed
|
||||
|
|
@ -28,5 +29,7 @@ fn main() {
|
|||
let b = ~(2, 3.5);
|
||||
let c = @4;
|
||||
let d = @false;
|
||||
let _z = 0;
|
||||
_zzz();
|
||||
}
|
||||
|
||||
fn _zzz() {()}
|
||||
|
|
@ -8,12 +8,13 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// xfail-test
|
||||
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
|
||||
|
||||
// compile-flags:-Z extra-debug-info
|
||||
// debugger:set print pretty off
|
||||
// debugger:break 29
|
||||
// debugger:break _zzz
|
||||
// debugger:run
|
||||
// debugger:finish
|
||||
// debugger:print pair
|
||||
// check:$1 = {x = 1, y = 2}
|
||||
// debugger:print pair.x
|
||||
|
|
@ -28,5 +29,7 @@ struct Pair {
|
|||
|
||||
fn main() {
|
||||
let pair = Pair { x: 1, y: 2 };
|
||||
let _z = ();
|
||||
_zzz();
|
||||
}
|
||||
|
||||
fn _zzz() {()}
|
||||
|
|
@ -8,16 +8,19 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// xfail-test
|
||||
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
|
||||
|
||||
// compile-flags:-Z extra-debug-info
|
||||
// debugger:set print pretty off
|
||||
// debugger:break 20
|
||||
// debugger:break _zzz
|
||||
// debugger:run
|
||||
// debugger:finish
|
||||
// debugger:print t
|
||||
// check:$1 = {4, 5.5, true}
|
||||
|
||||
fn main() {
|
||||
let t = (4, 5.5, true);
|
||||
let _z = ();
|
||||
_zzz();
|
||||
}
|
||||
|
||||
fn _zzz() {()}
|
||||
|
|
@ -8,12 +8,13 @@
|
|||
// option. This file may not be copied, modified, or distributed
|
||||
// except according to those terms.
|
||||
|
||||
// xfail-test
|
||||
// xfail-win32 Broken because of LLVM bug: http://llvm.org/bugs/show_bug.cgi?id=16249
|
||||
|
||||
// compile-flags:-Z extra-debug-info
|
||||
// debugger:set print pretty off
|
||||
// debugger:break 29
|
||||
// debugger:break _zzz
|
||||
// debugger:run
|
||||
// debugger:finish
|
||||
// debugger:print a
|
||||
// check:$1 = {1, 2, 3}
|
||||
// debugger:print b.vec[0]
|
||||
|
|
@ -28,5 +29,7 @@ fn main() {
|
|||
let b = &[4, 5, 6];
|
||||
let c = @[7, 8, 9];
|
||||
let d = ~[10, 11, 12];
|
||||
let _z = 0;
|
||||
_zzz();
|
||||
}
|
||||
|
||||
fn _zzz() {()}
|
||||
Loading…
Add table
Add a link
Reference in a new issue