delve/pkg
aarzilli bc86c662a6 pkg/proc: fix StepBreakpoint handling
StepBreakpoints are set on CALL instructions, when they are hit we
disassemble the current instruction, figure out the destination address
and set a breakpoint after the prologue of the called function.

In order to disassemble the current instruction we disassemble the area
of memory starting from PC and going to PC+15 (because 15 bytes is the
maximum length of one instruction on AMD64). This means that we won't
just disassemble one instruction but also a few instructions following
it ending with one truncated instruction.

This usually works fine but sometimes the disassembler will panic with
an array out of bounds error when trying to disassemble a truncated
instruction. To avoid this problem this commit changes the funciton
disassemble to take one extra parameter, singleInstr, when singleInstr
is set disassemble will quit after disassembling a single instruction.
2017-11-21 00:40:26 -08:00
..
config terminal: add config command 2017-09-08 10:27:32 -07:00
dwarf proc: refactor stack.go to use DWARF registers 2017-11-17 10:17:24 -08:00
goversion cmd/dlv: do not pass "linkmode internal" for windows on go1.9 and later 2017-08-01 11:20:25 -06:00
proc pkg/proc: fix StepBreakpoint handling 2017-11-21 00:40:26 -08:00
terminal proc/gdbserial: return error if stopped with a sginal 2017-09-20 12:39:29 -07:00
version *: Bump version to 1.0.0-rc.2 2017-10-16 10:53:20 -07:00