- 18 8月, 2020 4 次提交
-
-
由 Alessandro Arzilli 提交于
Parses and uses the new debug_loclists section added to DWARFv5.
-
由 Alessandro Arzilli 提交于
api.(*Variable).recursiveKind should not assume that a pointer is always fully loaded. Fixes #2130
-
由 Alessandro Arzilli 提交于
Limit the iteration depth of proc.(*G).UserCurrent so that it doesn't keep going forever if the stack trace is not valid. Fixes #2119
-
由 Alessandro Arzilli 提交于
Commit 1ee8d5c2 reviewed in Pull Request #1960 relaxed some tests using goroutinestackprog but missed others. Fixes some test flakiness that isn't relevant.
-
- 17 8月, 2020 3 次提交
- 13 8月, 2020 1 次提交
-
-
由 Alessandro Arzilli 提交于
-
- 11 8月, 2020 1 次提交
-
-
由 polinasok 提交于
* Initial support for scopes and variables requests * Add detailed variables test * Address review comments * Fix typo and redudant escaped characters * Bug fix for uninitialized interfaces; no refs needed for 0-size vars * Minor cosmetic tweaks * Add incomplete loading test * Make DeepSource happy * Remove unnecessary t.Helper() calls * Update broken test after merge * Add missing return * Rework test harness to abort testvariables2 before stack overflow * Remove accidentally duplicated disconnet * Test for invalid interface type with regex * Drop testvariables3, clean up and test unreadable case * Respond to review comments * Make expectVar test helper less fragile * Make DeepSource happy * Use proc.LoadConfig directly * Adjust test to avoid var count discrepency between Go 1.15 and earlier * Make compound keys in a map unique for correct display * Remove locals num check that will break if more vars are added Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 06 8月, 2020 2 次提交
-
-
由 Alessandro Arzilli 提交于
Print breakpoint info (requested print variables, stacktrace) when a tracepoint is hit. Fixes #2116
-
由 Alessandro Arzilli 提交于
-
- 30 7月, 2020 1 次提交
-
-
由 aarzilli 提交于
Thank you to: @polinasok, @chainhelen, @alexsaezm, @bhcleek, @letientai299, @gadelkareem and @b00f
-
- 29 7月, 2020 1 次提交
-
-
由 Alessandro Arzilli 提交于
* proc: start variable visibility one line after their decl line In most cases variables shouldn't be visible on their declaration line because they won't be initialized there. Function arguments are treated as an exception. This fix is only applied to programs compiled with Go 1.15 or later as previous versions of Go did not report the correct declaration line for variables captured by closures. Fixes #1134 * proc: silence go vet error * Makefile: enable PIE tests on windows/Go 1.15 * core: support core files for PIEs on windows * goversion: add Go 1.15 to supported versions * proc: fix function call injection for Go 1.15 Go 1.15 changed the call injection protocol so that the runtime will execute the injected call on a different (new) goroutine. This commit changes the function call support in delve to: 1. correctly track down the call injection state after the runtime switches to a different goroutine. 2. correctly perform the escapeCheck when stack values can come from multiple goroutine stacks. * proc: miscellaneous fixed for call injection under macOS with go 1.15 - create copy of SP in debugCallAXCompleteCall case because the code used to assume that regs doesn't change - fix automatic address calculation for function arguments when an argument has a spurious DW_OP_piece at entry
-
- 27 7月, 2020 1 次提交
-
-
由 Mostafa Sedaghat Joo 提交于
Check val != nil to ignore possible crash. Related to #2101
-
- 22 7月, 2020 4 次提交
-
-
由 Alessandro Arzilli 提交于
The file:line information for the entrypoint is more acccurate than the file:line information at a return point, which could be affected by a compiler bug. Fixes #2086
-
由 Alessandro Arzilli 提交于
Recent change #2061: 292f5c69 proc: step into unexported runtime funcs when already inside runtime means that TestIssue414 (which tries to step repeatedly until the program exits) can now steps through way more runtime code than it ever did before. This causes this test to occasionally fail. Stepping blindly through runtime code has never been particularly safe as the runtime can switch to a different goroutine causing Delve to misbehave. This change restores the previous behavior of TestIssue414 where Step behaved like Next inside runtime code.
-
由 Alessandro Arzilli 提交于
These methods only work if registers have been loaded once after the last resume, there's probably no code path that calls SetXX before Thread.Registers but lets make sure it can't happen anyway.
-
由 Alessandro Arzilli 提交于
DWARFv5 has a new format for the header, directory table and line table of the debug_line section.
-
- 21 7月, 2020 1 次提交
-
-
由 Bertram Truong 提交于
-
- 16 7月, 2020 3 次提交
-
-
由 chainhelen 提交于
Add nil check for v.LocationExpr and keep unreadable error of var. Fix #2049
-
由 aarzilli 提交于
Fully read compile units that contain nested entries we don't understand (such as DW_TAG_namespace) by keeping track of the depth we're at.
-
由 Alessandro Arzilli 提交于
Backport https://go-review.googlesource.com/c/go/+/158797 from upstream. Fixes #2101
-
- 10 7月, 2020 1 次提交
-
-
由 polinasok 提交于
Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 09 7月, 2020 1 次提交
-
-
由 polinasok 提交于
* service/dap: Support stackTraceDepth launch argument * Respond to review comments * Make DeepSource happy Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 02 7月, 2020 1 次提交
-
-
由 polinasok 提交于
* service/dap: Support stackTrace request * Minor tweaks * Address review comments * Fix grammar * Address review comments * Address review comments * Update comments Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 25 6月, 2020 1 次提交
-
-
由 Waleed Gadelkareem 提交于
-
- 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 提交于
-