summaryrefslogtreecommitdiff
path: root/include/my_dbug.h
diff options
context:
space:
mode:
authormonty@mysql.com <>2004-11-10 18:07:39 +0200
committermonty@mysql.com <>2004-11-10 18:07:39 +0200
commitc7e85ef9b9a43db87899e172a621af44cf6add4c (patch)
tree60f8373ec30a2ed262c9a3d17d596cb7897a54d3 /include/my_dbug.h
parente9d9ca83f1f14b4de0a6408c8e1266a2dc227f9e (diff)
downloadmariadb-git-c7e85ef9b9a43db87899e172a621af44cf6add4c.tar.gz
More debugging
Print position in normal log for Binlog dump
Diffstat (limited to 'include/my_dbug.h')
-rw-r--r--include/my_dbug.h3
1 files changed, 3 insertions, 0 deletions
diff --git a/include/my_dbug.h b/include/my_dbug.h
index 9174a8b1ef9..711ece4335c 100644
--- a/include/my_dbug.h
+++ b/include/my_dbug.h
@@ -38,6 +38,7 @@ extern void _db_pargs_(uint _line_,const char *keyword);
extern void _db_doprnt_ _VARARGS((const char *format,...));
extern void _db_dump_(uint _line_,const char *keyword,const char *memory,
uint length);
+extern void _db_output_();
extern void _db_lock_file();
extern void _db_unlock_file();
@@ -66,6 +67,7 @@ extern void _db_unlock_file();
#define DEBUGGER_ON _no_db_=0
#define DBUG_LOCK_FILE { _db_lock_file(); }
#define DBUG_UNLOCK_FILE { _db_unlock_file(); }
+#define DBUG_OUTPUT(A) { _db_output_(A); }
#define DBUG_ASSERT(A) assert(A)
#else /* No debugger */
@@ -86,6 +88,7 @@ extern void _db_unlock_file();
#define DEBUGGER_ON
#define DBUG_LOCK_FILE
#define DBUG_UNLOCK_FILE
+#define DBUG_OUTPUT(A)
#define DBUG_ASSERT(A) {}
#endif
#ifdef __cplusplus