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

Method get_pc

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

Source from the content-addressed store, hash-verified

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();
874 let d = debugger(self, &d)?;
875 let (_, pc) = d.frame_func_and_pc(frame).await?;
876 Ok(pc)
877 }
878
879 async fn get_locals(
880 &mut self,

Callers 3

frame_to_pcMethod · 0.80
frame_to_return_addrMethod · 0.80
test_simpleFunction · 0.80

Calls 5

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

Tested by 1

test_simpleFunction · 0.64