haiku/headers/private/kernel/debug.h
Axel Dörfler 564cba312e Some header work: removed unnecessary dependencies to stage2.h, fixed
some broken C++ export definitions, added missing licenses etc.


git-svn-id: file:///srv/svn/repos/haiku/trunk/current@3152 a95241bf-73f2-0310-859d-f6bbb57e9c96
2003-05-03 16:03:26 +00:00

36 lines
801 B
C
Executable File

/*
** Copyright 2001-2002, Travis Geiselbrecht. All rights reserved.
** Distributed under the terms of the NewOS License.
*/
#ifndef _KERNEL_DEBUG_H
#define _KERNEL_DEBUG_H
#include <kernel.h>
struct kernel_args;
extern int dbg_register_file[2][14]; /* XXXmpetit -- must be made generic */
int dbg_init(struct kernel_args *ka);
int dbg_init2(struct kernel_args *ka);
char dbg_putch(char c);
void dbg_puts(const char *s);
bool dbg_set_serial_debug(bool new_val);
bool dbg_get_serial_debug(void);
/* special return codes for kernel debugger command function*/
#define B_KDEBUG_CONT 2
#define B_KDEBUG_QUIT 3
#if DEBUG
# define ASSERT(x) \
if (x) {} else { panic("ASSERT FAILED (%s:%d): %s\n", __FILE__, __LINE__, #x); }
#else
# define ASSERT(x)
#endif
#endif /* _KERNEL_DEBUG_H */