mirror of
https://review.haiku-os.org/haiku
synced 2025-02-22 13:38:56 +01:00
remove_debugger_command() added. Fix cmd_gdb() prototype according to new debugger command one. git-svn-id: file:///srv/svn/repos/haiku/trunk/current@290 a95241bf-73f2-0310-859d-f6bbb57e9c96
34 lines
1001 B
C
Executable File
34 lines
1001 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>
|
|
#include <stage2.h>
|
|
#include <cdefs.h>
|
|
|
|
extern int dbg_register_file[2][14]; /* XXXmpetit -- must be made generic */
|
|
|
|
int dbg_init(kernel_args *ka);
|
|
int dbg_init2(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);
|
|
int dprintf(const char *fmt, ...) __PRINTFLIKE(1,2);
|
|
int panic(const char *fmt, ...) __PRINTFLIKE(1,2);
|
|
void kernel_debugger(const char *);
|
|
|
|
/* special return codes for kernel debugger command function*/
|
|
#define B_KDEBUG_CONT 2
|
|
#define B_KDEBUG_QUIT 3
|
|
|
|
int add_debugger_command(const char * name, int (*func)(int, char **), const char *desc);
|
|
int remove_debugger_command(const char * name, int (*func)(int, char **));
|
|
|
|
extern void dbg_save_registers(int *); /* arch provided */
|
|
|
|
#endif
|