This is an automated email from the ASF dual-hosted git repository.

xiaoxiang pushed a commit to branch master
in repository https://gitbox.apache.org/repos/asf/nuttx-apps.git

commit 92c490579db2e6cbeb9f9362e3d6df1f9cd5cabb
Author: wangmingrong1 <[email protected]>
AuthorDate: Mon Mar 31 15:59:28 2025 +0800

    gcov: Output mode judgment is implemented in the kernel layer
    
    Signed-off-by: wangmingrong1 <[email protected]>
---
 system/gcov/gcov.c | 15 ---------------
 1 file changed, 15 deletions(-)

diff --git a/system/gcov/gcov.c b/system/gcov/gcov.c
index c71c84761..b317cbb28 100644
--- a/system/gcov/gcov.c
+++ b/system/gcov/gcov.c
@@ -63,7 +63,6 @@ int main(int argc, FAR char *argv[])
 {
   FAR const char *strip = CONFIG_COVERAGE_DEFAULT_PREFIX_STRIP;
   FAR const char *path = NULL;
-  bool onefile = false;
   int option;
 
   while ((option = getopt(argc, argv, "d::t:orh")) != ERROR)
@@ -91,20 +90,6 @@ int main(int argc, FAR char *argv[])
         }
     }
 
-  if (access(path, F_OK) == 0)
-    {
-      onefile = true;
-    }
-
-  if (onefile)
-    {
-      setenv("GCOV_DUMP_ONEFILE", "1", 1);
-    }
-  else
-    {
-      setenv("GCOV_DUMP_ONEFILE", "0", 1);
-    }
-
   setenv("GCOV_PREFIX_STRIP", strip, 1);
   setenv("GCOV_PREFIX", path, 1);
   __gcov_dump();

Reply via email to