mirror of
https://github.com/golang/go.git
synced 2025-12-08 06:10:04 +00:00
cgo: add more information about gcc output parsing failures
R=r https://golang.org/cl/152084
This commit is contained in:
parent
c3343ef62c
commit
ae3341476d
1 changed files with 4 additions and 0 deletions
|
|
@ -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
|
// Extract the types from the DWARF section of an object
|
||||||
// from a well-formed C program. Gcc only generates DWARF info
|
// 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
|
// for symbols in the object file, so it is not enough to print the
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue