104
Triggering Examples
Single-Machine Trigger Examples
To trigger on entry to a function
This sequence triggers on entry to a function only when it is called by
one particular function.
1Go to the state analyzers Trigger menu.
2Define the terms F1_START and F1_END to represent the start
and end addresses of the calling function. Define F2_START to
represent the start address of the called function.
3Change State Sequence Level 1s function to "Find event2 n
times after event1 before event3 occurs."
4In the pop-up menu, enter the following sequence specification:
While storing anystate Find "F2_START" "1" times afte r "F1_START"
before "F1_END" occurs.
This sequence specification assumes there is some conditional logic in
function F1 that chooses whether or not to call function F2. Thus, if F1
ends without the analyzer having seen F2, the sequence restarts.