Debugging a Program With dbx

showleaks

To report new memory leaks since the last showleaks command:


showleaks [-a] [-m m
] [-n num]
[-v]

In the default non-verbose case, a one line report per leak record is printed. Actual leaks are reported followed by the possible leaks. Reports are sorted according to the combined size of the leaks.

-a

Shows all leaks generated so far (not just the leaks since the last showleaks command).

-m m

Used for combining leaks; if the call stack at the time of allocation for two or more leaks matches m frames, then the leaks are reported in a single combined leak report. The -m option overrides the global value of m specified with the check command. The default value of m is 2 or the global value last given with check.

-n num

Shows up to num records in the report. Default is to show all records.

-v

Generates verbose output. Default is to show non-verbose output.