* */
int xbt_backtrace_no_malloc(void **array, int size) {
+
+ int i = 0;
+ for(i=0; i < size; i++)
+ array[i] = NULL;
+
struct trace_arg arg = { .array = array, .size = size, .cnt = -1 };
if (size >= 1)
void mmalloc_backtrace_block_display(xbt_mheap_t heap, size_t block){
- int type;
xbt_ex_t e;
- type = heap->heapinfo[block].type;
-
- if (type != 0) {
- fprintf(stderr,"Only full blocks are backtraced for now. Ignoring your request.\n");
- return;
- }
if (heap->heapinfo[block].busy_block.bt_size == 0) {
fprintf(stderr,"No backtrace available for that block, sorry.\n");
return;