From 24de5bb649434fc57e1c06bbbe74bbc4662526ce Mon Sep 17 00:00:00 2001 From: Brian Anderson Date: Sun, 5 May 2013 20:13:32 -0700 Subject: [PATCH] core: Remove a call to `breakpoint` from a test These breakpoints make it difficult to debug coretest --- src/libcore/stackwalk.rs | 14 +------------- 1 file changed, 1 insertion(+), 13 deletions(-) diff --git a/src/libcore/stackwalk.rs b/src/libcore/stackwalk.rs index 987d4064ab9f6..24237694502a8 100644 --- a/src/libcore/stackwalk.rs +++ b/src/libcore/stackwalk.rs @@ -64,7 +64,7 @@ fn test_simple_deep() { if i == 0 { return } for walk_stack |_frame| { - breakpoint(); + // Would be nice to test something here... } run(i - 1); } @@ -72,24 +72,12 @@ fn test_simple_deep() { run(10); } -fn breakpoint() { - unsafe { - rustrt::rust_dbg_breakpoint() - } -} - fn frame_address(f: &fn(x: *u8)) { unsafe { rusti::frame_address(f) } } -pub mod rustrt { - pub extern { - pub unsafe fn rust_dbg_breakpoint(); - } -} - pub mod rusti { #[abi = "rust-intrinsic"] pub extern "rust-intrinsic" {