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

Method breakpoints

src/commands/objdump.rs:605–616  ·  view source on GitHub ↗
(&mut self, address: u64, list: &mut Vec<String>)

Source from the content-addressed store, hash-verified

603 }
604
605 fn breakpoints(&mut self, address: u64, list: &mut Vec<String>) {
606 while let Some((wasm_pc, addr, patch)) = self.breakpoints.next_if(|(_, addr, patch)| {
607 u64::try_from(*addr).unwrap() + u64::try_from(patch.len()).unwrap() <= address
608 }) {
609 if u64::try_from(addr).unwrap() + u64::try_from(patch.len()).unwrap() != address {
610 continue;
611 }
612 list.push(format!(
613 "breakpoint patch: wasm PC {wasm_pc}, patch bytes {patch:?}"
614 ));
615 }
616 }
617
618 fn describe_local_shape(desc: &FrameStateSlot<'_>) -> String {
619 let mut parts = vec![];

Callers 1

decorateMethod · 0.45

Calls 3

unwrapMethod · 0.45
lenMethod · 0.45
pushMethod · 0.45

Tested by

no test coverage detected