]> git.proxmox.com Git - mirror_qemu.git/blobdiff - linux-user/exit.c
minikconf: do not include variables from MINIKCONF_ARGS in config-all-devices.mak
[mirror_qemu.git] / linux-user / exit.c
index aed8713fae341699a276ed25fbb9e83661f81b12..bdda7205532e802c4a01f132ea53602b6bbdc699 100644 (file)
  */
 #include "qemu/osdep.h"
 #include "qemu.h"
+#ifdef TARGET_GPROF
+#include <sys/gmon.h>
+#endif
+
+#ifdef CONFIG_GCOV
+extern void __gcov_dump(void);
+#endif
 
 void preexit_cleanup(CPUArchState *env, int code)
 {
 #ifdef TARGET_GPROF
         _mcleanup();
+#endif
+#ifdef CONFIG_GCOV
+        __gcov_dump();
 #endif
         gdb_exit(env, code);
 }