RemoveBreakpoint() private method

private RemoveBreakpoint ( BreakpointHandle handle ) : void
handle BreakpointHandle
return void
Esempio n. 1
0
        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 ();
            }
        }
Esempio n. 2
0
        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 ();
            }
        }
Esempio n. 3
0
        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 ();
            }
        }
Esempio n. 4
0
        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 ();
            }
        }