equal
deleted
inserted
replaced
276 BUFFER_FREE); |
276 BUFFER_FREE); |
277 } |
277 } |
278 int WaitDebugData(unsigned long *tick); |
278 int WaitDebugData(unsigned long *tick); |
279 /* Wait until debug data ready and return pointer to it */ |
279 /* Wait until debug data ready and return pointer to it */ |
280 int GetDebugData(unsigned long *tick, unsigned long *size, void **buffer){ |
280 int GetDebugData(unsigned long *tick, unsigned long *size, void **buffer){ |
281 int res = WaitDebugData(tick); |
281 int wait_error = WaitDebugData(tick); |
282 if(res){ |
282 if(!wait_error){ |
283 *size = buffer_cursor - debug_buffer; |
283 *size = buffer_cursor - debug_buffer; |
284 *buffer = debug_buffer; |
284 *buffer = debug_buffer; |
285 } |
285 } |
286 return res; |
286 return wait_error; |
287 } |
287 } |
288 |
288 |