The following example shows a structure with two elements being displayed. Each element of the structure is formatted according to its type and displayed.
+--------------------------------------------------------------------------------+ | Display Module Source | | Program: TEST1 Library: DEBUG Module: MAIN | | 1 struct { | | 2 char charValue; | | 3 unsigned long intValue; | | 4 } test; | | 5 | | 6 int main(){ | | 7 test.intValue = 10; | | 8 test.charValue = 'c'; | | 9 test.charValue = 11; | | 10 return 0; | | 11 } | | Bottom | | Debug . . . eval test__________________________________________________ | | ________________________________________________________________________ | | F3=Exit program F6=Add/Clear breakpoint F10=Step F11=Display variable | | F12=Resume F17=Watch variable F18=Work with watch F24=More keys | +--------------------------------------------------------------------------------+
+--------------------------------------------------------------------------------+ | Evaluate Expression | | Previous debug expressions | | > BREAK 9 | | > EVAL test | | test.charValue = 'c' | | test.intValue = 10 | +--------------------------------------------------------------------------------+
(C) Copyright IBM Corporation 1992, 2005. All Rights Reserved.