- 23 6月, 2020 1 次提交
-
-
由 Tai Le 提交于
-
- 16 6月, 2020 1 次提交
-
-
由 Billie Cleek 提交于
-
- 12 6月, 2020 2 次提交
-
-
由 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
-
由 Alessandro Arzilli 提交于
On platforms other than macOS this doesn't matter but on macOS a segmentation fault will cause ContinueOnce to return an error, before returning it we should still fix the current thread and selected goroutine values. Fixes #2078
-
- 06 6月, 2020 4 次提交
-
-
由 Alessandro Arzilli 提交于
The list of source files must include all files from all images, not just the files from the last discovered image. Fixes #2074
-
由 Alessandro Arzilli 提交于
- treat C pointers as arrays - print 'char *' variables as strings
-
由 Á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
-
由 Alessandro Arzilli 提交于
Normally we don't step into unexported runtime functions because the compiler is free to insert them into the code and they are not relevant to the user, however if we are already stepping through a runtime function we should let step into work normally and step into other runtime functions.
-
- 04 6月, 2020 3 次提交
-
-
由 Alessandro Arzilli 提交于
-
由 Alessandro Arzilli 提交于
When reading truncated core files GoroutinesInfo will sometimes produce some proc.G structs with only the Unreadable field set. These proc.G can not be used for anything, but the service layer will still try to convert them. Since they are not fully initialized parts of the conversion will fail, api.ConvertGoroutine should not try to call methods of unreadable goroutines. Fixes a bug reported on the mailing list. https://groups.google.com/forum/#!msg/delve-dev/gauDqYaD81c/K5YDNBOhAAAJ
-
由 Alessandro Arzilli 提交于
This issue causes a failure of TestTracePid that was observed in CI: https://travis-ci.com/github/go-delve/delve/jobs/343053383 I'm not sure what causes it in this particular instance but there are several ways in which a thread stopped at a breakpoint might have a BreakpointInfo == nil field (see variable withBreakpointInfo in debugger.Debugger.Command).
-
- 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
-
- 29 5月, 2020 1 次提交
-
-
由 polinasok 提交于
* service/dap: Add error checking and tests for buildFlags in launch requests * Clarify with comments and better naming * Undo redundant support.go changes * Undo redundant support.go changes (attempt #2) Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 23 5月, 2020 1 次提交
-
-
由 Derek Parker 提交于
-
- 19 5月, 2020 1 次提交
-
-
由 chainhelen 提交于
update #1919
-
- 15 5月, 2020 1 次提交
-
-
由 Alessandro Arzilli 提交于
It is only used in benchmarks and 'go test' now has command line options to enable profiling as appropriate (but maybe it didn't in 2014).
-
- 14 5月, 2020 2 次提交
-
-
由 chainhelen 提交于
* pkg/proc: avoid target process leaks. Target process should exit when dlv launch failed. Fix #2017.
-
由 Alessandro Arzilli 提交于
Changes implementations of proc.Registers interface and the op.DwarfRegisters struct so that floating point registers can be loaded only when they are needed. Removes the floatingPoint parameter from proc.Thread.Registers. This accomplishes three things: 1. it simplifies the proc.Thread.Registers interface 2. it makes it impossible to accidentally create a broken set of saved registers or of op.DwarfRegisters by accidentally calling Registers(false) 3. it improves general performance of Delve by avoiding to load floating point registers as much as possible Floating point registers are loaded under two circumstances: 1. When the Slice method is called with floatingPoint == true 2. When the Copy method is called Benchmark before: BenchmarkConditionalBreakpoints-4 1 4327350142 ns/op Benchmark after: BenchmarkConditionalBreakpoints-4 1 3852642917 ns/op Updates #1549
-
- 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
-
- 12 5月, 2020 4 次提交
-
-
由 Alessandro Arzilli 提交于
Fixes #2037
-
由 polinasok 提交于
* Adds launch request support for program args * Combine types of function parameters Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
由 Anders Kaare 提交于
The option is "source-list-line-count". It defaults to 5, which was previously hardcoded in printfile(), but now you can change it dynamically, for instance: $ config source-list-line-count 20 $ list
-
由 Alessandro Arzilli 提交于
When trying to compile tests in a package that does not contain tests 'go' emits an error message on stdout instead of stderr. Let the 'go' command write to stdout too. Fixes #2042
-
- 05 5月, 2020 3 次提交
-
-
由 Alessandro Arzilli 提交于
Fixes #2026
-
由 chainhelen 提交于
Unexport `GetDebugServerAbsolutePath` and avoid unnecessary repeated calls. Remove `os.Stat` because `Exec.LookPath` has already used `os.Stat`.And Fix some comments.
-
由 colinnewell 提交于
-
- 02 5月, 2020 6 次提交
-
-
由 polinasok 提交于
* Add no-op handlers for unsupported requests * Fix whitespace * Add couple of missing unsupported requests * More comments * Separate errors for unsupported and not-yet-implemented requests. * Fix go.mod/sum dependencies Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
由 aarzilli 提交于
Splits the compileUnits slice between images so that we can search for an offset inside the debug info of a specific image file.
-
由 aarzilli 提交于
When there is a single piece and it's a register value just return it. This is important for clang compiled programs which will use DW_OP_regN to specify the value of the frame base.
-
由 aarzilli 提交于
-
由 aarzilli 提交于
Mirroring the way this is implemented in the Go runtime and introducing a type that will be useful to support the call injection changes in Go 1.15
-
由 aarzilli 提交于
pickCurrentThread should always run.
-
- 28 4月, 2020 2 次提交
-
-
由 aarzilli 提交于
Fixes #2028
-
由 Min Zhou 提交于
On linux platform, we simply treated `/proc/$pid/exe` as the executable of targeting process when doing `dlv attach`. The `/proc/$pid/exe` is a symbol link of the real executable file. Delve couldn't find the corrsponding external debug file based on the symbol link: ``` could not attach to pid $pid: could not open debug info ``` The fix is to evaluate the symbol links to the actual executable path.
-
- 24 4月, 2020 1 次提交
-
-
由 chainhelen 提交于
Allow user to specify output syntax flavor of assembly in the disassemble command. Close #415
-
- 21 4月, 2020 1 次提交
-
-
由 aarzilli 提交于
This test will occasionally hang in SetBreakpoint/WriteMemory
-
- 18 4月, 2020 2 次提交
-
-
由 aarzilli 提交于
The process could quit while we are inside stop, we should report the error otherwise the following code will try to send on the closed ptrace channel. Fixes a sporadic error in TestIssue1101.
-
由 aarzilli 提交于
Reduces test timeout by one minute so that Go will timeout before Travis-CI and report useful informations about the hang.
-
- 17 4月, 2020 2 次提交
-
-
由 Derek Parker 提交于
Fixes a long standing dangling TODO item.
-
由 Alessandro Arzilli 提交于
-