Configuring the IDE for error analysis

Note:
  • If your binary is instrumented with Mudflap, you can't run Memory Analysis on it because there will be a conflict (trying to overload the same functions), and it will cause the program to crash.
  • Support for Mudflap has been removed in the upstream FSF gcc, and therefore future releases of the QNX Neutrino version of gcc won't support it either.

To configure for error analysis:

  1. Create a Run or Debug type of QNX Application launch configuration as you normally would, but don't click Run or Debug.
  2. In the Create, manage, and run configurations dialog, click the Tools tab.
  3. Click Add/Delete Tool.
  4. In the Tools Selection dialog, check Memory Analysis:

  5. Click OK.
  6. Click the Memory Analysis tab.
    Memory Analysis tool
  7. To configure the Memory Analysis settings for your program, expand the groups to view the appropriate set of options. For more information about these settings, see Launching your program with Memory Analysis.
  8. If you want the IDE to automatically change to the QNX Memory Analysis perspective when you run or debug, check Switch to this tool's perspective on launch.
  9. Click Apply to save your changes.
  10. Click Run, Debug, or Profile.
    The IDE starts your program and lets you analyze your program's memory.
Note: Don't run more than one Memory Analysis session on a given target at a time, because the results may not be accurate.