Skip to content

Commit

Permalink
auto merge of #6255 : brson/rust/nobreakpoint, r=graydon
Browse files Browse the repository at this point in the history
These breakpoints make it difficult to debug coretest
  • Loading branch information
bors committed May 7, 2013
2 parents bdb52e5 + 24de5bb commit 4023f54
Showing 1 changed file with 1 addition and 13 deletions.
14 changes: 1 addition & 13 deletions src/libcore/stackwalk.rs
Original file line number Diff line number Diff line change
Expand Up @@ -64,32 +64,20 @@ fn test_simple_deep() {
if i == 0 { return }

for walk_stack |_frame| {
breakpoint();
// Would be nice to test something here...
}
run(i - 1);
}

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" {
Expand Down

0 comments on commit 4023f54

Please sign in to comment.