delve/service
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
..
api service/dap: add basic log points (#2634) 2021-09-24 15:22:32 -07:00
dap service/dap: add basic log points (#2634) 2021-09-24 15:22:32 -07:00
debugger service/dap: add basic log points (#2634) 2021-09-24 15:22:32 -07:00
internal/sameuser service: fix sameuser check (#2642) 2021-08-10 11:40:39 +02:00
rpc1 proc,terminal,service: support stack watchpoints (#2521) 2021-08-09 10:41:25 -07:00
rpc2 proc,terminal,service: support stack watchpoints (#2521) 2021-08-09 10:41:25 -07:00
rpccommon service/rpccommon: halt before detach in Stop (#2677) 2021-09-01 10:31:37 -07:00
test pkg/proc: merge register data before writing to register (#2699) 2021-09-24 15:27:44 -07:00
client.go proc,terminal,service: support stack watchpoints (#2521) 2021-08-09 10:41:25 -07:00
config.go cmd/dlv: Fix trace output (#2038) 2020-05-13 08:38:10 +02:00
listenerpipe.go cmd,service: in non-headless mode use an in-memory connection 2018-10-08 15:11:13 -07:00
rpccallback.go service: serialize calls to Command API (#2370) 2021-03-08 10:05:10 -08:00
server.go cmd,service: remove temporary def of Server interface in func 2018-10-09 07:56:48 -07:00