class (idb mode only)

Show or change the current class scope.

Syntax

class [name]

Parameters

name

Name of a class. This parameter is optional only when there is a current class.

Description

This command lets you set the scope to a class in the program you are debugging. If you do not specify the class name, the command displays the current class context.

The new class context does not have to be a class on the current stack.

To set the scope to a function within a class, use the func command.

Note iconNote

You cannot have the scope set to a function and a class simultaneously. Setting the scope to a class moves the scope away from the function scope and vice versa. To return to the default (current function) scope, use the command func 0.

Example

This example shows how to use the class command to set the class scope to List<Node>. This makes member function append visible so a breakpoint can be set in append.

(idb) stop in append	Symbol "append" is not defined.	append has no valid breakpoint address	[#1: stop in append] pending	(idb) class List<Node>	class List<Node> {	class Node* _firstNode;	List(void);	void append(class Node* const);	void print(void) const;	~List(void);	(idb) stop in append	[#2: stop in void List<Node>::append(class Node* const)]

See Also


Submit feedback on this help topic

Copyright © 1996-2010, Intel Corporation. All rights reserved.