proc: Breakpoint to catch unrecovered panics

Automatically sets a breakpoint on runtime.startpanic, the function
that gets called by runtime.dopanic when a panic is not recovered.

Implements #317
This commit is contained in:
aarzilli
2016-03-06 18:54:43 +01:00
parent c66c6408a5
commit c4797ea445
6 changed files with 58 additions and 6 deletions

View File

@ -515,6 +515,10 @@ func clearAll(t *Term, ctx callContext, args string) error {
}
}
if bp.ID < 0 {
continue
}
_, err := t.client.ClearBreakpoint(bp.ID)
if err != nil {
fmt.Printf("Couldn't delete %s at %s: %s\n", formatBreakpointName(bp, false), formatBreakpointLocation(bp), err)