Modifying values

You can modify the information displayed in the data explorer window. Here are the values you can modify:

Modifying the name or address

To change the name or address of the data being displayed, left-click the name field. You cannot change addresses in frozen data explorers. If you are changing the variable name, you can enter a comma separated list of items in this dialog box to view multiple items at once.

The default binding for this action is:
Mouse1*Click1@Name=viewcommand AddVarOrAdr wid=%w

Modifying the type

To change the type of the data being displayed, left click the type field. You cannot change types in frozen data explorers.

The default binding for this action is:
Mouse1*Click1@Type=viewcommand EditType wid=%w

Modifying the data

To increment the value of the data in a field, middle click the number to be incremented. The value will be increased by the integer one.

To decrement the value of the data in a field, Shift middle click the number to be decremented. The value will be decreased by the integer one.

To change a data value more generally, right click the data to be changed. A dialogue box will pop up prompting you to type in a new value.

The default binding for this action is:
Mouse1*Click1@Values=viewcommand EditField wid=%w

Changing view style

To change the type into an array, right click the type field. If it is already an array, a larger array is created. This is useful for looking at items of unknown size such as Ada unconstrained typed variables, C strings, or C++ virtual tables.

Right clicking the address is only relevant in C++. If an object is examined through a pointer to one of its base classes, then the actual type is hidden. With multiple inheritance, its address is also altered. The debugger attempts to find the actual type by looking up the name of the virtual table.

Note: to view a C or C++ char pointer as an array first use the ViewAlternate command.

The default binding for this action is:
Mouse3*Click1@Type=viewcommand MakeArray wid=%w

Related topic:


Previous

Next



Copyright © 1999, Green Hills Software. All rights reserved.