cgo: add more information about gcc output parsing failures

R=r
https://golang.org/cl/152084
This commit is contained in:
Russ Cox 2009-11-11 16:58:27 -08:00
parent c3343ef62c
commit ae3341476d

View file

@ -96,6 +96,10 @@ func (p *Prog) loadDebugInfo() {
}
}
if nerrors > 0 {
fatal("failed to interpret gcc output:\n%s", stderr)
}
// Extract the types from the DWARF section of an object
// from a well-formed C program. Gcc only generates DWARF info
// for symbols in the object file, so it is not enough to print the