Add debugger module hooks to implement alternative io (I need laplink debugging...)

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@24052 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
François Revol 2008-02-21 22:41:49 +00:00
parent 7b855018c9
commit 7f3937521f
4 changed files with 12 additions and 1 deletions

View File

@ -49,6 +49,11 @@ struct debugger_module_info {
void (*enter_debugger)(void);
void (*exit_debugger)(void);
// io hooks
int (*debugger_puts)(const char *str, int32 length);
int (*debugger_getchar)(void);
// TODO: add hooks for tunnelling gdb ?
};
extern int dbg_register_file[B_MAX_CPU_COUNT][14];

View File

@ -31,6 +31,8 @@ static struct debugger_module_info sModuleInfo = {
&std_ops
},
enter_debugger,
NULL,
NULL,
NULL
};

View File

@ -473,6 +473,8 @@ static struct debugger_module_info sModuleInfo = {
&std_ops
},
NULL,
NULL,
NULL,
NULL
};

View File

@ -71,7 +71,9 @@ static struct debugger_module_info sModuleInfo = {
},
NULL,
exit_debugger
exit_debugger,
NULL,
NULL
};
module_info *modules[] = {