- 16 9月, 2020 1 次提交
-
-
由 polinasok 提交于
* Support global variables * Respond to review comments * Clarify comment * Add more details to test error messages * Remove flaky main..inittask checks * Rename globals flag to match vscode-go * Normalize filepath with slash separator * Improve handling for unknown package * Tweak error message * More refactoring, normalization and error details to deal with Win test failures * Clean up optional launch args processing * Add CurrentPackage to debugger and use instead of ListPackagesBuildInfo Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
- 11 9月, 2020 1 次提交
-
-
由 hitzhangjie 提交于
Adds a -size argument to examinemem that specifies how to group bytes on output.
-
- 10 9月, 2020 4 次提交
-
-
由 aarzilli 提交于
Move the conversion of some 'proc' types from service/debugger into service/rpc1 and service/rpc2. The methods of service/debugger.(*Debugger) are also used by service/dap which requires these types to be converted differently and converting them twice is inefficent and doesn't make much sense. Updates #2161
-
由 Alessandro Arzilli 提交于
Fixes #2134
-
由 polinasok 提交于
Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
由 Alessandro Arzilli 提交于
Since proc is supposed to work independently from the target architecture it shouldn't use architecture-dependent types, like uintptr. For example when reading a 64bit core file on a 32bit architecture, uintptr will be 32bit but the addresses proc needs to represent will be 64bit.
-
- 09 9月, 2020 1 次提交
-
-
由 chainhelen 提交于
`sameFrameCond` should not be constructed as one `And Express` when `sameGCond` which is the first child of `BinaryExpr` is nil. Fixes: #2162
-
- 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 5 次提交
-
-
由 aarzilli 提交于
An internal breakpoint condition shouldn't ever error: * use a ThreadContext to evaluate conditions if a goroutine isn't available * evaluate runtime.curg to a fake g variable containing only `goid == 0` when there is no current goroutine Fixes #2113
-
由 Alessandro Arzilli 提交于
Recent changes to the way registers are handled broke reporting of AVX registers (i.e. YMMx). This change restores the functionality by: - concatenating the higher half of the YMMx registers to their corresponding XMMx lower half (YMMx registers do not have an independent DWARF register number) - modifying the formatSSEReg function to handle them when they are present. Fixes #2033
-
由 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
-
由 Alessandro Arzilli 提交于
Fixes #2138
-
- 28 8月, 2020 2 次提交
-
-
由 Alessandro Arzilli 提交于
(*gdbThread).StepInstruction is a single call to stepInstruction so inline it.
-
由 Poh Zi How 提交于
* Update ClientHowto.md * Update ClientHowto.md
-
- 25 8月, 2020 4 次提交
-
-
由 Alessandro Arzilli 提交于
If OnlyAddr is not set pretty printing an interface will fail with an index out of bounds error.
-
由 Alessandro Arzilli 提交于
* vendor: update starlark * terminal: use new mechanism to cancel starlark threads See: https://github.com/google/starlark-go/pull/298
-
由 polinasok 提交于
* Issue stopped event on runtime error when continuing * Support next, stepIn and stepOut * Refactor stop logic * Explicitely set AllThreadsContinued * Make DeepSource happy * Respond to review comments Co-authored-by: NPolina Sokolova <polinasok@users.noreply.github.com>
-
由 Aurken 提交于
-
- 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 2 次提交
-
-
由 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.
-