Added parse_expression() to the kernel emulation.

git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@20436 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
Ingo Weinhold
2007-03-27 13:20:53 +00:00
parent 369e45856b
commit de71c58165
4 changed files with 27 additions and 4 deletions
@@ -355,7 +355,7 @@ int
add_debugger_command(char *name, add_debugger_command(char *name,
int (*func)(int argc, char **argv), char *help) int (*func)(int argc, char **argv), char *help)
{ {
return B_OK; return UserlandFS::KernelEmu::add_debugger_command(name, hook, help);
} }
// remove_debugger_command // remove_debugger_command
@@ -363,7 +363,14 @@ int
remove_debugger_command(char *name, remove_debugger_command(char *name,
int (*func)(int argc, char **argv)) int (*func)(int argc, char **argv))
{ {
return B_OK; return UserlandFS::KernelEmu::remove_debugger_command(name, hook);
}
// parse_expression
uint32
parse_expression(const char *string)
{
return UserlandFS::KernelEmu::parse_expression(string);
} }
// kprintf // kprintf
@@ -435,14 +435,21 @@ panic(const char *format, ...)
int int
add_debugger_command(char *name, debugger_command_hook hook, char *help) add_debugger_command(char *name, debugger_command_hook hook, char *help)
{ {
return B_OK; return UserlandFS::KernelEmu::add_debugger_command(name, hook, help);
} }
// remove_debugger_command // remove_debugger_command
int int
remove_debugger_command(char *name, debugger_command_hook hook) remove_debugger_command(char *name, debugger_command_hook hook)
{ {
return B_OK; return UserlandFS::KernelEmu::remove_debugger_command(name, hook);
}
// parse_expression
uint32
parse_expression(const char *string)
{
return UserlandFS::KernelEmu::parse_expression(string);
} }
// kprintf // kprintf
@@ -589,6 +589,14 @@ UserlandFS::KernelEmu::remove_debugger_command(char *name,
return B_OK; return B_OK;
} }
// parse_expression
uint32
UserlandFS::KernelEmu::parse_expression(const char *string)
{
return 0;
}
// kprintf // kprintf
//void //void
//kprintf(const char *format, ...) //kprintf(const char *format, ...)
@@ -45,6 +45,7 @@ void dump_block(const char *buffer, int size, const char *prefix);
int add_debugger_command(char *name, int (*func)(int argc, char **argv), int add_debugger_command(char *name, int (*func)(int argc, char **argv),
char *help); char *help);
int remove_debugger_command(char *name, int (*func)(int argc, char **argv)); int remove_debugger_command(char *name, int (*func)(int argc, char **argv));
uint32 parse_expression(const char *string);
thread_id spawn_kernel_thread(thread_entry function, const char *threadName, thread_id spawn_kernel_thread(thread_entry function, const char *threadName,
long priority, void *arg); long priority, void *arg);