Reputation: 2993
file : main.c
to run dmalloc I have done the following step.
1) gcc -ldmalloc -o test main.c
2) function dmalloc { eval command dmalloc -b $*
; }
dmalloc -l logfile -i 100 low
3) ./test
where will I get the result?
Even i could not get the logfile.
Upvotes: 2
Views: 235
Reputation: 11
make sure that your environment actually contains the DMALLOC_OPTIONS variable before running the program. Different shells may be different with the eval. Make sure you actually do a malloc in your test program, else it may not have initialized properly.
Upvotes: 1