4d30949a4d
the debug library can be used by both server (the kernel) and client (the debugger) applications. the library implements the protocol that is used for communication between the kernel and debugger, as well as handling for any requests supported by the protocol.
30 lines
727 B
C
30 lines
727 B
C
#include <magenta/debug/event.h>
|
|
|
|
const char *mxdbg_event_type_get_description(enum mxdbg_event_type type)
|
|
{
|
|
switch (type) {
|
|
case MXDBG_EVENT_TASK_CREATED:
|
|
return "task-create";
|
|
case MXDBG_EVENT_TASK_STARTED:
|
|
return "task-start";
|
|
case MXDBG_EVENT_TASK_STOPPED:
|
|
return "task-stop";
|
|
case MXDBG_EVENT_TASK_DESTROYED:
|
|
return "task-destroy";
|
|
case MXDBG_EVENT_THREAD_CREATED:
|
|
return "thread-create";
|
|
case MXDBG_EVENT_THREAD_STARTED:
|
|
return "thread-start";
|
|
case MXDBG_EVENT_THREAD_STOPPED:
|
|
return "thread-stop";
|
|
case MXDBG_EVENT_THREAD_DESTROYED:
|
|
return "thread-destroy";
|
|
case MXDBG_EVENT_THREAD_FAULT:
|
|
return "thread-fault";
|
|
case MXDBG_EVENT_PANIC:
|
|
return "panic";
|
|
default:
|
|
return "<unknown>";
|
|
}
|
|
}
|