mirror of
git://gcc.gnu.org/git/gcc.git
synced 2025-01-10 20:55:23 +08:00
re PR go/64683 (FAIL: runtime/pprof -- testing.go:278: The entry did not match)
PR go/64683 runtime/pprof: Assume function with no name is in runtime. GCC PR 65797 causes some of the runtime functions to be compiled with no name in the debug info. This in turn causes the runtime/pprof test to fail as reported in GCC PR 64683. There are no good choices when a function has no name in the debug info, but here we assume that if we see such a function while reading the runtime functions, we assume that it is also a runtime function. From-SVN: r222200
This commit is contained in:
parent
5fdb119fd5
commit
d6c2d7c1ca
@ -351,6 +351,10 @@ func printStackRecord(w io.Writer, stk []uintptr, allFrames bool) {
|
||||
if !show && !strings.Contains(name, ".") && strings.HasPrefix(name, "__go_") {
|
||||
continue
|
||||
}
|
||||
if !show && name == "" {
|
||||
// This can happen due to http://gcc.gnu.org/PR65797.
|
||||
continue
|
||||
}
|
||||
show = true
|
||||
fmt.Fprintf(w, "#\t%#x\t%s+%#x\t%s:%d\n", pc, name, pc-f.Entry(), file, line)
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user