diff options
author | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-09-12 12:12:54 -0500 |
---|---|---|
committer | Joel Sherrill <joel.sherrill@oarcorp.com> | 2012-09-12 12:12:54 -0500 |
commit | 2625df491324c38dd087ff0d96871bb1e17f1f23 (patch) | |
tree | 751d3658822afd897e9ffef953e54acc9c39e07f /covoar | |
parent | ObjdumpProcessor.cc: Fix single NOP instructions for alignment bug (diff) | |
download | rtems-testing-2625df491324c38dd087ff0d96871bb1e17f1f23.tar.bz2 |
SymbolTable.cc: Improve diagnostics on method size mismatch
Diffstat (limited to 'covoar')
-rw-r--r-- | covoar/SymbolTable.cc | 11 |
1 files changed, 8 insertions, 3 deletions
diff --git a/covoar/SymbolTable.cc b/covoar/SymbolTable.cc index 8a575ee..062e0a3 100644 --- a/covoar/SymbolTable.cc +++ b/covoar/SymbolTable.cc @@ -45,12 +45,17 @@ namespace Coverage { symbolData.length = length; if ( info[ symbol ].empty() == false ) { - if ( info[symbol ].front().length != length ) { - fprintf(stderr, "ERROR==> Different lengths for the symbol %s\n", symbol.c_str() ); + if ( info[ symbol ].front().length != length ) { + fprintf(stderr, + "ERROR==> Different lengths for the symbol %s (%d and %d)\n", + symbol.c_str(), + info[ symbol ].front().length, + length + ); exit( 0 ); } } - + info[ symbol ].push_back( symbolData ); } |