You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@nuttx.apache.org by xi...@apache.org on 2022/08/26 15:58:37 UTC
[incubator-nuttx] branch master updated: sim: Added gcov dump on application exit.
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/incubator-nuttx.git
The following commit(s) were added to refs/heads/master by this push:
new 4b6d4de972 sim: Added gcov dump on application exit.
4b6d4de972 is described below
commit 4b6d4de972656dae881d5212c1d70113e1c4f3d1
Author: Fotis Panagiotopoulos <f....@amco.gr>
AuthorDate: Fri Aug 26 13:48:14 2022 +0300
sim: Added gcov dump on application exit.
---
arch/sim/src/sim/posix/up_hostmisc.c | 14 ++++++++++++++
1 file changed, 14 insertions(+)
diff --git a/arch/sim/src/sim/posix/up_hostmisc.c b/arch/sim/src/sim/posix/up_hostmisc.c
index 159aea197e..03e35e6490 100644
--- a/arch/sim/src/sim/posix/up_hostmisc.c
+++ b/arch/sim/src/sim/posix/up_hostmisc.c
@@ -26,6 +26,14 @@
#include "up_internal.h"
+/****************************************************************************
+ * Public Function Prototypes
+ ****************************************************************************/
+
+#ifdef CONFIG_ARCH_COVERAGE
+void __gcov_dump(void);
+#endif
+
/****************************************************************************
* Public Functions
****************************************************************************/
@@ -42,6 +50,12 @@
void host_abort(int status)
{
+#ifdef CONFIG_ARCH_COVERAGE
+ /* Dump gcov data. */
+
+ __gcov_dump();
+#endif
+
/* exit the simulation */
exit(status);