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

Function dwarf_generic

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

Source from the content-addressed store, hash-verified

196#[test]
197#[ignore]
198pub fn dwarf_generic() -> Result<()> {
199 let output = lldb_with_script(
200 &["-Ccache=n", "-Ddebug-info", "-Oopt-level=0", DWARF_GENERIC],
201 r#"br set -n debug_break -C up
202r
203p __vmctx->set()
204p (x + x)
205c
206p (x + x)
207c
208p inst.BaseValue + inst.DerivedValue
209c
210type lookup DerivedType
211c
212p __this->BaseValue + __this->DerivedValue
213c
214p __this->BaseValue + __this->DerivedValue
215c
216p __this->BaseValue + __this->DerivedValue
217c
218f
219n
220s
221v var0
222v var1
223c"#,
224 )?;
225
226 check_lldb_output(
227 &output,
228 r#"
229check: stop reason = breakpoint 1.1
230check: 2
231check: stop reason = breakpoint 1.1
232check: 4
233check: stop reason = breakpoint 1.1
234check: 3
235check: stop reason = breakpoint 1.1
236check: static int InstanceMethod
237check: static int ConstInstanceMethod
238check: stop reason = breakpoint 1.1
239check: 6
240check: stop reason = breakpoint 1.1
241check: 7
242check: stop reason = breakpoint 1.1
243check: 8
244check: stop reason = breakpoint 1.1
245check: 9
246check: 10
247check: exited with status = 0
248"#,
249 )?;
250 Ok(())
251}
252
253#[test]
254#[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