Use the following techniques to select variable names from windows for
the operations described in the Additional Topics.
When selecting names, follow the syntax of the source programming
language:
- To specify a scalar (nonaggregate) variable, such as an integer,
real, Boolean, or enumeration type, select the variable's name.
- To specify an entire aggregate, such as array or structure
(record), select the variable's name.
- To specify a single element of an aggregate variable, select the
entity using the language syntax. For example:
+ The string arr2[7] specifies element 7 of array arr2 in the C
language.
+ The string employee.address specifies the component address of
record (structure) employee in the Pascal language.
- To specify the object designated by a pointer variable, select the
entity following the language syntax. For example, the string
*int_point specifies the object designated by pointer int_point in
the C language.
Select character strings from windows as follows:
- In any window, to select a string delimited by blank spaces, use
the standard DECwindows Motif word-selection technique: position
the mouse pointer on that string and then double click MB1.
- In any window, to select an arbitrary character string, use the
standard DECwindows Motif text-selection technique: position the
mouse pointer on the first character, press and hold MB1 while
dragging the mouse pointer over the string, and then release MB1.
- In the debugger source view, you also have the option of using
language-sensitive text selection. To select a string delimited by
language-dependent identifier boundaries, position the mouse
pointer on that string and press Ctrl/MB1.
For example, suppose the source view contains the character string
arr2[m], then:
+ To select arr2, position the mouse pointer on arr2 and press
Ctrl/MB1.
+ To select m, position the mouse pointer on m and press
Ctrl/MB1.
You can change the key sequence for language-sensitive text
selection as explained in the Defining the Key Sequence for
Language-Sensitive Text Selection topic.