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

Function test_debug_dwarf_gdb

tests/all/native_debug/gdb.rs:54–84  ·  view source on GitHub ↗
()

Source from the content-addressed store, hash-verified

52#[test]
53#[ignore]
54fn test_debug_dwarf_gdb() -> Result<()> {
55 let output = gdb_with_script(
56 &[
57 "-Ccache=n",
58 "-Ddebug-info",
59 "-Oopt-level=0",
60 "--invoke",
61 "fib",
62 test_programs_artifacts::DWARF_FIB_WASM,
63 "3",
64 ],
65 r#"set breakpoint pending on
66b fib
67r
68info locals
69c"#,
70 )?;
71
72 check_gdb_output(
73 &output,
74 r#"
75check: Breakpoint 1 (fib) pending
76check: hit Breakpoint 1
77sameln: fib (n=3)
78check: a = 0
79check: b = 0
80check: exited normally
81"#,
82 )?;
83 Ok(())
84}

Callers

nothing calls this directly

Calls 3

gdb_with_scriptFunction · 0.85
check_gdb_outputFunction · 0.85
OkFunction · 0.85

Tested by

no test coverage detected