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

Function dwarf_multiple_codegen_units

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

Source from the content-addressed store, hash-verified

516#[test]
517#[ignore]
518fn dwarf_multiple_codegen_units() -> Result<()> {
519 for wasm in [
520 DWARF_MULTIPLE_CODEGEN_UNITS,
521 DWARF_MULTIPLE_CODEGEN_UNITS_COMPONENT,
522 ] {
523 println!("testing {wasm:?}");
524 let output = lldb_with_script(
525 &["-Ccache=n", "-Oopt-level=0", "-Ddebug-info", wasm],
526 r#"
527breakpoint set --file dwarf_multiple_codegen_units.rs --line 3
528breakpoint set --file dwarf_multiple_codegen_units.rs --line 10
529r
530fr v
531c
532fr v
533breakpoint delete 2
534finish
535c"#,
536 )?;
537
538 check_lldb_output(
539 &output,
540 r#"
541check: Breakpoint 1: no locations (pending)
542check: Breakpoint 2: no locations (pending)
543check: stop reason = breakpoint 1.1
544check: foo::bar(a)
545check: a = 3
546check: sum += i
547check: x = 3
548check: sum = 0
549check: 1 breakpoints deleted
550check: Return value: $(=.*) 3
551check: exited with status = 0
552"#,
553 )?;
554 }
555 Ok(())
556}
557
558#[test]
559#[ignore]

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