Instruction at Address A or Address B is Executed

You can set triggers A and B and collect trace using the Instruction at Address A or Address B is Executed trigger type by following the steps explained in the topic Instruction at Address A, Then Instruction at Address B are Executed. The only difference is that you need to select the Instruction at Address A or Address B is Executed option from the Trigger Type drop-down list.

The figure below shows the trace data that is collected after setting this trigger condition. The collection of the trace data starts from the address corresponding to trigger A, that is the f1() function, which occurs first in execution.

Figure 1. Trace Data - Instruction at Address A or Address B is Executed
Trace Data - Instruction at Address A or Address B is Executed