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:
Alessandro Arzilli
2025-04-14 18:26:23 +02:00
committed by GitHub
parent 2d9dec034b
commit 2256460b28
3 changed files with 1 additions and 32 deletions

View File

@ -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