MCPcopy Create free account
hub / github.com/bytecodealliance/wasmtime / dwarf_fission

Function dwarf_fission

tests/all/native_debug/lldb.rs:422–448  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

420#[test]
421#[ignore]
422pub fn dwarf_fission() -> Result<()> {
423 let output = lldb_with_script(
424 &["-Ccache=n", "-Ddebug-info", "-Oopt-level=0", DWARF_FISSION],
425 r#"breakpoint set --file dwarf_fission.c --line 8
426r
427fr v
428s
429fr v
430c"#,
431 )?;
432
433 check_lldb_output(
434 &output,
435 r#"
436check: Breakpoint 1: no locations (pending)
437check: Unable to resolve breakpoint to any actual locations.
438check: 1 location added to breakpoint 1
439check: stop reason = breakpoint 1.1
440check: i = 1
441check: stop reason = step in
442check: i = 2
443check: resuming
444check: exited with status = 0
445"#,
446 )?;
447 Ok(())
448}
449
450fn test_dwarf_simple(wasm: &str, extra_args: &[&str]) -> Result<()> {
451 println!("testing {wasm:?}");

Callers

nothing calls this directly

Calls 3

lldb_with_scriptFunction · 0.85
check_lldb_outputFunction · 0.85
OkFunction · 0.85

Tested by

no test coverage detected