--- Gnu-Mach/kern/debug.h 2020/09/02 04:42:42 1.1.1.2 +++ Gnu-Mach/kern/debug.h 2020/09/02 04:45:13 1.1.1.3 @@ -30,7 +30,7 @@ #include /*XXX*/ -#ifdef DEBUG +#ifndef NDEBUG #define here() printf("@ %s:%d\n", __FILE__, __LINE__) #define message(args) ({ printf("@ %s:%d: ", __FILE__, __LINE__); printf args; printf("\n"); }) @@ -46,7 +46,7 @@ __FILE__, __LINE__, (p), (id), (p->struct_id)); \ }) -#else /* !DEBUG */ +#else /* NDEBUG */ #define otsan() @@ -55,6 +55,14 @@ #define struct_id_denit(p) #define struct_id_verify(p,id) -#endif /* !DEBUG */ +#endif /* NDEBUG */ + +extern void log (int level, const char *fmt, ...); + +extern void panic_init(void); +extern void panic (const char *s, ...) __attribute__ ((noreturn)); + +extern void SoftDebugger (char *message); +extern void Debugger (char *message) __attribute__ ((noreturn)); #endif /* _mach_debug__debug_ */