Debugging a Program With dbx

Dereferencing Pointers

When you dereference a pointer, you ask for the contents of the container the pointer points to.

To dereference a pointer, dbx prints the evaluation in the command pane; in this case, the value pointed to by t:


(dbx) print *t
*t = {
a = 4
}