* Add has_debugger_command() so whether or not a debugger command is available
can be checked. * Make the usb_keyboard module check the presence of the needed debugger commands to avoid the error messages in case of them being unavailable. git-svn-id: file:///srv/svn/repos/haiku/haiku/trunk@29472 a95241bf-73f2-0310-859d-f6bbb57e9c96
This commit is contained in:
@@ -496,6 +496,14 @@ print_debugger_command_usage(const char* commandName)
|
||||
}
|
||||
|
||||
|
||||
bool
|
||||
has_debugger_command(const char* commandName)
|
||||
{
|
||||
bool ambiguous;
|
||||
return find_debugger_command(commandName, false, ambiguous) != NULL;
|
||||
}
|
||||
|
||||
|
||||
// #pragma mark - public API
|
||||
|
||||
int
|
||||
|
||||
Reference in New Issue
Block a user