2 * Copyright 2009, Ingo Weinhold, ingo_weinhold@gmx.de.
3 * Distributed under the terms of the MIT License.
14 extern const char* __progname
;
16 static const char* const kUsage
=
17 "Usage: %s [ <message> ]\n"
18 "Enters the kernel debugger with the optional message.\n";
22 main(int argc
, const char* const* argv
)
24 const char* message
= "User command requested kernel debugger.";
27 if (strcmp(argv
[1], "-h") == 0 || strcmp(argv
[1], "--help") == 0) {
28 printf(kUsage
, __progname
);
35 status_t error
= _kern_kernel_debugger(message
);
37 fprintf(stderr
, "Error: Entering the kernel debugger failed: %s\n",