You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go version devel +ae10914 Tue Mar 20 09:44:50 2018 +0000 linux/amd64
If I compile the following:
package main
import "fmt"
func inlineThis(a int) int {
z := a * a
return z + a/a
}
func initialize(a, b *int) {
*a = 3
*b = 4
}
func main() {
var a, b int
initialize(&a, &b)
a = inlineThis(a)
b = inlineThis(b)
fmt.Printf("%d %d\n", a, b)
}
with -gcflags='-N' the DIE for main.inlineThis is:
b3cb740 does indeed look like the bad commit. I am testing a fix.
I wish it were easier to write regression tests in this arena...
ALTree
changed the title
cmd/compile: Missing variables in debug_info for inlined subroutines [debugging]
cmd/compile: missing variables in debug_info for inlined subroutines
Mar 20, 2018
go version devel +ae10914 Tue Mar 20 09:44:50 2018 +0000 linux/amd64
If I compile the following:
with
-gcflags='-N'
the DIE for main.inlineThis is:which doesn't have any local variables/parameters and neither do the corresponding DW_TAG_inlined_subroutine entries.
while with 1.10 I got:
Bisect says b3cb740 is the first bad commit. However that commit seems pretty tame, I'm not sure what's going on.
cc @heschik @thanm
The text was updated successfully, but these errors were encountered: