mirror of
https://github.com/go-delve/delve.git
synced 2025-10-30 10:17:03 +08:00
service/debugger: bugfix: error values can not be marshalled (#697)
This commit is contained in:
committed by
Derek Parker
parent
fd1df948fa
commit
4dd627f669
@ -316,5 +316,5 @@ func (regs Registers) String() string {
|
|||||||
|
|
||||||
type DiscardedBreakpoint struct {
|
type DiscardedBreakpoint struct {
|
||||||
Breakpoint *Breakpoint
|
Breakpoint *Breakpoint
|
||||||
Reason error
|
Reason string
|
||||||
}
|
}
|
||||||
|
|||||||
@ -135,7 +135,7 @@ func (d *Debugger) Restart() ([]api.DiscardedBreakpoint, error) {
|
|||||||
if len(oldBp.File) > 0 {
|
if len(oldBp.File) > 0 {
|
||||||
oldBp.Addr, err = p.FindFileLocation(oldBp.File, oldBp.Line)
|
oldBp.Addr, err = p.FindFileLocation(oldBp.File, oldBp.Line)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
discarded = append(discarded, api.DiscardedBreakpoint{oldBp, err})
|
discarded = append(discarded, api.DiscardedBreakpoint{oldBp, err.Error()})
|
||||||
continue
|
continue
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user