mirror of
https://github.com/go-delve/delve.git
synced 2025-11-02 21:40:22 +08:00
proc: remove dieToRuntimeType (#3985)
The dwarfToRuntimeType does basically the same thing in another way and doesn't have a bug with making unsigned comparisons that should be signed. It also does more things compared to dieToRuntimeType but it shouldn't matter since function call injection is very slow anyway. Fixes an intermittent bug on windows: https://delve.teamcity.com/buildConfiguration/Delve_windows_amd64_1_24/67152
This commit is contained in:
committed by
GitHub
parent
2d9dec034b
commit
2256460b28
@ -1266,7 +1266,7 @@ func (stack *evalStack) executeOp() {
|
||||
stack.push(newVariable(evalop.BreakpointHitCountVarNameQualified, fakeAddressUnresolv, godwarf.FakeSliceType(godwarf.FakeBasicType("uint", 64)), scope.BinInfo, scope.Mem))
|
||||
|
||||
case *evalop.PushRuntimeType:
|
||||
typeAddr, err := dieToRuntimeType(scope.BinInfo, scope.Mem, op.Type)
|
||||
typeAddr, _, _, err := dwarfToRuntimeType(scope.BinInfo, scope.Mem, op.Type)
|
||||
if err != nil {
|
||||
stack.err = err
|
||||
break
|
||||
|
||||
Reference in New Issue
Block a user