delve/pkg/terminal
aarzilli 932aad9e3d terminal: disable next/step/stepout if current frame isn't 0
next/step/stepout should work even if the current frame isn't the
topmost stack frame, but their behavior should be different in that
case (they should continue inside the function of the selected frame).

Most of the logic of next/step/stepout would work correctly if we
simply replaced the call to proc.topframe with something that took a
frame index. However the breakpoint they set on the first deferred
function is wrong, and fixing it requires scanning the defer stack and
matching it to the call stack, something we can't do yet.

Given that enhancing next/step/stepout will take time and the current
behavior confuses users (see issue #1240) return an error if
next/step/stepout are called while the currently selected frame isn't
frame 0.

Updates #1240
2018-07-23 11:33:35 -07:00
..
command_test.go *: Use structured logging 2018-06-22 09:45:10 +02:00
command.go terminal: disable next/step/stepout if current frame isn't 0 2018-07-23 11:33:35 -07:00
config.go all: Spelling 2018-03-20 11:05:35 +01:00
disasmprint.go Fix various issues detected by megacheck (#880) 2017-06-29 11:15:59 -07:00
docgen.go Fix various issues detected by megacheck (#880) 2017-06-29 11:15:59 -07:00
terminal_other.go Move top-level packages into pkg 2017-02-08 12:17:19 -08:00
terminal_test.go terminal: disable file path case normalization on macOS 2018-01-28 01:50:02 -08:00
terminal_windows.go Move top-level packages into pkg 2017-02-08 12:17:19 -08:00
terminal.go proc,terminal,service: let headless instances run without connected clients 2018-06-26 10:32:40 -07:00