закешированный к нам в целях безопасности дебаггер
Go to file
Zeke Lu 463b97dd36
pkg/proc: pad variable mem in extractVarInfoFromEntry (#3365)
* pkg/proc: pad variable mem in extractVarInfoFromEntry

On 64 bit system, the byte size of the following struct is 16:
    type myStruct struct {
       a int
       b uint32
    }
But extractVarInfoFromEntry only allocates a mem of 12 bytes for it.
When calling method of this struct with the "call" command, it will
result in this error:
    write out of bounds

This patch extends the mem by adding padding bytes to the end of the
mem.

Fixes #3364.

* move the padding logic into newCompositeMemory
2023-05-15 14:46:33 -07:00
_fixtures pkg/proc: pad variable mem in extractVarInfoFromEntry (#3365) 2023-05-15 14:46:33 -07:00
_scripts proc: fix runtime type handling for Go 1.21 (#3370) 2023-05-15 10:21:52 -07:00
.teamcity TeamCity,Documentation: use new TeamCity URL (#3275) 2023-02-15 11:11:42 +01:00
assets Add high-res images 2015-05-19 12:25:26 -05:00
cmd/dlv cmd/dlv: logger is not closed in connect command (#3367) 2023-05-15 10:22:33 -07:00
Documentation trace: add timestamp to the output (#3358) 2023-05-08 10:41:47 -07:00
pkg pkg/proc: pad variable mem in extractVarInfoFromEntry (#3365) 2023-05-15 14:46:33 -07:00
service proc,terminal: read command line of new processes (#3346) 2023-05-09 11:40:00 -07:00
vendor pkg/proc: remove memlock limit for ebpf trace backend (#3353) 2023-05-03 09:41:32 +02:00
.cirrus.yml proc: fixes concerning call injection on freebsd and rr (#3000) 2022-05-05 08:39:54 -07:00
.deepsource.toml Continuous Integration cleanup (#2369) 2021-03-08 09:35:56 -08:00
.gitattributes makefile: use git's $Id$ instead of setting ver.Build in makefile (#807) 2017-04-28 10:14:33 -07:00
.gitignore chore: don't ignore directory cmd/dlv (#3359) 2023-05-05 09:59:43 -07:00
CHANGELOG.md v1.20.2 2023-04-05 11:25:22 +02:00
CONTRIBUTING.md README: Remove gitter chat link. 2020-01-21 09:06:53 -08:00
go.mod go.mod: update github.com/google/go-dap to v0.7.0 (#3237) 2023-01-03 08:40:51 -08:00
go.sum go.mod: update github.com/google/go-dap to v0.7.0 (#3237) 2023-01-03 08:40:51 -08:00
ISSUE_TEMPLATE.md Documentation: document substitute-path more (#2998) 2022-05-04 11:01:56 -07:00
LICENSE Add License and README 2014-05-03 15:31:52 -05:00
Makefile pkg/proc: add build scripts & docker image for ebpf (#2847) 2021-12-30 09:04:59 +01:00
README.md TeamCity,Documentation: use new TeamCity URL (#3275) 2023-02-15 11:11:42 +01: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.