[rtems-testing commit] SymbolTable.cc: Improve diagnostics on method size mismatch
Joel Sherrill
joel at rtems.org
Wed Sep 12 17:09:10 UTC 2012
Module: rtems-testing
Branch: master
Commit: 2625df491324c38dd087ff0d96871bb1e17f1f23
Changeset: http://git.rtems.org/rtems-testing/commit/?id=2625df491324c38dd087ff0d96871bb1e17f1f23
Author: Joel Sherrill <joel.sherrill at oarcorp.com>
Date: Wed Sep 12 12:12:54 2012 -0500
SymbolTable.cc: Improve diagnostics on method size mismatch
---
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 );
}
More information about the vc
mailing list