diff options
author | mikron@c-130be253.1238-1-64736c10.cust.bredbandsbolaget.se <> | 2006-02-03 18:05:31 +0100 |
---|---|---|
committer | mikron@c-130be253.1238-1-64736c10.cust.bredbandsbolaget.se <> | 2006-02-03 18:05:31 +0100 |
commit | 981454b31332dc5136e83f9199e1a3dcc00f6dd3 (patch) | |
tree | 4f0c1a2b2c50a948cee028ce2286fceeca5d8a2a /include | |
parent | edb8811f03f0972236ae2a847bb998099d2226cc (diff) | |
download | mariadb-git-981454b31332dc5136e83f9199e1a3dcc00f6dd3.tar.gz |
WL 2826: Eigth step
Inserted monty patch to allow for adding and dropping
DBUG keywords per thread
Diffstat (limited to 'include')
-rw-r--r-- | include/my_dbug.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/include/my_dbug.h b/include/my_dbug.h index f20ba696a95..ac6eec46716 100644 --- a/include/my_dbug.h +++ b/include/my_dbug.h @@ -24,8 +24,10 @@ extern "C" { extern int _db_on_,_no_db_; extern FILE *_db_fp_; extern char *_db_process_; -extern int _db_keyword_(const char *keyword); +extern int _db_keyword_(const char *keyword); extern int _db_strict_keyword_(const char *keyword); +extern int _db_add_strict_keyword_(const char *keyword); +extern int _db_del_strict_keyword_(const char *keyword); extern void _db_setjmp_(void); extern void _db_longjmp_(void); extern void _db_push_(const char *control); @@ -76,6 +78,8 @@ extern void _db_unlock_file(void); (_db_on_ ? ((_db_strict_keyword_ (keyword)) ? ((a1), 0) : 0) : 0) #define DBUG_COND(keyword) \ ((_db_on_ && _db_strict_keyword_ (keyword)) ? 1 : 0) +#define DBUG_ADD_KEYWORD(key) _db_add_strict_keyword_(key) +#define DBUG_DEL_KEYWORD(key) _db_del_strict_keyword_(key) #else /* No debugger */ #define DBUG_ENTER(a1) @@ -85,6 +89,8 @@ extern void _db_unlock_file(void); #define DBUG_EXECUTE_IF(keyword,a1) {} #define DBUG_EXECUTE_COND(keyword, a1) 0 #define DBUG_COND(keyword) 0 +#define DBUG_ADD_KEYWORD(key) +#define DBUG_DEL_KEYWORD(key) #define DBUG_PRINT(keyword,arglist) {} #define DBUG_PUSH(a1) {} #define DBUG_POP() {} |