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

Function test_dwarf_simple

tests/all/native_debug/lldb.rs:450–490  ·  view source on GitHub ↗
(wasm: &str, extra_args: &[&str])

Source from the content-addressed store, hash-verified

448}
449
450fn test_dwarf_simple(wasm: &str, extra_args: &[&str]) -> Result<()> {
451 println!("testing {wasm:?}");
452 let mut args = vec![
453 "-Ccache=n",
454 "-Oopt-level=0",
455 "-Ddebug-info",
456 "-Wshared-memory",
457 ];
458 args.extend(extra_args);
459 args.push(wasm);
460 let output = lldb_with_script(
461 &args,
462 r#"
463breakpoint set --file dwarf_simple.rs --line 3
464breakpoint set --file dwarf_simple.rs --line 5
465r
466fr v
467c
468fr v
469breakpoint disable 2
470c"#,
471 )?;
472
473 check_lldb_output(
474 &output,
475 r#"
476check: Breakpoint 1: no locations (pending)
477check: Unable to resolve breakpoint to any actual locations.
478check: 1 location added to breakpoint 1
479check: stop reason = breakpoint 1.1
480check: dwarf_simple.rs:3
481check: a = 100
482check: dwarf_simple.rs:5
483check: a = 110
484check: b = 117
485check: resuming
486check: exited with status = 0
487"#,
488 )?;
489 Ok(())
490}
491
492#[test]
493#[ignore]

Callers 3

dwarf_simpleFunction · 0.85
dwarf_imported_memoryFunction · 0.85
dwarf_shared_memoryFunction · 0.85

Calls 5

lldb_with_scriptFunction · 0.85
check_lldb_outputFunction · 0.85
OkFunction · 0.85
extendMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected