
To break on an access to a variable
If you started the debugger using the Startall script, skip this section. Access
breakpoints are disabled because the analyzer has been configured to use the
Trig2 trigger for other purposes.
You can also set breakpoints on a read, a write, or any access of a variable.
This helps to locate defects due to multiple functions accessing the same
variable. Suppose you want to break on the access of the variable num_checks.
("&num_checks" should still be in the entry buffer.)
1 Set the breakpoint by selecting Breakpoints
→
Set
→
Read/Write () .
2 R un the program by clicking on the Run action key.
When the program stops, the code window shows that the program stopped at
the next reference to the variable num_checks. Due to the latency of the
emulation analyzer, the processor may halt up to two instruction cycles after
the breakpoint has been detected.
Try running the program a few more times to see where it stops. (Notice that
num_checks is passed by reference to interrupt_sim. Since counter points to the
same address as num_checks, the debugger stops at references to counter.)
3 Delete the access breakpoint. Select Window
→
Breakpoints, place the mouse
in the Breakpoint window, press and hold the right mouse button, and choose
Delete All Breakpoints.
Chapter 1: Getting Started with the Graphical Interface
To break on an access to a variable
31
Содержание B1476 68020
Страница 1: ...User s Guide HP B1476 68020 030 Debugger Emulator ...
Страница 25: ...Part 1 Quick Start Guide ...
Страница 26: ...Part 1 2 ...
Страница 27: ...1 Getting Started with the Graphical Interface How to get started using the debugger s graphical interface 3 ...
Страница 39: ......
Страница 76: ...Chapter 2 Getting Started with the Standard Interface To end the debugging session 52 ...
Страница 77: ...Part 2 User s Guide ...
Страница 78: ...Part 2 54 ...
Страница 79: ...3 Entering Debugger Commands How to enter debugger commands using the mouse or the keyboard 55 ...
Страница 112: ...Chapter 3 Entering Debugger Commands Viewing Debugger Status 88 ...
Страница 113: ...4 Loading and Executing Programs How to load a program into the debugger and control its execution 89 ...
Страница 152: ...Chapter 4 Loading and Executing Programs Using the Debugger with the Branch Validator 128 ...
Страница 153: ...5 Viewing Code and Data How to find and display source code and memory contents 129 ...
Страница 206: ...Chapter 5 Viewing Code and Data If problems occur when using simulated I O 182 ...
Страница 230: ...Chapter 6 Making Trace Measurements If tracing is not triggered as expected 206 ...
Страница 243: ...8 Using Macros and Command Files How to use macros and command files to make debugging easier 219 ...
Страница 270: ...Chapter 8 Using Macros and Command Files Using Command Files 246 ...
Страница 307: ...10 Configuring the Emulator How to configure the emulator for your target system 283 ...
Страница 321: ......
Страница 353: ...Part 3 Concept Guide ...
Страница 354: ...Part 3 330 ...
Страница 355: ...11 X Resources and the Graphical Interface An introduction to X resources 331 ...
Страница 368: ...Chapter 11 X Resources and the Graphical Interface 344 ...
Страница 369: ...Part 4 Reference ...
Страница 370: ...Part 4 346 ...
Страница 371: ...12 Debugger Commands Detailed descriptions of command line commands 347 ...
Страница 524: ...Trace Trigger Chapter 12 Trace Trigger 500 ...
Страница 574: ...Chapter 13 Expressions and Symbols in Debugger Commands Symbolic Referencing 550 ...
Страница 575: ...14 Reserved Symbols 551 ...
Страница 579: ...15 Predefined Macros 555 ...
Страница 616: ...Chapter 15 Predefined Macros write 592 ...
Страница 617: ...16 Debugger Error Messages A list of the error messages generated by the debugger 593 ...
Страница 635: ...17 Debugger Versions Information about how this version of the debugger differs from previous versions 611 ...
Страница 638: ...Chapter 17 Debugger Versions 614 ...
Страница 639: ...Part 5 Installation Guide ...
Страница 640: ...Part 5 616 ...
Страница 641: ...18 Installation How to install the debugger software on your computer 617 ...
Страница 671: ...Chapter 18 Installation Configuring Terminals for Use with the Debugger 647 ...
Страница 721: ...X windows resizing large 650 X windows running on bit mapped displays 639 Z zero flag Z 554 Index 697 ...
Страница 722: ...Index 698 ...