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

Function dwarf_spilled_frame_base

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

Source from the content-addressed store, hash-verified

376#[test]
377#[ignore]
378pub fn dwarf_spilled_frame_base() -> Result<()> {
379 let output = lldb_with_script(
380 &[
381 "-Ccache=n",
382 "-Oopt-level=0",
383 "-Ddebug-info",
384 DWARF_SPILLED_FRAME_BASE,
385 ],
386 r#"b dwarf_spilled_frame_base.c:13
387r
388fr v i
389n
390fr v i
391n
392fr v i
393n
394fr v i
395n
396fr v i
397n
398fr v i
399c
400"#,
401 )?;
402
403 // Check that if the frame base (shadow frame pointer) local
404 // is spilled, we can still read locals that reference it.
405 check_lldb_output(
406 &output,
407 r#"
408check: i = 0
409check: i = 1
410check: i = 1
411check: i = 1
412check: i = 1
413check: i = 1
414check: exited with status
415"#,
416 )?;
417 Ok(())
418}
419
420#[test]
421#[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