summaryrefslogtreecommitdiffstats
path: root/covoar
diff options
context:
space:
mode:
authorJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-12 12:12:54 -0500
committerJoel Sherrill <joel.sherrill@oarcorp.com>2012-09-12 12:12:54 -0500
commit2625df491324c38dd087ff0d96871bb1e17f1f23 (patch)
tree751d3658822afd897e9ffef953e54acc9c39e07f /covoar
parentObjdumpProcessor.cc: Fix single NOP instructions for alignment bug (diff)
downloadrtems-testing-2625df491324c38dd087ff0d96871bb1e17f1f23.tar.bz2
SymbolTable.cc: Improve diagnostics on method size mismatch
Diffstat (limited to 'covoar')
-rw-r--r--covoar/SymbolTable.cc11
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 );
}