OpenCores
URL https://opencores.org/ocsvn/or1k/or1k/trunk

Subversion Repositories or1k

[/] [or1k/] [trunk/] [gdb-5.0/] [gdb/] [nindy-share/] [stop.h] - Diff between revs 107 and 1765

Go to most recent revision | Only display areas with differences | Details | Blame | View Log

Rev 107 Rev 1765
/******************************************************************
/******************************************************************
   Copyright 1990, 1992 Free Software Foundation, Inc.
   Copyright 1990, 1992 Free Software Foundation, Inc.
 
 
   This code was donated by Intel Corp.
   This code was donated by Intel Corp.
 
 
   Intel hereby grants you permission to copy, modify, and
   Intel hereby grants you permission to copy, modify, and
   distribute this software and its documentation.  Intel grants
   distribute this software and its documentation.  Intel grants
   this permission provided that the above copyright notice
   this permission provided that the above copyright notice
   appears in all copies and that both the copyright notice and
   appears in all copies and that both the copyright notice and
   this permission notice appear in supporting documentation.  In
   this permission notice appear in supporting documentation.  In
   addition, Intel grants this permission provided that you
   addition, Intel grants this permission provided that you
   prominently mark as not part of the original any modifications
   prominently mark as not part of the original any modifications
   made to this software or documentation, and that the name of
   made to this software or documentation, and that the name of
   Intel Corporation not be used in advertising or publicity
   Intel Corporation not be used in advertising or publicity
   pertaining to distribution of the software or the documentation
   pertaining to distribution of the software or the documentation
   without specific, written prior permission.
   without specific, written prior permission.
 
 
   Intel Corporation does not warrant, guarantee or make any
   Intel Corporation does not warrant, guarantee or make any
   representations regarding the use of, or the results of the use
   representations regarding the use of, or the results of the use
   of, the software and documentation in terms of correctness,
   of, the software and documentation in terms of correctness,
   accuracy, reliability, currentness, or otherwise; and you rely
   accuracy, reliability, currentness, or otherwise; and you rely
   on the software, documentation and results solely at your own
   on the software, documentation and results solely at your own
   risk.                                                          */
   risk.                                                          */
/******************************************************************/
/******************************************************************/
 
 
 
 
/******************************************************************
/******************************************************************
 *
 *
 *   REASONS WHY NINDY CAN STOP EXECUTING AN APPLICATION PROGRAM
 *   REASONS WHY NINDY CAN STOP EXECUTING AN APPLICATION PROGRAM
 *
 *
 * When NINDY stops executing an application program that was running
 * When NINDY stops executing an application program that was running
 * under remote host ("gdb") control, it signals the host by sending
 * under remote host ("gdb") control, it signals the host by sending
 * a single ^P.  The host can then query as to the reason for the halt.
 * a single ^P.  The host can then query as to the reason for the halt.
 * NINDY responds with two bytes of information.
 * NINDY responds with two bytes of information.
 *
 *
 * The first byte is a boolean flag that indicates whether or not
 * The first byte is a boolean flag that indicates whether or not
 * the application has exited.
 * the application has exited.
 *
 *
 * If the flag is true, the second byte contains the exit code.
 * If the flag is true, the second byte contains the exit code.
 *
 *
 * If the flag is false, the second byte contains a "reason for
 * If the flag is false, the second byte contains a "reason for
 * stopping" code.  This file defines the possible values of that
 * stopping" code.  This file defines the possible values of that
 * code.
 * code.
 *
 *
 * There are three categories of reasons why the halt may have occurred:
 * There are three categories of reasons why the halt may have occurred:
 * faults, traces, and software interactions.  The first two categories
 * faults, traces, and software interactions.  The first two categories
 * are processor-dependent; the values of these codes are tightly coupled
 * are processor-dependent; the values of these codes are tightly coupled
 * to the hardware and should not be changed without first examining
 * to the hardware and should not be changed without first examining
 * src/nindy/common/fault.c.  The software interactions involve
 * src/nindy/common/fault.c.  The software interactions involve
 * communication between NINDY and the host debugger;  their codes are
 * communication between NINDY and the host debugger;  their codes are
 * arbitrary.
 * arbitrary.
 *
 *
 ******************************************************************/
 ******************************************************************/
 
 
#define FAULT_PARALLEL  0x00
#define FAULT_PARALLEL  0x00
#define FAULT_UNKNOWN   0x01
#define FAULT_UNKNOWN   0x01
#define FAULT_OPERATION 0x02
#define FAULT_OPERATION 0x02
#define FAULT_ARITH     0x03
#define FAULT_ARITH     0x03
#define FAULT_FP        0x04
#define FAULT_FP        0x04
#define FAULT_CONSTR    0x05
#define FAULT_CONSTR    0x05
#define FAULT_VM        0x06
#define FAULT_VM        0x06
#define FAULT_PROTECT   0x07
#define FAULT_PROTECT   0x07
#define FAULT_MACHINE   0x08
#define FAULT_MACHINE   0x08
#define FAULT_STRUCT    0x09
#define FAULT_STRUCT    0x09
#define FAULT_TYPE      0x0a
#define FAULT_TYPE      0x0a
        /* 0x0b reserved */
        /* 0x0b reserved */
#define FAULT_PROCESS   0x0c
#define FAULT_PROCESS   0x0c
#define FAULT_DESC      0x0d
#define FAULT_DESC      0x0d
#define FAULT_EVENT     0x0e
#define FAULT_EVENT     0x0e
        /* 0x0f reserved */
        /* 0x0f reserved */
 
 
#define LAST_FAULT      0x0f
#define LAST_FAULT      0x0f
 
 
#define TRACE_STEP      0x10
#define TRACE_STEP      0x10
#define TRACE_BRANCH    0x11
#define TRACE_BRANCH    0x11
#define TRACE_CALL      0x12
#define TRACE_CALL      0x12
#define TRACE_RET       0x13
#define TRACE_RET       0x13
#define TRACE_PRERET    0x14
#define TRACE_PRERET    0x14
#define TRACE_SVC       0x15
#define TRACE_SVC       0x15
#define TRACE_BKPT      0x16
#define TRACE_BKPT      0x16
 
 
#define STOP_SRQ        0xfe
#define STOP_SRQ        0xfe
        /* Application program has service request to make of host */
        /* Application program has service request to make of host */
 
 
#define STOP_GDB_BPT    0xff
#define STOP_GDB_BPT    0xff
        /* Application program has reached breakpoint (fmark) set by host */
        /* Application program has reached breakpoint (fmark) set by host */
 
 

powered by: WebSVN 2.1.0

© copyright 1999-2024 OpenCores.org, equivalent to Oliscience, all rights reserved. OpenCores®, registered trademark.