abi_symbols: handle symbols without value

Fixes #3456
This commit is contained in:
Christian Prochaska 2019-07-18 15:08:32 +02:00 committed by Christian Helmuth
parent 1f56ffa51a
commit 2fad5eff95
1 changed files with 2 additions and 2 deletions

View File

@ -39,8 +39,8 @@ foreach line [split $symbols "\n"] {
# match undefined symbol
if {![regexp {^(\w+) U\s*$} $line dummy name]} {
# match defined symbol, which does not always feature a size value
if {![regexp {^([\w.]+) (\w) \w+ ?(\w*)$} $line dummy name type size_hex]} {
# match defined symbol, which does not always feature a value or size
if {![regexp {^([\w.]+) (\w) *\w* ?(\w*)$} $line dummy name type size_hex]} {
puts stderr "Error: unexpected format of line: $line"
exit -1
}