Native Inspect Manual (H06.04+)
Syntax of Native Inspect Commands
Native Inspect Manualā528122-005
4-57
print command
ā¢
For C/C++, character pointers are displayed until a terminating null or the
configured maximum number of elements is displayed. Use the set print elements
number command to control the maximum number of elements printed for strings
or arrays.
For pTAL, only one character of a pointer to a string is printed. An array of strings
is printed as an array with each different element printed separately. If the
elements are all characters, however, they are printed as one string.
Examples
To display constant expressions (compared to display of eq command):
To display variable addresses:
To display the address of a function:
To display character pointers (note that character pointers are automatically
dereferenced):
(eInspect 3,638): print /x 0x6ffffe40 + (47 *7)
$9 = 0x6fffff89
(eInspect 3,638): print /c 64
$8 = 64 '@ā
(eInspect 3,638): eq 64
OCT: 000100 DEC: 64 HEX: 0x0040 ASCII: '...@'
(eInspect 3,657): print &PCBList
$5 = (struct PCBList_s *) 0x8000320
(eInspect 3,663): print &PCB_addAttribute
$12 = (void (*)(PCB_t *, PCBAttribute_t *)) 0x70001820:0
<PCB_addAttribute>
(eInspect 3,638): print new_ptr
$11 = 0x80001c0 "In print_and_break\nā(eInspect 3,638):set print elements
10
(eInspect 3,638): print new_ptr
$14 = 0x80001c0 "In print_a"...










