(
breakpoints: &BreakpointState,
registry: &'b mut ModuleRegistry,
dirty_modules: &mut BTreeSet<StoreCodePC>,
module: &Module,
)
| 1041 | |
| 1042 | impl<'a> BreakpointEdit<'a> { |
| 1043 | fn get_code_memory<'b>( |
| 1044 | breakpoints: &BreakpointState, |
| 1045 | registry: &'b mut ModuleRegistry, |
| 1046 | dirty_modules: &mut BTreeSet<StoreCodePC>, |
| 1047 | module: &Module, |
| 1048 | ) -> Result<&'b mut CodeMemory> { |
| 1049 | let store_code_pc = |
| 1050 | registry.store_code_base_or_register(module, RegisterBreakpointState(breakpoints))?; |
| 1051 | let code_memory = registry |
| 1052 | .store_code_mut(store_code_pc) |
| 1053 | .expect("Just checked presence above") |
| 1054 | .code_memory_mut() |
| 1055 | .expect("Must have unique ownership of StoreCode in guest-debug mode"); |
| 1056 | if dirty_modules.insert(store_code_pc) { |
| 1057 | code_memory.unpublish()?; |
| 1058 | } |
| 1059 | Ok(code_memory) |
| 1060 | } |
| 1061 | |
| 1062 | fn patch<'b>( |
| 1063 | patches: impl Iterator<Item = FrameTableBreakpointData<'b>> + 'b, |
nothing calls this directly
no test coverage detected