MCPcopy Create free account
hub / github.com/SeaQL/FireDBG.for.Rust / execute_rust_program

Function execute_rust_program

debugger/src/debugger/probe.rs:58–66  ·  view source on GitHub ↗
(obj: &str)

Source from the content-addressed store, hash-verified

56}
57
58fn execute_rust_program(obj: &str) -> anyhow::Result<String> {
59 let result = std::process::Command::new(&obj)
60 .stderr(Stdio::inherit())
61 .output()?;
62 if result.status.code().context("run")? != 0 {
63 anyhow::bail!("Failed to run {obj}");
64 }
65 Ok(String::from_utf8(result.stdout)?)
66}
67
68fn probe_layout_of(typedef: &str) -> anyhow::Result<Layout> {
69 log::trace!("Probing {typedef} ...");

Callers 1

probe_layout_ofFunction · 0.85

Calls 1

outputMethod · 0.45

Tested by

no test coverage detected