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

Method get_func_index

crates/debugger/src/host/api.rs:861–870  ·  view source on GitHub ↗
(
        &mut self,
        self_: Resource<Frame>,
        d: Resource<Debuggee>,
    )

Source from the content-addressed store, hash-verified

859 }
860
861 async fn get_func_index(
862 &mut self,
863 self_: Resource<Frame>,
864 d: Resource<Debuggee>,
865 ) -> Result<u32> {
866 let frame = self.get(&self_)?.0.clone();
867 let d = debugger(self, &d)?;
868 let (f, _) = d.frame_func_and_pc(frame).await?;
869 Ok(f)
870 }
871
872 async fn get_pc(&mut self, self_: Resource<Frame>, d: Resource<Debuggee>) -> Result<u32> {
873 let frame = self.get(&self_)?.0.clone();

Callers

nothing calls this directly

Calls 5

debuggerFunction · 0.85
OkFunction · 0.85
frame_func_and_pcMethod · 0.80
cloneMethod · 0.45
getMethod · 0.45

Tested by

no test coverage detected