- 28 11月, 2019 8 次提交
-
-
由 hengwu0 提交于
* remove skip-code of some arm64 tests, which implemented. * fix errors in testsuits for arm64
-
由 hengwu0 提交于
arm64 use hardware breakpoint, and it will not set PC to the next instruction like amd64. Let adjustPC always fasle in arm64, in case of infinite loop.
-
由 hengwu0 提交于
-
由 hengwu0 提交于
Skip the failed tests that don't work on arm64.
-
由 jim 提交于
PtraceSingleStep cannot step over BRK instruction(linux-arm64 feature or kernel bug maybe). GDB has the same question too, it will hang on forever with c command or execute that instruction indefinitely with s,si command. SetPC+BreakpointSize to jump over BRK to prevent repeating the instruction indefinitely. Co-authored-by: Ntykcd996 <tang.yuke@zte.com.cn> Co-authored-by: Nhengwu0 <wu.heng@zte.com.cn>
-
由 hengwu0 提交于
* delve now can be built to arm64-arch and running on linux-arm64 OS. * arm64 general-purpose registers have completed. * arm64 disasm has completed. Co-authored-by: Ntykcd996 <tang.yuke@zte.com.cn> Co-authored-by: Nhengwu0 <wu.heng@zte.com.cn>
-
由 hengwu0 提交于
As proc/native is arch related, it should move some functions to arch-relate file. And this patch can help us to separate the architecture code, make code tidy. So that the merge of arm64 code later will not cause chaos.(#118)
-
由 hengwu0 提交于
the tracee may coredumped after detach: trace/breakpoint trap (core dumped).
-
- 26 11月, 2019 3 次提交
-
-
由 Alessandro Arzilli 提交于
Use the name specified by compile unit attribute DW_AT_go_package_name, introduced in Go 1.13, to map package names to package paths, instead of trying to deduce it from names of types. Also use this mapping for resolving global variables and function expressions.
-
由 Alessandro Arzilli 提交于
We used to not do anything say anything at all about them anyway.
-
由 Michael Stapelberg 提交于
This prevents other users on the same machine (e.g. a production server) from using dlv under the credentials of another user, which poses a security issue.
-
- 14 11月, 2019 2 次提交
-
-
由 nd 提交于
This allows to execute and debug signal handlers in inferior.
-
由 Derek Parker 提交于
Move the loclist code out of proc and into its own package in `pkg/dwarf`.
-
- 12 11月, 2019 2 次提交
-
-
由 Alessandro Arzilli 提交于
* Makefile: discard stderr of "go list" In module mode "go" will print messages about downloading modules to stderr, we shouldn't confuse them for the real command output. * proc/core: enable PIE tests PIE tests for core files were never enabled due to a missing flag.Parse call.
-
由 Alessandro Arzilli 提交于
* proc/linux: do not route signals to threads while stopping While we are trying to stop the process we should not route signals sent to threads because that will result in threads being resumed. Also keep better track of which threads are stopped. This fixes an incompatibility with Go 1.14, which sends a lot of signals to its threads to implement non-cooperative preemption, resulting in Delve hanging waiting for an already-stopped thread to stop. In principle however this bug has nothing to do with Go 1.14 and could manifest in any instance of high signal pressure. * Makefile: discard stderr of "go list" In module mode "go" will print messages about downloading modules to stderr, we shouldn't confuse them for the real command output.
-
- 09 11月, 2019 1 次提交
-
-
由 Alessandro Arzilli 提交于
Instead of just sending unhandled signals back to the process send them to the specific thread that received them. This is important because: 1. debugserver does not appear to support the vCont;CXX packet without specifying a target thread 2. the non-cooperative preemption change in an upcoming version of Go (1.15?) will require sending signals to a specific thread. Fixes #1744
-
- 05 11月, 2019 1 次提交
-
-
由 Alessandro Arzilli 提交于
Changes CreateBreakpoint to create a logical breakpoint when multiple addresses are specified, FindLocation and the api.Location type to return logical locations and the cli to support logical breakpoints.
-
- 02 11月, 2019 1 次提交
-
-
由 Alessandro Arzilli 提交于
Modifies FindFileLocation, FindFunctionLocation and LineToPC as well as service/debugger to support inlining and introduces the concept of logical breakpoints. For inlined functions FindFileLocation, FindFunctionLocation and LineToPC will now return one PC address for each inlining and one PC for the concrete implementation of the function (if present). A proc.Breakpoint will continue to represent a physical breakpoint, at a single memory location. Breakpoints returned by service/debugger, however, will represent logical breakpoints and may be associated with multiple memory locations and, therefore, multiple proc.Breakpoints. The necessary logic is introduced in service/debugger so that a change to a logical breakpoint will be mirrored to all its physical breakpoints and physical breakpoints are aggregated into a single logical breakpoint when returned.
-
- 30 10月, 2019 1 次提交
-
-
由 Alan Yee 提交于
Maintain naming convention
-
- 29 10月, 2019 2 次提交
-
-
由 aarzilli 提交于
program When evaluating type casts always resolve array types. Instead of resolving them by looking up the string in debug_info construct a fake array type so that a type cast to an array type always works as long as the element type exists. We already did this for byte arrays, this commit extends this to any array type. The reason is that we return a fake array type (that doesn't exist in the target program) for the array of a channel type. Fixes #1736
-
由 Alessandro Arzilli 提交于
Fixes a case of breakpoint confusion on resume caused by having two breakpoints one byte apart. This bug can cause the target program to resume execution a single byte inside an instruction and crash either with SIGILL or a SIGSEGV, or misbehave (depending on how the truncated instruction is decoded). native.(*Thread).StepInstruction should call FindBreakpoint using adjustPC==false because at that point the PC of the thread should already have been adjusted (and it has been).
-
- 26 10月, 2019 2 次提交
-
-
由 Alessandro Arzilli 提交于
This script re-runs a program until it fails or hits a breakpoint, it is useful for debugging non-deterministic problems when used in conjunction with rr.
-
由 Alessandro Arzilli 提交于
Make the 'list' command succeed for file:line expressions that don't map to any instruction. Adds an argument to the FindLocations API call that makes FindLocations return if the expression can be parsed, even if it doesn't end up matching any instruction in debug_line.
-
- 23 10月, 2019 2 次提交
-
-
由 Alessandro Arzilli 提交于
Fixes #1713
-
由 Derek Parker 提交于
Thanks to everyone who contributed!
-
- 22 10月, 2019 5 次提交
-
-
由 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.
-
由 Alessandro Arzilli 提交于
Updates #1711
-
由 Alessandro Arzilli 提交于
-
由 Alessandro Arzilli 提交于
Avoid crashing with nil pointer dereference, signal error instead. Fixes #1720
-
由 TerrySolar 提交于
-
- 08 10月, 2019 7 次提交
-
-
由 Alessandro Arzilli 提交于
A compile unit can produce a debug_line program consisting of multiple sequences according to the DWARF standard. The standard guarantees that addresses monotonically increment within a single sequence but different sequences may not follow this rule. This commit changes dwarf/line (in particular PCToLine and AllPCsBetween) to support debug_line sections containing units with multiple sequences. TestPCToLine needs to be changed so that it picks valid addresses (i.e. addresses covered by a sequence) as values for basePC, instead of just rounding. Fixes #1694
-
由 Alessandro Arzilli 提交于
Splits the code that loads function information from debug_info into multiple functions. This makes the changes needed to implement logical breakpoints easier to make.
-
由 Alun Evans 提交于
* Fix starlark map iteration for maps > 64 entries * Fix TestMapEvaluation
-
由 chainhelen 提交于
The origin error message is confusing, so add some details. Fixes #1700
-
由 Alessandro Arzilli 提交于
The Disassemble API call should work when there is no selected goroutine (for example because the program was just started). Fixes #1703
-
由 Cody Kaup 提交于
-
由 Alessandro Arzilli 提交于
It was failing silently.
-
- 26 9月, 2019 3 次提交
-
-
由 chainhelen 提交于
`func (v *Variable) findMethod` should support for searching methods of an embedded filed. Fixes #1688
-
由 Alessandro Arzilli 提交于
Trust argument order to determine argument frame layout when calling functions, this allows calling optimized functions and removes the special cases for runtime.mallocgc. Fixes #1589
-
由 Alessandro Arzilli 提交于
Add options to start a stacktrace from the values saved in the runtime.g struct as well as a way to disable the stackSwitch logic and just get a normal stacktrace.
-