delve/pkg
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
..
astutil proc: simplify next/step/stepout condition code 2020-04-04 11:00:54 -07:00
config Prefer string variant for source-list-line-color config option (#2676) 2021-09-01 10:03:58 -07:00
dwarf pkg/proc: merge register data before writing to register (#2699) 2021-09-24 15:27:44 -07:00
elfwriter terminal,service,proc/*: adds dump command (gcore equivalent) (#2173) 2021-01-29 13:39:33 -08:00
gobuild service/dap: move build error to output event (#2482) 2021-05-17 09:13:25 -07:00
goversion cmd/dlv: Parse Go+BoringCrypto version (#2712) 2021-09-22 21:25:31 -07:00
locspec locspec,proc: improve documentation (#2338) 2021-02-10 09:31:37 -08:00
logflags service/rpccommon: log error for conns rejected by --only-same-user (#2211) 2020-10-22 08:23:55 -07:00
proc pkg/proc: merge register data before writing to register (#2699) 2021-09-24 15:27:44 -07:00
terminal terminal: config -list to print strings inside interfaces in quotes (#2680) 2021-09-01 09:59:15 -07:00
version v1.7.2 (#2708) 2021-09-22 21:05:04 -07:00