private RemoveBreakpoint ( BreakpointHandle handle ) : void | ||
handle | BreakpointHandle | |
Résultat | void |
public void DomainUnload(Inferior inferior, int domain) { Lock (); try { int[] indices = new int [index_hash.Count]; index_hash.Keys.CopyTo (indices, 0); for (int i = 0; i < indices.Length; i++) { BreakpointEntry entry = (BreakpointEntry) index_hash [indices [i]]; if (entry.Domain != domain) continue; inferior.RemoveBreakpoint (indices [i]); index_hash.Remove (indices [i]); } } finally { Unlock (); } }
public void InitializeAfterFork(Inferior inferior) { Lock (); try { int[] indices = new int [index_hash.Count]; index_hash.Keys.CopyTo (indices, 0); for (int i = 0; i < indices.Length; i++) { int idx = indices [i]; BreakpointEntry entry = (BreakpointEntry) index_hash [idx]; SourceBreakpoint bpt = entry.Handle.Breakpoint as SourceBreakpoint; if (!entry.Handle.Breakpoint.ThreadGroup.IsGlobal) { try { inferior.RemoveBreakpoint (idx); } catch (Exception ex) { Report.Error ("Removing breakpoint {0} failed: {1}", idx, ex); } } } } finally { Unlock (); } }
public void RemoveBreakpoint(Inferior inferior, BreakpointHandle handle) { Lock (); try { int[] indices = new int [index_hash.Count]; index_hash.Keys.CopyTo (indices, 0); for (int i = 0; i < indices.Length; i++) { BreakpointEntry entry = (BreakpointEntry) index_hash [indices [i]]; if (entry.Handle != handle) continue; inferior.RemoveBreakpoint (indices [i]); index_hash.Remove (indices [i]); } } finally { Unlock (); } }
public void RemoveAllBreakpoints(Inferior inferior) { Lock (); try { int[] indices = new int [index_hash.Count]; index_hash.Keys.CopyTo (indices, 0); for (int i = 0; i < indices.Length; i++) { try { inferior.RemoveBreakpoint (indices [i]); } catch (Exception ex) { Report.Error ("Removing breakpoint {0} failed: {1}", indices [i], ex); } } } finally { Unlock (); } }