summaryrefslogtreecommitdiff
path: root/dbug
diff options
context:
space:
mode:
authorOleksandr Byelkin <sanja@mariadb.com>2023-02-06 20:18:44 +0100
committerOleksandr Byelkin <sanja@mariadb.com>2023-02-06 20:18:44 +0100
commit70a515df434a57709eaf69f451c22739d7908ba4 (patch)
tree04630c357d661ceeacf991523c6d329736fa4441 /dbug
parent4c79e15cc3716f69c044d4287ad2160da8101cdc (diff)
parent80ae69c8bc948382920b083ba203369e941cc90e (diff)
downloadmariadb-git-70a515df434a57709eaf69f451c22739d7908ba4.tar.gz
Merge branch '10.6.12' into 10.6
Diffstat (limited to 'dbug')
-rw-r--r--dbug/dbug.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dbug/dbug.c b/dbug/dbug.c
index 54d4c22ad93..ac645c64454 100644
--- a/dbug/dbug.c
+++ b/dbug/dbug.c
@@ -86,7 +86,7 @@
#include <m_string.h>
#include <errno.h>
#ifdef HAVE_gcov
-extern void __gcov_flush();
+#include <gcov.h>
#endif
#ifndef DBUG_OFF
@@ -2212,7 +2212,7 @@ void _db_suicide_()
fprintf(stderr, "SIGKILL myself\n");
fflush(stderr);
#ifdef HAVE_gcov
- __gcov_flush();
+ __gcov_dump();
#endif
retval= kill(getpid(), SIGKILL);
@@ -2262,7 +2262,7 @@ my_bool _db_my_assert(const char *file, int line, const char *msg)
fprintf(stderr, "%s:%d: assert: %s\n", file, line, msg);
fflush(stderr);
#ifdef HAVE_gcov
- __gcov_flush();
+ __gcov_dump();
#endif
}
return a;