HP Code Advisor C.02.25 User Guide (5900-1864, August 2012)
Following is the syntax for removing information from the PDB:
$cadvise -pdb <pdbname> -remove:objs/<objectfile name>
Following is an example to remove object file information from the PDB:
Example 8 Removing object file information from the PDB
$cadvise -pdb testpdb /opt/aCC/bin/aCC foo.c -c -o objs/foo.o
$cadvise -pdb testpdb -remove:objs/foo.o
NOTE: For information on how cadvise searches for object files, see Example 15 “Specifying
the location of object files”.
3.6 Creating a PDB snapshot at a specified location
The PDB created at a specified location is significantly smaller in size than the original PDB. A
snapshot PDB can be used only for reporting purposes and not for cross-file analysis. The -pdb
location option must be used to specify the location of the PDB from where you are taking the
snapshot. When the -snapshot option is used, the other cadvise options are ignored.
Following is the syntax for creating a PDB snapshot at a specified location or path:
$cadvise -pdb <pdbname> -snapshot <location>
Following is an example to create a PDB snapshot:
Example 9 Creating a PDB snapshot
$cadvise -pdb testpdb -snapshot snappdb
Where: testpdb is the location of the PDB and snappdb is the location where the snapshot
needs to be created. This location is relative or absolute.
3.7 Displaying PDB version
This option checks the PDB internal format when cadvise is invoked, and prints the PDB version
along with the compatibility status. If the version is not supported, cadvise prints an error message
and exits.
Following is the syntax for displaying the version of the PDB:
$cadvise -pdb <pdbname> -pdb_version
Following are the examples for displaying the version of the PDB:
Example 10 Displaying PDB version
$ cadvise -pdb 2a.pdb -pdb_version
cadvise: PDB version 04.01 (Compatible)
$ cadvise -pdb 2b.pdb -pdb_version
cadvise: PDB version 03.01 (Incompatible)
3.6 Creating a PDB snapshot at a specified location 21