Search

ParaSoft

HOME
PRODUCTS
SUPPORT
ABOUT
WHAT'S NEW
EVENTS


Insure++

Quick facts

Add-on Modules:
   -INUSE
   -TCA

Comparisons

Technical Papers

Support & Manuals

FAQs

Recent Reviews

User Testimonials

Press Releases


Insure tool to debug c++





c++filt: Not found


On some platforms, Insure++ uses the external demangler provided by the C++ compiler vendor (c++filt) to demangle C++ function names. This is specified in the compiler default .psrc file (lib.$ARCH/$COMPILER/.psrc) using the option
    insure++.DemangleMethod filter c++filt
This option tells Insure++ to call the program c++filt whenever it needs to demangle a C++ function name for printing a stack trace. This will work fine as long as c++filt is on your path. If it is not, you may see errors similar to:
    /usr/local/insure/bin.aix4/ins_filt: c++filt: Not found
or
    sh: ins_filt: not found
when you run your program.

There are several ways to solve this problem:

  • Add the location of c++filt to your path.

  • Make a link from c++filt to a directory already on your path, e.g.
        cd /usr/local/bin
        ln -s /usr/lpp/xlC/c++filt .
    
    if /usr/local/bin is on your path and c++filt is located in /usr/lpp/xlC.

  • Add the path to c++filt to the DemangleMethod option by adding the option
        !insure++.DemangleMethod filter /usr/bin/c++filt
    
    to your .psrc file. The ! before insure++.DemangleMethod is necessary to override the setting that was compiled into your program. See the section on compiled-in options in the Insure++ User's Guide for more on this issue.

  • Turn off demangling by adding the option
        insure++.Demangle off
    
    to your .psrc file.


For more information . call (888) 305-0041, fax (626)305-9048, or email quality@parasoft.com

Tools to debug c++ and java
(888) 305-0041 info@parasoft.com Copyright © 1996-2001 ParaSoft