Rev 2619 | Rev 2799 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2619 | Rev 2787 | ||
---|---|---|---|
Line 42... | Line 42... | ||
42 | #include <print.h> |
42 | #include <print.h> |
43 | #include <putchar.h> |
43 | #include <putchar.h> |
44 | #include <errno.h> |
44 | #include <errno.h> |
45 | #include <arch.h> |
45 | #include <arch.h> |
46 | #include <debug.h> |
46 | #include <debug.h> |
- | 47 | #include <tdebug/tdebug.h> |
|
- | 48 | #include <tdebug/systdebug.h> |
|
47 | #include <ipc/sysipc.h> |
49 | #include <ipc/sysipc.h> |
48 | #include <synch/futex.h> |
50 | #include <synch/futex.h> |
49 | #include <ddi/ddi.h> |
51 | #include <ddi/ddi.h> |
50 | #include <security/cap.h> |
52 | #include <security/cap.h> |
51 | #include <syscall/copy.h> |
53 | #include <syscall/copy.h> |
Line 103... | Line 105... | ||
103 | klog_printf("TASK %llu: Unknown syscall id %llx", TASK->taskid, |
105 | klog_printf("TASK %llu: Unknown syscall id %llx", TASK->taskid, |
104 | id); |
106 | id); |
105 | task_kill(TASK->taskid); |
107 | task_kill(TASK->taskid); |
106 | thread_exit(); |
108 | thread_exit(); |
107 | } |
109 | } |
- | 110 | ||
- | 111 | if (tdebug_have_monitor()) { |
|
- | 112 | /* generate a syscall debug event */ |
|
- | 113 | tdebug_syscall_event(a1, a2, a3, a4, a5, a6, id, rc); |
|
- | 114 | ||
- | 115 | /* a good place to stop */ |
|
- | 116 | tdebug_stopping_point(); |
|
108 | 117 | } |
|
- | 118 | ||
109 | if (THREAD->interrupted) |
119 | if (THREAD->interrupted) |
110 | thread_exit(); |
120 | thread_exit(); |
111 | 121 | ||
112 | return rc; |
122 | return rc; |
113 | } |
123 | } |
Line 156... | Line 166... | ||
156 | /* Sysinfo syscalls */ |
166 | /* Sysinfo syscalls */ |
157 | (syshandler_t) sys_sysinfo_valid, |
167 | (syshandler_t) sys_sysinfo_valid, |
158 | (syshandler_t) sys_sysinfo_value, |
168 | (syshandler_t) sys_sysinfo_value, |
159 | 169 | ||
160 | /* Debug calls */ |
170 | /* Debug calls */ |
161 | (syshandler_t) sys_debug_enable_console |
171 | (syshandler_t) sys_debug_enable_console, |
- | 172 | ||
- | 173 | /* Task debugging calls */ |
|
- | 174 | (syshandler_t) sys_tdebug_attach_task, |
|
- | 175 | (syshandler_t) sys_tdebug_detach_task, |
|
- | 176 | (syshandler_t) sys_tdebug_continue_thread, |
|
- | 177 | (syshandler_t) sys_tdebug_get_syscall_args, |
|
- | 178 | (syshandler_t) sys_tdebug_set_event_mask, |
|
- | 179 | (syshandler_t) sys_tdebug_stop_thread, |
|
- | 180 | (syshandler_t) sys_tdebug_stop_task |
|
162 | }; |
181 | }; |
163 | 182 | ||
164 | /** @} |
183 | /** @} |
165 | */ |
184 | */ |