ldbrowse - browses the log file of libld(3) |
ldbrowse program [file] |
The ldbrowse program reads file and writes it in the human-readable format to the standard output. The file should be the log file of libld(3). And the program should be the executable file that made the file. If file is absent, ldbrowse reads from the standard input. |
The program should be compiled with -ggdb, or ldbrowse will print no symbolic information. |
The following entry shows a memory allocation. The first line shows that the allocated space is 10 bytes of memory that starts from the address 0x804a0f0. The next 6 lines (until an empty line) shows the stack trace when the allocation occurred. Each line is composed in the format source file:line number: in function function, but the line number shows the line that corresponds to an address where the function returns. |
allocate: 0x804a0f0 (10 bytes) /foo/leakdetector/libld/ld.c:126: in function 'malloc' /foo/leakdetector/test/test.c:18: in function 'foo_c' /foo/leakdetector/test/test.c:26: in function 'foo_b' /foo/leakdetector/test/test.c:33: in function 'foo_a' /foo/leakdetector/test/test.c:43: in function 'main' (null):0: in function '_start'The following entry shows the allocated memory to be made available for future allocations. The line shows that the allocated space that starts from the 0x804a0d0 is released. |
free: 0x804a0d0 |
ldcollect(1), libld(3) |