HPlogo HP/DDE Debugger User's Guide: HP 9000 Series 700/800 Computers > Chapter 3 Using Monitors (Breakpoints, Watchpoints, Traces, and Intercepts)

Setting Intercepts

» 

Technical documentation

Complete book in PDF

 » Table of Contents

 » Glossary

 » Index

Intercepts are like breakpoints that are set on signals and other events. For example, when a signal event occurs, target program execution stops, and a message is displayed indicating which signal was generated. Execution stops before the signal is delivered to the target program.

By default, the debugger sets intercepts all HP-UX signals. It also sets, then suspends, intercepts on image loading and unloading, certain thread events, and exit events. In C++ programs, you can also set intercepts on catch and throw events.

Using the Intercepts Dialog Box

The Intercepts dialog box allows you to view and modify intercepts. Invoke it by selecting Execution:Signals/Intercepts. The dialog box in Figure 3-8 “The Intercepts Dialog Box ” appears.

From the Intercepts dialog box, you can:

  1. View the current status of all available intercepts.

    This list shows all the attributes of each intercept, and also shows the monitor number and the number of times the intercept has been received.

    The monitor number does not correspond to the HP-UX signal number. See Appendix C “Target Managers ” for more information on signal numbers.

  2. Temporarily disable or re-activate selected intercepts.

  3. Control whether or not messages appear when an intercept occurs.

  4. Temporarily disable or re-activate all intercepts.

  5. Specify how many times an intercept should be ignored before the debugger handles it.

  6. Specify debugger commands to execute when an intercept occurs.

Figure 3-8 The Intercepts Dialog Box

[The Intercepts Dialog Box]

Using the intercept Command

You can use the intercept command to create and control intercepts.

In addition, you can use:

  • list intercepts to show all intercept requests and the monitor number for each intercept.

  • activate intercepts to restore suspended intercepts.

  • suspend intercepts to suspend active intercepts.

  • delete intercepts to remove intercepts.

See the online command reference for more information on these commands.