Prism 6.0 User's Guide

Fully Supported C++ Features

With few limitations, you can use Prism to debug C++ programs containing the features described in this section.

Data Members in Methods

You can simply type print member to print a data member when in a class method.

C++ Linkage Names

You can set breakpoints using the stop in command with functions having either C or C++ linkage (mangled) names.

Methods of a Class

You can use the Prism stop in, func and list commands with methods of a class.

(prism) stop in class_name::method_name


(prism) func class_name::method_name


(prism) list class_name::method_name

Class Member Variables

Prism supports assignment to class member variables.

Variables of Class Type and Template Classes

You can use the Prism whatis and print commands with variables of class type and template classes.

this Identifier

Prism recognizes the this identifier in C++ methods. Its value also appears in stack back-traces.

Overloaded Method Names

Prism allows you to set breakpoints in overloaded method names. A list pops up, from which you can select the correct method.

Template Functions

Prism allows you to set breakpoints in template functions. A list pops up, from which you can select the correct function.

Scope Operator in Prism Identifier Syntax

Prism's identifier syntax recognizes the C++ scope operator, ::. For example:

(prism) whereis dummy
variable: `symbol.x`symbol.cc`Symbol::print:71`dummy