pkg/terminal: Ignore existing breakpoints for continue until (#2624)

Ignore existing breakpoints when using the continue command to continue
to a specific location such as `continue main.main`. The point of this
command is to continue to a specific location, so if there is already a
breakpoint set there there should be no error returned, just continue
until we hit the breakpoint already set in that location.
This commit is contained in:
Derek Parker
2021-07-28 04:13:32 -07:00
committed by GitHub
parent 56731bd88a
commit cb73ef8f83
2 changed files with 15 additions and 1 deletions

View File

@ -1412,7 +1412,9 @@ func (c *Commands) cont(t *Term, ctx callContext, args string) error {
if args != "" {
tmp, err := setBreakpoint(t, ctx, false, args)
if err != nil {
return err
if !strings.Contains(err.Error(), "Breakpoint exists") {
return err
}
}
defer func() {
for _, bp := range tmp {