- 25 9月, 2021 1 次提交
-
-
由 polinasok 提交于
Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 24 8月, 2021 2 次提交
-
-
由 Derek Parker 提交于
This patch enables the eBPF tracer backend to parse the ID of the Goroutine which hit the uprobe. This implementation is specific to AMD64 and will have to be generalized further in order to be used on other architectures.
-
由 polinasok 提交于
* service/dap: add test verifying handling of relative program path * Add exec test, log build dir and document in --help Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 10 8月, 2021 1 次提交
-
-
由 hitzhangjie 提交于
-
- 04 8月, 2021 1 次提交
-
-
由 polinasok 提交于
* cmd: refactor building logic into a helper * Address review comments Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 31 7月, 2021 1 次提交
-
-
由 Derek Parker 提交于
-
- 28 7月, 2021 1 次提交
-
-
由 Hyang-Ah Hana Kim 提交于
* cmd/dlv: dlv version --verbose That prints out runtime/debug.BuildInfo read from the dlv binary. Users can retrieve the same info using `go version -m <path_to_dlv>` but I think it is convenient to have. If dlv was built from cloned delve repo: ``` $ ./dlv version -v Delve Debugger Version: 1.7.0 Build: $Id: e353a65161e6ed74952b96bbb62ebfc56090832b $ Build Details: go1.16.5 mod github.com/go-delve/delve (devel) dep github.com/cosiner/argv v0.1.0 h1:BVDiEL32lwHukgJKP87btEPenzrrHUjajs/8yzaqcXg= ... ``` If dlv was built with `go install github.com/go-delve/delve@latest` with go1.16+, or `GO111MODULE=on go get github.com/go-delve/delve@latest` from a clean main module: ``` $ ./dlv version -v Delve Debugger Version: 1.7.0 Build: $Id: e353a65161e6ed74952b96bbb62ebfc56090832b $ Build Details: go1.16.5 mod github.com/go-delve/delve v1.7.0 dep github.com/cosiner/argv v0.1.0 h1:BVDiEL32lwHukgJKP87btEPenzrrHUjajs/8yzaqcXg= ... ``` * remove an accidentally added bogus test
-
- 21 7月, 2021 2 次提交
-
-
由 polinasok 提交于
Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
由 Luis Gabriel Gomez 提交于
This PR aims to add support for rr replay and core actions from the DAP layer. This basically encloses the following: New launch modes: replay and core The following modes are added: replay: Replays an rr trace, allowing backwards flows (reverse continue and stepback). Requires a traceDirPath property on launch.json pointing to a valid rr trace directory. Equivalent to dlv replay <tracedir> command. core: Replays a core dump file, showing its callstack and the file matching the callsite. Requires a coreFilePath property on launch.json pointing to a valid coredump file. Equivalent to dlv core <exe> <corefile> command. Dependencies To achieve this the following additional changes were made: Implement the onStepBackRequest and onReverseContinueRequest methods on service/dap Adapt onLaunchRequest with the requried validations and logic for these new modes Use CapabilitiesEvent responses to enable the StepBack controls on the supported scenarios (see dicussion here) Add the corresponding launch.json support on vs code: Support for replay and core modes golang/vscode-go#1268
-
- 18 7月, 2021 1 次提交
-
-
由 polinasok 提交于
Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 17 7月, 2021 1 次提交
-
-
由 polinasok 提交于
Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 29 6月, 2021 1 次提交
-
-
由 polinasok 提交于
Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 20 5月, 2021 1 次提交
-
-
由 Hyang-Ah Hana Kim 提交于
On linux, delve RPC server allows only connections from the same user if --only-same-user is set (true, by default). Do the same for DAP server. Moved the sameuser check logic to service/internal/sameuser. Considered importing service/rpccommon from the dap server, but when we eventually migrate to multiplex rpc and dap from one port, I am afraid that can cause cyclic imports.
-
- 05 5月, 2021 1 次提交
-
-
由 Alessandro Arzilli 提交于
Add documentation on how to pass arguments to the program generated by `dlv test`. Fixes #2458
-
- 23 3月, 2021 1 次提交
-
-
由 Suzy Mueller 提交于
* service/dap: use specified working directory for launch requests If a user specifies a working directory in the launch request, then the process should use that working directory. This may affect how the program runs and the user should be able to have control over this. * service/dap: add tests for launch with working dir Added tests to make sure the working directory is set correctly. * service/dap: fix TestWorkingDir on windows * service/dap: use %q to print quoted string * cmd/dlv: update dap warning about working dir * service/dap: change the launch argument to be wd` * update warning to specify only launch request
-
- 30 1月, 2021 1 次提交
-
-
由 Alessandro Arzilli 提交于
* proc/core: off-by-one error reading ELF core files core.(*splicedMemory).ReadMemory checked the entry interval erroneously when dealing with contiguous entries. * terminal,service,proc/*: adds dump command (gcore equivalent) Adds the `dump` command that creates a core file from the target process. Backends will need to implement a new, optional, method `MemoryMap` that returns a list of mapped memory regions. Additionally the method `DumpProcessNotes` can be implemented to write out to the core file notes describing the target process and its threads. If DumpProcessNotes is not implemented `proc.Dump` will write a description of the process and its threads in a OS/arch-independent format (that only Delve understands). Currently only linux/amd64 implements `DumpProcessNotes`. Core files are only written in ELF, there is no minidump or macho-o writers. # Conflicts: # pkg/proc/proc_test.go
-
- 13 1月, 2021 1 次提交
-
-
由 polinasok 提交于
Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 06 1月, 2021 1 次提交
-
-
由 Alex Zamai 提交于
add example for multiple --build-flags add example description to --build-flags
-
- 22 10月, 2020 1 次提交
-
-
由 Alessandro Arzilli 提交于
Fixes #1847
-
- 02 9月, 2020 1 次提交
-
-
由 aarzilli 提交于
Adds features to support default file descriptor redirects for the target process: 1. A new command line flag '--redirect' and '-r' are added to specify file redirects for the target process 2. New syntax is added to the 'restart' command to specify file redirects. 3. Interactive instances will check if stdin/stdout and stderr are terminals and print a helpful error message if they aren't.
-
- 01 9月, 2020 2 次提交
-
-
由 Alessandro Arzilli 提交于
Match 'go test' behaviour and switch to package directory, unless one is specified with the '--wd' option. Fixes #2125
-
由 Alessandro Arzilli 提交于
Fixes #2126
-
- 12 6月, 2020 1 次提交
-
-
由 Alessandro Arzilli 提交于
Clarify that the currently supported version of the API is 2 and that the preferred method for selecting it is sending a SetApiVersion command after connection. Fixes #2066
-
- 06 6月, 2020 1 次提交
-
-
由 Álex Sáez 提交于
* terminal/command: Add 'reload' command These changes add the 'reload' command, which allows us to rebuild the project and start the debugging session again. Currently, if the project's code is updated while debugging it, Delve shows the new source code, but it's still running the old one. With 'reload', the whole binary is rebuilt, and the process starts again. Fixes #1551 * Remove unnecessary print Changes to be committed: modified: pkg/terminal/command.go * Add tests and refactor the code Changes to be committed: modified: cmd/dlv/cmds/commands.go modified: go.mod modified: pkg/terminal/command.go modified: service/config.go modified: service/debugger/debugger.go modified: service/test/integration2_test.go * Fix typo in the comment Changes to be committed: modified: service/debugger/debugger.go * Fix typo in the name of the variables The variables are local therefore the capitalization is not needed Changes to be committed: modified: cmd/dlv/cmds/commands.go * Call GoTestBuild Also, remove the := to avoid redeclaration * Change the Kind in the tests Change from debugger.ExecutingGeneratedTest to debugger.ExecutingGeneratedFile for consistency. We are generating a real binary instead of a test one so ExecutingGeneratedFile makes more sense here. Changes to be committed: modified: service/test/integration2_test.go * Avoid breakpoints based on addresses Changes to be committed: modified: service/debugger/debugger.go * Update the rebuild behaviour There are a few cases where we can't rebuild the binary because we don't know how it was build. Changes to be committed: modified: service/debugger/debugger.go * Fix typos and update documentation Changes to be committed: modified: Documentation/cli/README.md modified: pkg/terminal/command.go modified: service/config.go modified: service/debugger/debugger.go * Fix typo * Remove variables They were added to the debugger.Config * Rename variable Rename Kind to ExecuteKind to make it more accurate Changes to be committed: modified: cmd/dlv/cmds/commands.go modified: service/debugger/debugger.go modified: service/test/integration2_test.go
-
- 03 6月, 2020 1 次提交
-
-
由 chainhelen 提交于
The trace command line subcommand ignored the regexp argument when the traced process was specified using the '-p' option. Fixes #2023
-
- 13 5月, 2020 1 次提交
-
-
由 Derek Parker 提交于
* cmd/dlv,debugger: Improve dlv trace and trace command output This patch improves the `dlv trace` subcommand output by reducing the noise that is generated and providing clearer more concise information. Also adds new tests closing a gap in our testing (we previously never really tested this subcommand). This patch also fixes the `dlv trace` REPL command to behave like the subcommand in certain situations. If the tracepoint is for a function, we now show function arguements and return values properly. Also makes the overall output of the trace subcommand clearer. Fixes #2027
-
- 05 5月, 2020 1 次提交
-
-
由 Alessandro Arzilli 提交于
Fixes #2026
-
- 15 4月, 2020 1 次提交
-
-
由 Derek Parker 提交于
Embed the debugger config object in the service config object to avoid needless duplication of fields.
-
- 11 4月, 2020 2 次提交
-
-
由 Darren Rambaud 提交于
Add --continue as a valid flag for the attach command by decorating attachCommand with the continueOnStart variable. Fixes #1995
-
由 Derek Parker 提交于
This flag allows users on UNIX systems to set the tty for the program being debugged by Delve. This is useful for debugging command line applications which need access to their own TTY, and also for controlling the output of the debugged programs so that IDEs may open a dedicated terminal to show the output for the process.
-
- 01 4月, 2020 1 次提交
-
-
由 Derek Parker 提交于
-
- 19 3月, 2020 1 次提交
-
-
由 Derek Parker 提交于
* *: Fix go vet struct complaints * *: Fix struct vet issue on linux * *: Ignore proc/native in go vet check We have to do some unsafe pointer manipulation that will never make go vet happy within the proc/native package. Ignore it for runs of go vet.
-
- 17 3月, 2020 1 次提交
-
-
由 MinJae Kwon 提交于
-
- 05 3月, 2020 1 次提交
-
-
由 polinasok 提交于
* service/dap: Add support for debug and test modes * Address code review comments * Remove //dap comment * OptFlags() => optfalgs() * If mode => switch mode
-
- 16 2月, 2020 1 次提交
-
-
由 polinasok 提交于
* Initial implementation for 'dlv dap' * Fix Travis and AppVeyor failures * Address review comments * Address review comments * Regenrate documentation * Replace dap server printfs with log.Error * Update 'dap log' * Fix typos * Revert logflags changes that got mixed in by accident
-
- 12 2月, 2020 1 次提交
-
-
由 Alessandro Arzilli 提交于
* service: also search IPv6 connections when checking user When checking if the user is allowed to connect to this Delve instance also search IPv6 connections even though the local address is IPv4. Fixes #1835 * cmd: add flag to disable same-user check Fixes #1835
-
- 14 11月, 2019 1 次提交
-
-
由 nd 提交于
This allows to execute and debug signal handlers in inferior.
-
- 22 10月, 2019 1 次提交
-
-
由 Alessandro Arzilli 提交于
Adds a '-r' option to the 'restart' command (and to the Restart API) that re-records the target when using rr. Also moves the code to delete the trace directory inside the gdbserial package.
-
- 02 8月, 2019 1 次提交
-
-
由 Alessandro Arzilli 提交于
* scripts: use relative path in gen-cli-docs.go Makes gen-cli-docs.go work outside GOPATH. * Documentation,cmd/dlv: tidy up --help output The description of --log-dest, --log-output and --backend is very verbose and messes up the output of --help, move it to two "additional help" subcommands.
-
- 30 7月, 2019 1 次提交
-
-
由 Derek Parker 提交于
* *: Add .cirrus.yml for FreeBSD testing * *: run go mod tidy * service/test: prefer 127.0.0.1 over localhost * dwarf/line: fix TestDebugLinePrologueParser * vendor: rerun go mod vendor
-