Skip to content
Closed
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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