Download DevtoolSet 3 - Red Hat Customer Portal
Transcript
Appendix B. Changes in Version 3.0 accepts one of the following arguments: al l o c, free, al l o c-and -free, al l o c-then-free, as well as no ne. The default is al l o c-then-free. The option controls which stack traces to keep for blocks allocated using mal l o c() or freed using free(). This produces more usable errors and causes Valg rin d to consume less resources. Using the -v (or --verbo se) option now provides more detailed information about the use of leak suppressions. For each suppression, the number of blocks and bytes it suppressed during the last leak search is now shown, as well as the file name and line number where the suppression is defined. H elg rin d The use of statically initialized mutexes and condition variables (such as P T HR EAD _MUT EX_INIT IALISER ) no longer results in false errors. The use of the pthread _co nd _wai t() function that times out no longer results in false errors. B.9 .1 .2 . Ot he r Change s The space required by Valg rin d now better corresponds with the expected capabilities of the target: A new command line option, --num-transtab-secto rs= number, has been added. The option can be used to specify the maximum number of sectors in the translation cache. The default number of sectors has been increased to 16 in order to accommodate applications that need to store large amounts of code. This improves performance because Valg rin d does not need to retranslate and re-instrument machine code so often. The number of memory-mapped segments that can be tracked has been increased by a factor of 6. The way Valg rin d reads debugging information has been improved: Valg rin d no longer uses excessive amounts of virtual memory when reading debuginfo from large shared objects. Instead of temporarily mapping entire objects for reading, Valg rin d now uses only a small, fixed buffer. A new command line option, --d ebug i nfo -server= ipaddress: port, has been added. This option allows you to instruct Valg rin d to read debuginfo from objects stored on a different machine and served by a debuginfo server, which needs to be accessible on the specified IP address and port. A new command line option, --al l o w-mi smatched -d ebug i nfo = argument, has been added. The option accepts the yes and no arguments. The default is no . Using this option, you can instruct Valg rin d to ignore inconsistencies between main and debuginfo objects. Use with caution, as Valg rin d may not be stable when main and debugging objects do not match. A new command line option, --merg e-recursi ve-frame= number, has been added. The option allows you to instruct Valg rin d to detect and merge recursive algorithms, thus saving memory used to store the recorded stack traces. The value supplied to this option determines the complexity of the recursive calls to be merged. A new command line option, --si g i l l -d i ag no sti cs= argument, has been added. This option accepts the yes and no arguments. The default is yes. Use this option to control whether Valg rin d displays a warning when encountering an instruction it is unable to decode or translate. In order to be able to run applications that natively require up to 35 GB of memory, Valg rin d can now use 64 GB of memory on 64-bit targets. G D B Server Mo n it o r 139