Rev 3448 | Go to most recent revision | Only display areas with differences | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed
Rev 3448 | Rev 3474 | ||
---|---|---|---|
1 | /* |
1 | /* |
2 | * Copyright (c) 2008 Jiri Svoboda |
2 | * Copyright (c) 2008 Jiri Svoboda |
3 | * All rights reserved. |
3 | * All rights reserved. |
4 | * |
4 | * |
5 | * Redistribution and use in source and binary forms, with or without |
5 | * Redistribution and use in source and binary forms, with or without |
6 | * modification, are permitted provided that the following conditions |
6 | * modification, are permitted provided that the following conditions |
7 | * are met: |
7 | * are met: |
8 | * |
8 | * |
9 | * - Redistributions of source code must retain the above copyright |
9 | * - Redistributions of source code must retain the above copyright |
10 | * notice, this list of conditions and the following disclaimer. |
10 | * notice, this list of conditions and the following disclaimer. |
11 | * - Redistributions in binary form must reproduce the above copyright |
11 | * - Redistributions in binary form must reproduce the above copyright |
12 | * notice, this list of conditions and the following disclaimer in the |
12 | * notice, this list of conditions and the following disclaimer in the |
13 | * documentation and/or other materials provided with the distribution. |
13 | * documentation and/or other materials provided with the distribution. |
14 | * - The name of the author may not be used to endorse or promote products |
14 | * - The name of the author may not be used to endorse or promote products |
15 | * derived from this software without specific prior written permission. |
15 | * derived from this software without specific prior written permission. |
16 | * |
16 | * |
17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR |
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES |
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. |
20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT, |
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT |
22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, |
23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. |
27 | */ |
27 | */ |
28 | 28 | ||
29 | /** @addtogroup generic |
29 | /** @addtogroup generic |
30 | * @{ |
30 | * @{ |
31 | */ |
31 | */ |
32 | 32 | ||
33 | /** |
33 | /** |
34 | * @file |
34 | * @file |
35 | * @brief Udebug IPC message handling. |
35 | * @brief Udebug IPC message handling. |
- | 36 | * |
|
- | 37 | * This module handles udebug IPC messages and calls the appropriate |
|
- | 38 | * functions from the udebug_ops module which implement them. |
|
36 | */ |
39 | */ |
37 | 40 | ||
38 | #include <proc/task.h> |
41 | #include <proc/task.h> |
39 | #include <proc/thread.h> |
42 | #include <proc/thread.h> |
40 | #include <arch.h> |
43 | #include <arch.h> |
41 | #include <errno.h> |
44 | #include <errno.h> |
42 | #include <ipc/ipc.h> |
45 | #include <ipc/ipc.h> |
43 | #include <syscall/copy.h> |
46 | #include <syscall/copy.h> |
44 | #include <udebug/udebug.h> |
47 | #include <udebug/udebug.h> |
45 | #include <udebug/udebug_ops.h> |
48 | #include <udebug/udebug_ops.h> |
46 | #include <udebug/udebug_ipc.h> |
49 | #include <udebug/udebug_ipc.h> |
47 | 50 | ||
48 | int udebug_request_preprocess(call_t *call, phone_t *phone) |
51 | int udebug_request_preprocess(call_t *call, phone_t *phone) |
49 | { |
52 | { |
50 | switch (IPC_GET_ARG1(call->data)) { |
53 | switch (IPC_GET_ARG1(call->data)) { |
51 | /* future UDEBUG_M_REGS_WRITE, UDEBUG_M_MEM_WRITE: */ |
54 | /* future UDEBUG_M_REGS_WRITE, UDEBUG_M_MEM_WRITE: */ |
52 | default: |
55 | default: |
53 | break; |
56 | break; |
54 | } |
57 | } |
55 | 58 | ||
56 | return 0; |
59 | return 0; |
57 | } |
60 | } |
58 | 61 | ||
- | 62 | /** Process a BEGIN call. |
|
- | 63 | * |
|
- | 64 | * Initiates a debugging session for the current task. The reply |
|
- | 65 | * to this call may or may not be sent before this function returns. |
|
- | 66 | * |
|
- | 67 | * @param call The call structure. |
|
- | 68 | */ |
|
59 | static void udebug_receive_begin(call_t *call) |
69 | static void udebug_receive_begin(call_t *call) |
60 | { |
70 | { |
61 | int rc; |
71 | int rc; |
62 | 72 | ||
63 | rc = udebug_begin(call); |
73 | rc = udebug_begin(call); |
64 | if (rc < 0) { |
74 | if (rc < 0) { |
65 | IPC_SET_RETVAL(call->data, rc); |
75 | IPC_SET_RETVAL(call->data, rc); |
66 | ipc_answer(&TASK->kernel_box, call); |
76 | ipc_answer(&TASK->kernel_box, call); |
67 | return; |
77 | return; |
68 | } |
78 | } |
69 | 79 | ||
- | 80 | /* |
|
- | 81 | * If the initialization of the debugging session has finished, |
|
- | 82 | * send a reply. |
|
- | 83 | */ |
|
70 | if (rc != 0) { |
84 | if (rc != 0) { |
71 | IPC_SET_RETVAL(call->data, 0); |
85 | IPC_SET_RETVAL(call->data, 0); |
72 | ipc_answer(&TASK->kernel_box, call); |
86 | ipc_answer(&TASK->kernel_box, call); |
73 | } |
87 | } |
74 | } |
88 | } |
75 | 89 | ||
- | 90 | /** Process an END call. |
|
- | 91 | * |
|
- | 92 | * Terminates the debugging session for the current task. |
|
- | 93 | * @param call The call structure. |
|
- | 94 | */ |
|
76 | static void udebug_receive_end(call_t *call) |
95 | static void udebug_receive_end(call_t *call) |
77 | { |
96 | { |
78 | int rc; |
97 | int rc; |
79 | 98 | ||
80 | rc = udebug_end(); |
99 | rc = udebug_end(); |
81 | 100 | ||
82 | IPC_SET_RETVAL(call->data, rc); |
101 | IPC_SET_RETVAL(call->data, rc); |
83 | ipc_answer(&TASK->kernel_box, call); |
102 | ipc_answer(&TASK->kernel_box, call); |
84 | } |
103 | } |
85 | 104 | ||
- | 105 | /** Process a SET_EVMASK call. |
|
- | 106 | * |
|
- | 107 | * Sets an event mask for the current debugging session. |
|
- | 108 | * @param call The call structure. |
|
- | 109 | */ |
|
86 | static void udebug_receive_set_evmask(call_t *call) |
110 | static void udebug_receive_set_evmask(call_t *call) |
87 | { |
111 | { |
88 | int rc; |
112 | int rc; |
89 | udebug_evmask_t mask; |
113 | udebug_evmask_t mask; |
90 | 114 | ||
91 | mask = IPC_GET_ARG2(call->data); |
115 | mask = IPC_GET_ARG2(call->data); |
92 | rc = udebug_set_evmask(mask); |
116 | rc = udebug_set_evmask(mask); |
93 | 117 | ||
94 | IPC_SET_RETVAL(call->data, rc); |
118 | IPC_SET_RETVAL(call->data, rc); |
95 | ipc_answer(&TASK->kernel_box, call); |
119 | ipc_answer(&TASK->kernel_box, call); |
96 | } |
120 | } |
97 | 121 | ||
98 | 122 | ||
- | 123 | /** Process a GO call. |
|
- | 124 | * |
|
- | 125 | * Resumes execution of the specified thread. |
|
- | 126 | * @param call The call structure. |
|
- | 127 | */ |
|
99 | static void udebug_receive_go(call_t *call) |
128 | static void udebug_receive_go(call_t *call) |
100 | { |
129 | { |
101 | thread_t *t; |
130 | thread_t *t; |
102 | int rc; |
131 | int rc; |
103 | 132 | ||
104 | t = (thread_t *)IPC_GET_ARG2(call->data); |
133 | t = (thread_t *)IPC_GET_ARG2(call->data); |
105 | 134 | ||
106 | rc = udebug_go(t, call); |
135 | rc = udebug_go(t, call); |
107 | if (rc < 0) { |
136 | if (rc < 0) { |
108 | IPC_SET_RETVAL(call->data, rc); |
137 | IPC_SET_RETVAL(call->data, rc); |
109 | ipc_answer(&TASK->kernel_box, call); |
138 | ipc_answer(&TASK->kernel_box, call); |
110 | return; |
139 | return; |
111 | } |
140 | } |
112 | } |
141 | } |
113 | 142 | ||
- | 143 | /** Process a STOP call. |
|
- | 144 | * |
|
- | 145 | * Suspends execution of the specified thread. |
|
- | 146 | * @param call The call structure. |
|
- | 147 | */ |
|
114 | static void udebug_receive_stop(call_t *call) |
148 | static void udebug_receive_stop(call_t *call) |
115 | { |
149 | { |
116 | thread_t *t; |
150 | thread_t *t; |
117 | int rc; |
151 | int rc; |
118 | 152 | ||
119 | t = (thread_t *)IPC_GET_ARG2(call->data); |
153 | t = (thread_t *)IPC_GET_ARG2(call->data); |
120 | 154 | ||
121 | rc = udebug_stop(t, call); |
155 | rc = udebug_stop(t, call); |
122 | IPC_SET_RETVAL(call->data, rc); |
156 | IPC_SET_RETVAL(call->data, rc); |
123 | ipc_answer(&TASK->kernel_box, call); |
157 | ipc_answer(&TASK->kernel_box, call); |
124 | } |
158 | } |
125 | 159 | ||
- | 160 | /** Process a THREAD_READ call. |
|
- | 161 | * |
|
- | 162 | * Reads the list of hashes of the (userspace) threads in the current task. |
|
- | 163 | * @param call The call structure. |
|
- | 164 | */ |
|
126 | static void udebug_receive_thread_read(call_t *call) |
165 | static void udebug_receive_thread_read(call_t *call) |
127 | { |
166 | { |
128 | unative_t uspace_addr; |
167 | unative_t uspace_addr; |
129 | unative_t to_copy; |
168 | unative_t to_copy; |
130 | unsigned total_bytes; |
169 | unsigned total_bytes; |
131 | unsigned buf_size; |
170 | unsigned buf_size; |
132 | void *buffer; |
171 | void *buffer; |
133 | size_t n; |
172 | size_t n; |
134 | int rc; |
173 | int rc; |
135 | 174 | ||
136 | uspace_addr = IPC_GET_ARG2(call->data); /* Destination address */ |
175 | uspace_addr = IPC_GET_ARG2(call->data); /* Destination address */ |
137 | buf_size = IPC_GET_ARG3(call->data); /* Dest. buffer size */ |
176 | buf_size = IPC_GET_ARG3(call->data); /* Dest. buffer size */ |
138 | 177 | ||
139 | /* |
178 | /* |
140 | * Read thread list. Variable n will be filled with actual number |
179 | * Read thread list. Variable n will be filled with actual number |
141 | * of threads times thread-id size. |
180 | * of threads times thread-id size. |
142 | */ |
181 | */ |
143 | rc = udebug_thread_read(&buffer, buf_size, &n); |
182 | rc = udebug_thread_read(&buffer, buf_size, &n); |
144 | if (rc < 0) { |
183 | if (rc < 0) { |
145 | IPC_SET_RETVAL(call->data, rc); |
184 | IPC_SET_RETVAL(call->data, rc); |
146 | ipc_answer(&TASK->kernel_box, call); |
185 | ipc_answer(&TASK->kernel_box, call); |
147 | return; |
186 | return; |
148 | } |
187 | } |
149 | 188 | ||
150 | total_bytes = n; |
189 | total_bytes = n; |
151 | 190 | ||
152 | /* Copy MAX(buf_size, total_bytes) bytes */ |
191 | /* Copy MAX(buf_size, total_bytes) bytes */ |
153 | 192 | ||
154 | if (buf_size > total_bytes) |
193 | if (buf_size > total_bytes) |
155 | to_copy = total_bytes; |
194 | to_copy = total_bytes; |
156 | else |
195 | else |
157 | to_copy = buf_size; |
196 | to_copy = buf_size; |
158 | 197 | ||
159 | /* |
198 | /* |
160 | * Make use of call->buffer to transfer data to caller's userspace |
199 | * Make use of call->buffer to transfer data to caller's userspace |
161 | */ |
200 | */ |
162 | 201 | ||
163 | IPC_SET_RETVAL(call->data, 0); |
202 | IPC_SET_RETVAL(call->data, 0); |
164 | /* ARG1=dest, ARG2=size as in IPC_M_DATA_READ so that |
203 | /* ARG1=dest, ARG2=size as in IPC_M_DATA_READ so that |
165 | same code in process_answer() can be used |
204 | same code in process_answer() can be used |
166 | (no way to distinguish method in answer) */ |
205 | (no way to distinguish method in answer) */ |
167 | IPC_SET_ARG1(call->data, uspace_addr); |
206 | IPC_SET_ARG1(call->data, uspace_addr); |
168 | IPC_SET_ARG2(call->data, to_copy); |
207 | IPC_SET_ARG2(call->data, to_copy); |
169 | 208 | ||
170 | IPC_SET_ARG3(call->data, total_bytes); |
209 | IPC_SET_ARG3(call->data, total_bytes); |
171 | call->buffer = buffer; |
210 | call->buffer = buffer; |
172 | 211 | ||
173 | ipc_answer(&TASK->kernel_box, call); |
212 | ipc_answer(&TASK->kernel_box, call); |
174 | } |
213 | } |
175 | 214 | ||
- | 215 | /** Process an ARGS_READ call. |
|
- | 216 | * |
|
- | 217 | * Reads the argument of a current syscall event (SYSCALL_B or SYSCALL_E). |
|
- | 218 | * @param call The call structure. |
|
- | 219 | */ |
|
176 | static void udebug_receive_args_read(call_t *call) |
220 | static void udebug_receive_args_read(call_t *call) |
177 | { |
221 | { |
178 | thread_t *t; |
222 | thread_t *t; |
179 | unative_t uspace_addr; |
223 | unative_t uspace_addr; |
180 | int rc; |
224 | int rc; |
181 | void *buffer; |
225 | void *buffer; |
182 | 226 | ||
183 | t = (thread_t *)IPC_GET_ARG2(call->data); |
227 | t = (thread_t *)IPC_GET_ARG2(call->data); |
184 | 228 | ||
185 | rc = udebug_args_read(t, &buffer); |
229 | rc = udebug_args_read(t, &buffer); |
186 | if (rc != EOK) { |
230 | if (rc != EOK) { |
187 | IPC_SET_RETVAL(call->data, rc); |
231 | IPC_SET_RETVAL(call->data, rc); |
188 | ipc_answer(&TASK->kernel_box, call); |
232 | ipc_answer(&TASK->kernel_box, call); |
189 | return; |
233 | return; |
190 | } |
234 | } |
191 | 235 | ||
192 | /* |
236 | /* |
193 | * Make use of call->buffer to transfer data to caller's userspace |
237 | * Make use of call->buffer to transfer data to caller's userspace |
194 | */ |
238 | */ |
195 | 239 | ||
196 | uspace_addr = IPC_GET_ARG3(call->data); |
240 | uspace_addr = IPC_GET_ARG3(call->data); |
197 | 241 | ||
198 | IPC_SET_RETVAL(call->data, 0); |
242 | IPC_SET_RETVAL(call->data, 0); |
199 | /* ARG1=dest, ARG2=size as in IPC_M_DATA_READ so that |
243 | /* ARG1=dest, ARG2=size as in IPC_M_DATA_READ so that |
200 | same code in process_answer() can be used |
244 | same code in process_answer() can be used |
201 | (no way to distinguish method in answer) */ |
245 | (no way to distinguish method in answer) */ |
202 | IPC_SET_ARG1(call->data, uspace_addr); |
246 | IPC_SET_ARG1(call->data, uspace_addr); |
203 | IPC_SET_ARG2(call->data, 6 * sizeof(unative_t)); |
247 | IPC_SET_ARG2(call->data, 6 * sizeof(unative_t)); |
204 | call->buffer = buffer; |
248 | call->buffer = buffer; |
205 | 249 | ||
206 | ipc_answer(&TASK->kernel_box, call); |
250 | ipc_answer(&TASK->kernel_box, call); |
207 | } |
251 | } |
208 | 252 | ||
- | 253 | /** Process an MEM_READ call. |
|
- | 254 | * |
|
- | 255 | * Reads memory of the current (debugged) task. |
|
- | 256 | * @param call The call structure. |
|
- | 257 | */ |
|
209 | static void udebug_receive_mem_read(call_t *call) |
258 | static void udebug_receive_mem_read(call_t *call) |
210 | { |
259 | { |
211 | unative_t uspace_dst; |
260 | unative_t uspace_dst; |
212 | unative_t uspace_src; |
261 | unative_t uspace_src; |
213 | unsigned size; |
262 | unsigned size; |
214 | void *buffer; |
263 | void *buffer; |
215 | int rc; |
264 | int rc; |
216 | 265 | ||
217 | uspace_dst = IPC_GET_ARG2(call->data); |
266 | uspace_dst = IPC_GET_ARG2(call->data); |
218 | uspace_src = IPC_GET_ARG3(call->data); |
267 | uspace_src = IPC_GET_ARG3(call->data); |
219 | size = IPC_GET_ARG4(call->data); |
268 | size = IPC_GET_ARG4(call->data); |
220 | 269 | ||
221 | rc = udebug_mem_read(uspace_src, size, &buffer); |
270 | rc = udebug_mem_read(uspace_src, size, &buffer); |
222 | if (rc < 0) { |
271 | if (rc < 0) { |
223 | IPC_SET_RETVAL(call->data, rc); |
272 | IPC_SET_RETVAL(call->data, rc); |
224 | ipc_answer(&TASK->kernel_box, call); |
273 | ipc_answer(&TASK->kernel_box, call); |
225 | return; |
274 | return; |
226 | } |
275 | } |
227 | 276 | ||
228 | IPC_SET_RETVAL(call->data, 0); |
277 | IPC_SET_RETVAL(call->data, 0); |
229 | /* ARG1=dest, ARG2=size as in IPC_M_DATA_READ so that |
278 | /* ARG1=dest, ARG2=size as in IPC_M_DATA_READ so that |
230 | same code in process_answer() can be used |
279 | same code in process_answer() can be used |
231 | (no way to distinguish method in answer) */ |
280 | (no way to distinguish method in answer) */ |
232 | IPC_SET_ARG1(call->data, uspace_dst); |
281 | IPC_SET_ARG1(call->data, uspace_dst); |
233 | IPC_SET_ARG2(call->data, size); |
282 | IPC_SET_ARG2(call->data, size); |
234 | call->buffer = buffer; |
283 | call->buffer = buffer; |
235 | 284 | ||
236 | ipc_answer(&TASK->kernel_box, call); |
285 | ipc_answer(&TASK->kernel_box, call); |
237 | } |
286 | } |
238 | 287 | ||
239 | /** |
- | |
240 | * Handle a debug call received on the kernel answerbox. |
288 | /** Handle a debug call received on the kernel answerbox. |
241 | * |
289 | * |
242 | * This is called by the kbox servicing thread. |
290 | * This is called by the kbox servicing thread. Verifies that the sender |
- | 291 | * is indeed the debugger and calls the appropriate processing function. |
|
243 | */ |
292 | */ |
244 | void udebug_call_receive(call_t *call) |
293 | void udebug_call_receive(call_t *call) |
245 | { |
294 | { |
246 | int debug_method; |
295 | int debug_method; |
247 | 296 | ||
248 | debug_method = IPC_GET_ARG1(call->data); |
297 | debug_method = IPC_GET_ARG1(call->data); |
249 | 298 | ||
250 | if (debug_method != UDEBUG_M_BEGIN) { |
299 | if (debug_method != UDEBUG_M_BEGIN) { |
251 | /* |
300 | /* |
252 | * Verify that the sender is this task's debugger. |
301 | * Verify that the sender is this task's debugger. |
253 | * Note that this is the only thread that could change |
302 | * Note that this is the only thread that could change |
254 | * TASK->debugger. Therefore no locking is necessary |
303 | * TASK->debugger. Therefore no locking is necessary |
255 | * and the sender can be safely considered valid until |
304 | * and the sender can be safely considered valid until |
256 | * control exits this function. |
305 | * control exits this function. |
257 | */ |
306 | */ |
258 | if (TASK->udebug.debugger != call->sender) { |
307 | if (TASK->udebug.debugger != call->sender) { |
259 | IPC_SET_RETVAL(call->data, EINVAL); |
308 | IPC_SET_RETVAL(call->data, EINVAL); |
260 | ipc_answer(&TASK->kernel_box, call); |
309 | ipc_answer(&TASK->kernel_box, call); |
261 | return; |
310 | return; |
262 | } |
311 | } |
263 | } |
312 | } |
264 | 313 | ||
265 | switch (debug_method) { |
314 | switch (debug_method) { |
266 | case UDEBUG_M_BEGIN: |
315 | case UDEBUG_M_BEGIN: |
267 | udebug_receive_begin(call); |
316 | udebug_receive_begin(call); |
268 | break; |
317 | break; |
269 | case UDEBUG_M_END: |
318 | case UDEBUG_M_END: |
270 | udebug_receive_end(call); |
319 | udebug_receive_end(call); |
271 | break; |
320 | break; |
272 | case UDEBUG_M_SET_EVMASK: |
321 | case UDEBUG_M_SET_EVMASK: |
273 | udebug_receive_set_evmask(call); |
322 | udebug_receive_set_evmask(call); |
274 | break; |
323 | break; |
275 | case UDEBUG_M_GO: |
324 | case UDEBUG_M_GO: |
276 | udebug_receive_go(call); |
325 | udebug_receive_go(call); |
277 | break; |
326 | break; |
278 | case UDEBUG_M_STOP: |
327 | case UDEBUG_M_STOP: |
279 | udebug_receive_stop(call); |
328 | udebug_receive_stop(call); |
280 | break; |
329 | break; |
281 | case UDEBUG_M_THREAD_READ: |
330 | case UDEBUG_M_THREAD_READ: |
282 | udebug_receive_thread_read(call); |
331 | udebug_receive_thread_read(call); |
283 | break; |
332 | break; |
284 | case UDEBUG_M_ARGS_READ: |
333 | case UDEBUG_M_ARGS_READ: |
285 | udebug_receive_args_read(call); |
334 | udebug_receive_args_read(call); |
286 | break; |
335 | break; |
287 | case UDEBUG_M_MEM_READ: |
336 | case UDEBUG_M_MEM_READ: |
288 | udebug_receive_mem_read(call); |
337 | udebug_receive_mem_read(call); |
289 | break; |
338 | break; |
290 | } |
339 | } |
291 | } |
340 | } |
292 | 341 | ||
293 | /** @} |
342 | /** @} |
294 | */ |
343 | */ |
295 | 344 |