Rev 2787 | Rev 2801 | Go to most recent revision | Show entire file | Ignore whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 2787 | Rev 2799 | ||
---|---|---|---|
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> |
- | |
49 | #include <ipc/sysipc.h> |
47 | #include <ipc/sysipc.h> |
50 | #include <synch/futex.h> |
48 | #include <synch/futex.h> |
51 | #include <ddi/ddi.h> |
49 | #include <ddi/ddi.h> |
52 | #include <security/cap.h> |
50 | #include <security/cap.h> |
53 | #include <syscall/copy.h> |
51 | #include <syscall/copy.h> |
Line 105... | Line 103... | ||
105 | klog_printf("TASK %llu: Unknown syscall id %llx", TASK->taskid, |
103 | klog_printf("TASK %llu: Unknown syscall id %llx", TASK->taskid, |
106 | id); |
104 | id); |
107 | task_kill(TASK->taskid); |
105 | task_kill(TASK->taskid); |
108 | thread_exit(); |
106 | thread_exit(); |
109 | } |
107 | } |
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(); |
- | |
117 | } |
108 | |
118 | - | ||
119 | if (THREAD->interrupted) |
109 | if (THREAD->interrupted) |
120 | thread_exit(); |
110 | thread_exit(); |
121 | 111 | ||
122 | return rc; |
112 | return rc; |
123 | } |
113 | } |
Line 166... | Line 156... | ||
166 | /* Sysinfo syscalls */ |
156 | /* Sysinfo syscalls */ |
167 | (syshandler_t) sys_sysinfo_valid, |
157 | (syshandler_t) sys_sysinfo_valid, |
168 | (syshandler_t) sys_sysinfo_value, |
158 | (syshandler_t) sys_sysinfo_value, |
169 | 159 | ||
170 | /* Debug calls */ |
160 | /* Debug calls */ |
171 | (syshandler_t) sys_debug_enable_console, |
161 | (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 |
- | |
181 | }; |
162 | }; |
182 | 163 | ||
183 | /** @} |
164 | /** @} |
184 | */ |
165 | */ |