To Trace Activity Leading Up To A Program Halt - HP MC68360 User Manual

Emulator / analyzer graphical user interface
Table of Contents

Advertisement

Store-qualify writes to the variable, and use prestore to capture the instructions that
caused those writes to occur (perhaps by prestoring program reads).
Examples
Specify a prestore qualifier:
trace prestore address not range gen_ascii_data thru
gen_ascii_data end status prog and read only
long_aligned gen_ascii_data
Disable prestore qualification:
trace prestore anything

To trace activity leading up to a program halt

• Choose Trace→Until Stop.
• Using the command line, trace on a program halt by entering:
trace on_halt
The above commands cause the analyzer to continuously fill the trace buffer until
you issue a Trace→Stop or stop_trace command.
Sometimes you may have a program failure that can't be attributed to a specific
trigger condition. For example, the emulator may access guarded memory and
break to the monitor. You want to trace the events leading up to the guarded
memory access but you don't know what to specify for a trigger. Use the above
command. The analyzer will capture and record states until the break occurs. The
trace list will display the last processor states leading up to the break condition.
Note that the "trace until stop" command may not capture the desired information
when you are using a foreground monitor (unless the code that causes the break
also causes the processor to halt) because the analyzer will continue to capture
foreground monitor states after the break. When using a foreground monitor, you
can use the command line to enter a trace command that stores only states outside
the range of the foreground monitor program (for example, trace on_halt only not
range <mon_start_addr> thru <mon_end_addr> on_halt).
Chapter 7: Using the Emulation-Bus Analyzer
Making Complex Trace Measurements
219

Advertisement

Table of Contents
loading

This manual is also suitable for:

Mc68en36064780a

Table of Contents