dbg_add_command() changed into BeOS compatible add_debugger_command().

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
This commit is contained in:
Philippe Houdoin
2002-07-17 22:10:34 +00:00
parent 2c24125957
commit 3b333c3bd1
2 changed files with 9 additions and 3 deletions
+8 -2
View File
@@ -19,8 +19,14 @@ 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(void);
int dbg_add_command(void (*func)(int, char **), const char *cmd, const char *desc);
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 */