equal
deleted
inserted
replaced
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 res = WaitDebugData(tick); |
282 *size = buffer_cursor - debug_buffer; |
282 if(res){ |
283 *buffer = debug_buffer; |
283 *size = buffer_cursor - debug_buffer; |
|
284 *buffer = debug_buffer; |
|
285 } |
284 return res; |
286 return res; |
285 } |
287 } |
286 |
288 |