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:
parent
7b855018c9
commit
7f3937521f
@ -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];
|
||||
|
@ -31,6 +31,8 @@ static struct debugger_module_info sModuleInfo = {
|
||||
&std_ops
|
||||
},
|
||||
enter_debugger,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
@ -473,6 +473,8 @@ static struct debugger_module_info sModuleInfo = {
|
||||
&std_ops
|
||||
},
|
||||
NULL,
|
||||
NULL,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
|
@ -71,7 +71,9 @@ static struct debugger_module_info sModuleInfo = {
|
||||
},
|
||||
|
||||
NULL,
|
||||
exit_debugger
|
||||
exit_debugger,
|
||||
NULL,
|
||||
NULL
|
||||
};
|
||||
|
||||
module_info *modules[] = {
|
||||
|
Loading…
x
Reference in New Issue
Block a user