Native Inspect Manual (H06.13+, J06.03+)
• To set the number of elements to print:
(eInspect 4,774): set print elements 5
(eInspect 4,774): print pcb->attribute
$5 = {0x0,
0x0,
0x0,
0x0,
0x0...}
• To set print dereference, use the following commands:
(eInspect 4,774): list 1
1 char * hw = "hello world!";
2 main()
3 {
4 printf("%s\n", hw);
* 5 }
(eInspect): show print dereference
Suppress dereferencing of char * is on.
(eInspect): set print dereference
(eInspect): print hw
$3 = 0x70000900 "hello world!"
(eInspect): set print dereference off
(eInspect): print hw
$4 = 0x70000900
• To set max-function-matches, use the following commands:
(eInspect): set max-function-matches 5
(eInspect): show max-function-matches
Maximum number of function matches reported by info functions
(set to zero to report all matches) is 5.
(eInspect): set max-function-matches 0
(eInspect): show max-function-matches
Maximum number of function matches reported by info functions
(set to zero to report all matches) is unlimited.
• Printing an optimized variable shows where the variable has not been optimized away and
is available. This is intended mostly for “live target” (non-snapshot) debugging. You can then
either move forward in the execution or place a break at an earlier point to find a line/address
where the value of a variable prints successfully. The number of closest locations is set to 3,
but can be controlled using set optimized-loc-print:
(eInspect 3,904):p i
Due to optimization, the address/value of "i" is unknown for the
current location.
Closest location(s) where it is available:
1) 0x70001452 to 0x70001540 (in line 84 to 88) in register $r39
2) 0x700017c1 to 0x70001890 (in line 99 to 103) in register $r32
set Command (variable)
Evaluates an expression and assigns the resulting value to a variable.
set [variable] var-name {expression|value}
Where:
var-name
The name of a variable in the current process.
expression
is an expression whose value you want to be assigned to var-name. See Syntax of expression
(page 62).
114 Native Inspect Command Syntax










