summaryrefslogtreecommitdiff
path: root/include/my_dbug.h
diff options
context:
space:
mode:
authorunknown <serg@janus.mylan>2008-02-06 20:01:55 +0100
committerunknown <serg@janus.mylan>2008-02-06 20:01:55 +0100
commit518caf1dff5c249ac52082753d155ba2c5cfd8d6 (patch)
treec8a4faae4c20432c86c3c203385ee3e93254d5f0 /include/my_dbug.h
parentc04dd35982cd8da63de2bd0aaff0e42ab34add4e (diff)
downloadmariadb-git-518caf1dff5c249ac52082753d155ba2c5cfd8d6.tar.gz
dbug/dbug.c
dbug naming conventions dbug/user.r unification, documenting DBUG_ABORT() include/my_dbug.h DBUG_ABORT() sql/mysqld.cc remove redundant option (--enable-debug and --disable-debug should be used instead) dbug/dbug.c: dbug naming conventions dbug/user.r: unification, documenting DBUG_ABORT() include/my_dbug.h: DBUG_ABORT() sql/mysqld.cc: remove redundant option (--enable-debug and --disable-debug should be used instead)
Diffstat (limited to 'include/my_dbug.h')
-rw-r--r--include/my_dbug.h3
1 files changed, 2 insertions, 1 deletions
diff --git a/include/my_dbug.h b/include/my_dbug.h
index a9611b05f0a..d6d76f0b418 100644
--- a/include/my_dbug.h
+++ b/include/my_dbug.h
@@ -52,6 +52,7 @@ extern void _db_end_(void);
extern void _db_lock_file_(void);
extern void _db_unlock_file_(void);
extern FILE *_db_fp_(void);
+extern void _db_flush_();
#define DBUG_ENTER(a) struct _db_stack_frame_ _db_stack_frame_; \
_db_enter_ (a,__FILE__,__LINE__,&_db_stack_frame_)
@@ -86,7 +87,7 @@ extern FILE *_db_fp_(void);
#define DEBUGGER_OFF do { _dbug_on_= 0; } while(0)
#define DEBUGGER_ON do { _dbug_on_= 1; } while(0)
#define IF_DBUG(A) A
-#define DBUG_ABORT() ((void)fflush(DBUG_FILE), abort())
+#define DBUG_ABORT() (_db_flush_(), abort())
#else /* No debugger */
#define DBUG_ENTER(a1)