Guardian Procedure Calls Reference Manual (G06.25+)
Guardian Procedure Calls (H-K)
Guardian Procedure Calls Reference Manual—522629-013
7-18
HIST_FORMAT_ Procedure
To specify a nondefault format selection, place an assignment to
workspace.FormatSelect after the HIST_INIT_ call but outside the WHILE loop.
Example Traces: Case 1
The following traces are produced by a procedure named xtracer called from a native
signal handler. xtracer starts the trace by calling the HIST_INIT_ and HIST_FORMAT_
procedures. A SIGSEGV signal is generated in a procedure that is invoked from a
CALLABLE procedure. The CALLABLE procedure is invoked from the unprivileged
procedure HIST_TEST_ACTOR_.
For the first trace, the
options parameter of HIST_INIT_ and the FormatSelect
field of the
workspace structure passed to HIST_FORMAT_ are set up as follows:
•
options equals HO_Init_Here.
•
FormatSelect equals HF_trace (the default value).
An example trace In the TNS/R environment :
An example trace In the TNS/E environment :
For the next trace:
•
options equals HO_Init_Here + HO_ShowProtected.
•
FormatSelect equals HF_trace (the default value).
The HO_ShowProtected option allows the resulting trace to show the procedure
named doer that was trapped using the invalid address.
An example trace in the TNS/R environment:
xtracer + 0x60 (UCr)
handler + 0x170 (UCr)
...
HIST_TEST_ACTOR_ + 0x2F0 (UCr)
PROGRAM + 0x510 (UCr
options = HO_Init_Here
FormatSelect = HF_trace
xtracer + 0x110 (UCr)
handler + 0x220 (UCr)
...
HIST_TEST_ACTOR + 0x80 (UCr)
main + 0xAD0 (UCr)
_MAIN + 0x160 (UCr)
xtracer + 0x60 (UCr)
handler + 0x170 (UCr)
---
doer + 0x5C (UCr)
...
HIST_TEST_ACTOR_ + 0x2F0 (UCr)
PROGRAM + 0x510 (UCr)