#include <my_global.h>
#include <m_string.h>
#include <errno.h>
#include <stdarg.h>
Clases |
| struct | link |
| struct | state |
| struct | st_code_state |
'defines' |
| #define | _DBUG_START_CONDITION_ "" |
| #define | EOS '\000' |
| #define | PRINTBUF 1024 |
| #define | INDENT 2 |
| #define | MAXDEPTH 200 |
| #define | TRACE_ON 000001 |
| #define | DEBUG_ON 000002 |
| #define | FILE_ON 000004 |
| #define | LINE_ON 000010 |
| #define | DEPTH_ON 000020 |
| #define | PROCESS_ON 000040 |
| #define | NUMBER_ON 000100 |
| #define | PROFILE_ON 000200 |
| #define | PID_ON 000400 |
| #define | SANITY_CHECK_ON 001000 |
| #define | FLUSH_ON_WRITE 002000 |
| #define | TRACING (stack -> flags & TRACE_ON) |
| #define | DEBUGGING (stack -> flags & DEBUG_ON) |
| #define | PROFILING (stack -> flags & PROFILE_ON) |
| #define | STREQ(a, b) (strcmp(a,b) == 0) |
| #define | IMPORT extern |
| #define | EXPORT |
| #define | AUTO auto |
| #define | REGISTER register |
| #define | PROF_FILE "dbugmon.out" |
| #define | PROF_EFMT "E\t%ld\t%s\n" |
| #define | PROF_SFMT "S\t%lx\t%lx\t%s\n" |
| #define | PROF_XFMT "X\t%ld\t%s\n" |
| #define | ERR_MISSING_RETURN "%s: missing DBUG_RETURN or DBUG_VOID_RETURN macro in function \"%s\"\n" |
| #define | ERR_OPEN "%s: can't open debug output stream \"%s\": " |
| #define | ERR_CLOSE "%s: can't close debug file: " |
| #define | ERR_ABORT "%s: debugger aborting because %s\n" |
| #define | ERR_CHOWN "%s: can't change owner/group of \"%s\": " |
| #define | EXISTS(pathname) (FALSE) |
| #define | Writable(name) (TRUE) |
| #define | ChangeOwner(name) |
| #define | init_dbug_state() |
| #define | code_state() (&static_code_state) |
| #define | pthread_mutex_lock(A) {} |
| #define | pthread_mutex_unlock(A) {} |
'typedefs' |
| typedef int | BOOLEAN |
| typedef struct st_code_state | CODE_STATE |
Funciones |
| IMPORT int | _sanity (const char *file, uint line) |
| void | _db_push_ (const char *control) |
| void | _db_pop_ () |
| void | _db_enter_ (const char *_func_, const char *_file_, uint _line_, const char **_sfunc_, const char **_sfile_, uint *_slevel_, char ***_sframep_ __attribute__((unused))) |
| void | _db_return_ (uint _line_, const char **_sfunc_, const char **_sfile_, uint *_slevel_) |
| void | _db_pargs_ (uint _line_, const char *keyword) |
| void | _db_doprnt_ (const char *format,...) |
| void | _db_dump_ (uint _line_, const char *keyword, const char *memory, uint length) |
| void | _db_output_ (uint flag) |
| BOOLEAN | _db_keyword_ (const char *keyword) |
| void | _db_lock_file () |
| void | _db_unlock_file () |
Variables |
| EXPORT FILE * | _db_fp_ = (FILE *) 0 |
| EXPORT char * | _db_process_ = "dbug" |
| EXPORT FILE * | _db_pfp_ = (FILE *)0 |
| EXPORT BOOLEAN | _db_on_ = FALSE |
| EXPORT BOOLEAN | _db_pon_ = FALSE |
| EXPORT BOOLEAN | _no_db_ = FALSE |
Documentación de los 'defines'
| #define _DBUG_START_CONDITION_ "" |
| #define ChangeOwner |
( |
|
name | ) |
|
| #define code_state |
( |
| ) |
(&static_code_state) |
| #define DEBUGGING (stack -> flags & DEBUG_ON) |
| #define ERR_ABORT "%s: debugger aborting because %s\n" |
| #define ERR_CHOWN "%s: can't change owner/group of \"%s\": " |
| #define ERR_CLOSE "%s: can't close debug file: " |
| #define ERR_MISSING_RETURN "%s: missing DBUG_RETURN or DBUG_VOID_RETURN macro in function \"%s\"\n" |
| #define ERR_OPEN "%s: can't open debug output stream \"%s\": " |
| #define EXISTS |
( |
|
pathname | ) |
(FALSE) |
| #define FLUSH_ON_WRITE 002000 |
| #define init_dbug_state |
( |
| ) |
|
| #define PROCESS_ON 000040 |
| #define PROF_EFMT "E\t%ld\t%s\n" |
| #define PROF_FILE "dbugmon.out" |
| #define PROF_SFMT "S\t%lx\t%lx\t%s\n" |
| #define PROF_XFMT "X\t%ld\t%s\n" |
| #define PROFILE_ON 000200 |
| #define PROFILING (stack -> flags & PROFILE_ON) |
| #define pthread_mutex_lock |
( |
|
A | ) |
{} |
| #define pthread_mutex_unlock |
( |
|
A | ) |
{} |
| #define REGISTER register |
| #define SANITY_CHECK_ON 001000 |
| #define STREQ |
( |
|
a, |
|
|
|
b |
|
) |
| (strcmp(a,b) == 0) |
| #define TRACING (stack -> flags & TRACE_ON) |
| #define Writable |
( |
|
name | ) |
(TRUE) |
Documentación de los 'typedefs'
Documentación de las funciones
| void _db_doprnt_ |
( |
const char * |
format, |
|
|
|
... |
|
) |
| |
| void _db_dump_ |
( |
uint |
_line_, |
|
|
const char * |
keyword, |
|
|
const char * |
memory, |
|
|
uint |
length |
|
) |
| |
| void _db_enter_ |
( |
const char * |
_func_, |
|
|
const char * |
_file_, |
|
|
uint |
_line_, |
|
|
const char ** |
_sfunc_, |
|
|
const char ** |
_sfile_, |
|
|
uint * |
_slevel_, |
|
|
char ***_sframep_ |
__attribute__(unused) |
|
) |
| |
| BOOLEAN _db_keyword_ |
( |
const char * |
keyword | ) |
|
| void _db_lock_file |
( |
void |
| ) |
|
| void _db_output_ |
( |
uint |
flag | ) |
|
| void _db_pargs_ |
( |
uint |
_line_, |
|
|
const char * |
keyword |
|
) |
| |
| void _db_push_ |
( |
const char * |
control | ) |
|
| void _db_return_ |
( |
uint |
_line_, |
|
|
const char ** |
_sfunc_, |
|
|
const char ** |
_sfile_, |
|
|
uint * |
_slevel_ |
|
) |
| |
| void _db_unlock_file |
( |
void |
| ) |
|
| IMPORT int _sanity |
( |
const char * |
file, |
|
|
uint |
line |
|
) |
| |
Documentación de las variables