3.2. Valgrind Options Page

Valgrind`s options page has been divided into three areas which reflect the split between Core options, Error Reporting options, and Suppressions.

To access valgrind`s manual for help on any of these options, click on the Context Help toolbutton and then click on the relevant widget.

3.2.1. Core Tab

Main Tool: (disabled)

Valkyrie currently only supports Memcheck.

Verbosity level: (disabled)

Valgrind presets this to 1 for generating XML output. See next entry.

Output in XML format: (disabled)

Since Memcheck is currently the only tool supported by valkyrie, and therefore the flag --xml=yes is always sent to valgrind, changing this flag is disabled.

Trace child processes: (disabled)

Valkyrie can not yet deal with the multiple log files that are generated using this option.

Track open file descriptors: (disabled)

Valgrind disables file descriptor leak checking when generating XML output.

Show warnings about emulation limits: (disabled)

Valgrind disables this option when generating XML output.

3.2.2. Error Reporting Tab

Print suppressions for errors: (disabled)

Currently, valgrind disables suppression generation when generating XML output, therefore changing this flag is disabled.

Limit the number of errors shown: (disabled)

Valgrind disables error limits when generating XML output; therefore changing this flag is disabled.

Start debugger on error detection and Debugger: (disabled)

valgrind disables attaching a debugger when generating XML output; therefore changing these flags is disabled.

Logging Options: (disabled)

Valkyrie needs to control all logging options to gather the XML output from Valgrind; therefore changing these options is disabled.

3.2.3. Suppressions Tab

Regardless of these settings, Valgrind's default suppressions (e.g. for glibc, xfree) are always enabled.

Because Valgrind does not yet support generating suppressions with XML output, you still have to generate suppressions by running your program through Valgrind directly, using the --gen-suppressions flag.

Once you have your suppressions, write them to a file 'myproject.supp', and put them either in your project directory. Right-clicking on the top 'Suppression Dirs' listbox will allow you to add your project directory to those scanned for suppression files (files must end in .supp).

Right-clicking on the 'Available' and 'Selected' listboxes allows you to choose what suppression files are currently active for the next Valgrind run

The Valgrind User Manual gives details on Suppressing Errors and Writing Suppression Files.