[PATCH 1/2] covoar/ObjdumpProcessor.cc: Add processing for ... padding notation w/hack

Joel Sherrill joel at rtems.org
Thu May 24 00:07:57 UTC 2018


---
 tester/covoar/ObjdumpProcessor.cc | 22 ++++++++++++++++++++++
 1 file changed, 22 insertions(+)

diff --git a/tester/covoar/ObjdumpProcessor.cc b/tester/covoar/ObjdumpProcessor.cc
index d41906c..183722b 100644
--- a/tester/covoar/ObjdumpProcessor.cc
+++ b/tester/covoar/ObjdumpProcessor.cc
@@ -384,6 +384,28 @@ namespace Coverage {
         break;
       }
 
+      // This string indicates a block of padding at the end of a method
+      if (!strncmp(line.c_str(), "\t...", 4)) {
+        // If we are currently processing a symbol, finalize it.
+        if (processSymbol) {
+          endAddress = executableInformation->getLoadAddress() + offset - 1;
+          endAddress += 4; // XXX SPARC TMP HACK
+          finalizeSymbol(
+            executableInformation,
+            currentSymbol,
+            startAddress,
+            endAddress,
+            theInstructions
+          );
+          // Clear out processing of this symbol.
+          startAddress = 0;
+          currentSymbol = "";
+          processSymbol = false;
+          theInstructions.clear();
+        }
+        continue;
+      }
+
       lineInfo.line          = line;
       lineInfo.address       = 0xffffffff;
       lineInfo.isInstruction = false;
-- 
1.8.3.1



More information about the devel mailing list