Commit 37aa6c99 authored by Austin Clements's avatar Austin Clements

Fix uninstalling of breakpoints when a process exits. Process

exit is still handled poorly.

R=rsc
APPROVED=rsc
DELTA=6  (6 added, 0 deleted, 0 changed)
OCL=34288
CL=34315
parent eea6b0d8
......@@ -386,6 +386,9 @@ func (p *process) installBreakpoints() os.Error {
//
// Must be called from the monitor thread.
func (p *process) uninstallBreakpoints() os.Error {
if len(p.threads) == 0 {
return nil;
}
n := 0;
main := p.someStoppedThread();
for _, b := range p.breakpoints {
......
......@@ -384,6 +384,9 @@ func (p *process) installBreakpoints() os.Error {
//
// Must be called from the monitor thread.
func (p *process) uninstallBreakpoints() os.Error {
if len(p.threads) == 0 {
return nil;
}
n := 0;
main := p.someStoppedThread();
for _, b := range p.breakpoints {
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment