* 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:
Michael Lotz
2009-03-11 12:17:23 +00:00
parent 105c63e8cd
commit 5b9d5a2ec9
3 changed files with 15 additions and 0 deletions
@@ -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