Michael Knyszek 041eedd126 pkg/proc: merge register data before writing to register (#2699)
Right now, if (*compositeMemory).WriteMemory needs to write a value to
a register that's smaller than the full size of the register (say, a
uint32 being passed as an argument), then (*AMD64Registers).SetReg can
later fail a sanity check that ensures the passed DwarfRegister is a
full size register.

Fix this by reading the old value of the register and overwriting just
the relevant parts with the new register. For the purposes of an
argument, it would probably be fine to just pad with zeroes, but merging
with the existing value is what gdb does.

Fixes #2698
2021-09-24 15:27:44 -07:00
2015-05-19 12:25:26 -05:00
2020-04-08 11:40:24 +02:00
2021-09-22 21:05:04 -07:00
2014-05-03 15:31:52 -05:00

Delve

license GoDoc Build Status

The GitHub issue tracker is for bugs only. Please use the developer mailing list for any feature proposals and discussions.

About Delve

Delve is a debugger for the Go programming language. The goal of the project is to provide a simple, full featured debugging tool for Go. Delve should be easy to invoke and easy to use. Chances are if you're using a debugger, things aren't going your way. With that in mind, Delve should stay out of your way as much as possible.

Description
Delve is a debugger for the Go programming language.
Readme MIT 61 MiB
Languages
Go 97.1%
C 2.3%
Shell 0.2%
PowerShell 0.1%
Starlark 0.1%
Other 0.1%