Skip to content

Commit 92c4905

Browse files
W-M-Rxiaoxiang781216
authored andcommitted
gcov: Output mode judgment is implemented in the kernel layer
Signed-off-by: wangmingrong1 <wangmingrong1@xiaomi.com>
1 parent dfbaedd commit 92c4905

File tree

1 file changed

+0
-15
lines changed

1 file changed

+0
-15
lines changed

system/gcov/gcov.c

Lines changed: 0 additions & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -63,7 +63,6 @@ int main(int argc, FAR char *argv[])
6363
{
6464
FAR const char *strip = CONFIG_COVERAGE_DEFAULT_PREFIX_STRIP;
6565
FAR const char *path = NULL;
66-
bool onefile = false;
6766
int option;
6867

6968
while ((option = getopt(argc, argv, "d::t:orh")) != ERROR)
@@ -91,20 +90,6 @@ int main(int argc, FAR char *argv[])
9190
}
9291
}
9392

94-
if (access(path, F_OK) == 0)
95-
{
96-
onefile = true;
97-
}
98-
99-
if (onefile)
100-
{
101-
setenv("GCOV_DUMP_ONEFILE", "1", 1);
102-
}
103-
else
104-
{
105-
setenv("GCOV_DUMP_ONEFILE", "0", 1);
106-
}
107-
10893
setenv("GCOV_PREFIX_STRIP", strip, 1);
10994
setenv("GCOV_PREFIX", path, 1);
11095
__gcov_dump();

0 commit comments

Comments
 (0)