Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

Source code: netscape/jsdebug/DebugBreakHook.java


1   /* -*- Mode: C; tab-width: 4; indent-tabs-mode: nil; c-basic-offset: 2 -*-
2    *
3    * The contents of this file are subject to the Netscape Public
4    * License Version 1.1 (the "License"); you may not use this file
5    * except in compliance with the License. You may obtain a copy of
6    * the License at http://www.mozilla.org/NPL/
7    *
8    * Software distributed under the License is distributed on an "AS
9    * IS" basis, WITHOUT WARRANTY OF ANY KIND, either express or
10   * implied. See the License for the specific language governing
11   * rights and limitations under the License.
12   *
13   * The Original Code is mozilla.org code.
14   *
15   * The Initial Developer of the Original Code is Netscape
16   * Communications Corporation.  Portions created by Netscape are
17   * Copyright (C) 1998 Netscape Communications Corporation. All
18   * Rights Reserved.
19   *
20   * Contributor(s): 
21   */
22  
23  package netscape.jsdebug;
24  
25  /**
26  * DebugBreakHook must be subclassed to respond when a debug break is 
27  * requested
28  *
29  * @author  John Bandhauer
30  * @version 1.0
31  * @since   1.0
32  */
33  public class DebugBreakHook extends Hook {
34  
35      /**
36       * Override this method to respond just before a thread
37       * reaches a particular instruction.
38       * <p>
39       * @param debug ThreadState representing the current state
40       * @param pc the location of the instruction about to be executed
41       */
42      public void aboutToExecute(ThreadStateBase debug, PC pc) {
43          // defaults to no action
44      }
45  }