Dereferencing Pointers

Pointers are variables that contain addresses. By dereferencing a pointer in the command interface, you can print the value at the address pointed to by the pointer. In C and C++ programs, variables containing a pointer are dereferenced using the * operator. The following example shows how to dereference a pointer in C++ programs:

 

(idb) whatis newNode

class IntNode* newNode

(idb) print newNode

0x805e5f8

(idb) print *newNode

class IntNode {

  _data = 1;

  _nextNode = 0x0;                // class Node

}