[PATCH] Covoar : remove lib parsing as the support is shifted to coverage script

Vijay Kumar Banerjee vijaykumar9597 at gmail.com
Tue Oct 16 03:37:35 UTC 2018


---
 tester/covoar/DesiredSymbols.cc | 16 +++++++---------
 1 file changed, 7 insertions(+), 9 deletions(-)

diff --git a/tester/covoar/DesiredSymbols.cc b/tester/covoar/DesiredSymbols.cc
index 60d22c3..94ab562 100644
--- a/tester/covoar/DesiredSymbols.cc
+++ b/tester/covoar/DesiredSymbols.cc
@@ -55,10 +55,10 @@ namespace Coverage {
     // For each set read the libraries from the configuration file and load.
     //
     //  [A]
-    //  libraries = @BUILD-PREFIX@/c/@BSP@/A/libA.a
+    //  libraries = @BUILD-PREFIX@/c/@BSP@/A
     //
     //  [B]
-    //  libraries = @BUILD-PREFIX@/c/@BSP@/B/libB.a
+    //  libraries = @BUILD-PREFIX@/c/@BSP@/B
     //
     try {
       cache.open();
@@ -79,14 +79,12 @@ namespace Coverage {
         if (verbose)
           std::cerr << " Symbol set: " << set << std::endl;
         const rld::config::section& set_section = config.get_section(set);
-        rld::strings libs;
-        rld::config::parse_items (set_section, "libraries", libs, true);
-        for (std::string lib : libs) {
-          lib = rld::find_replace(lib, "@BUILD-TARGET@", buildTarget);
-          lib = rld::find_replace(lib, "@BSP@", buildBSP);
+        rld::strings objs;
+        rld::config::parse_items (set_section, "libraries", objs, true);
+        for (std::string obj : objs) {
           if (verbose)
-            std::cerr << " Loading library: " << lib << std::endl;
-          cache.add(lib);
+            std::cerr << " Loading Object: " << obj << std::endl;
+          cache.add(obj);
         }
       }
 
-- 
2.17.2



More information about the devel mailing list