Call breakpoint `BPT' in stead of `TRAP'.

This commit is contained in:
pk 1993-11-13 11:20:17 +00:00
parent 9024f9dee1
commit c6cb826f23
12 changed files with 24 additions and 24 deletions

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: md.c,v 1.3 1993/11/10 21:40:50 pk Exp $
* $Id: md.c,v 1.4 1993/11/13 11:20:17 pk Exp $
*/
#include <sys/param.h>
@ -239,7 +239,7 @@ long where;
long *savep;
{
*savep = *(long *)where;
*(char *)where = TRAP;
*(char *)where = BPT;
}
#ifdef NEED_SWAP

View File

@ -1,5 +1,5 @@
/*
* $Id: md.h,v 1.3 1993/10/24 00:52:40 pk Exp $ - I386 dependent definitions
* $Id: md.h,v 1.4 1993/11/13 11:20:19 pk Exp $ - I386 dependent definitions
*/
@ -50,7 +50,7 @@ typedef struct jmpslot {
#define NOP 0x90
#define CALL 0xe890 /* NOP + CALL opcode */
#define JUMP 0xe990 /* NOP + JMP opcode */
#define TRAP 0xcc /* INT 3 */
#define BPT 0xcc /* breakpoint: INT 3 */
/*
* Byte swap defs for cross linking

View File

@ -1,5 +1,5 @@
/*
* $Id: md.c,v 1.4 1993/11/10 21:46:03 pk Exp $
* $Id: md.c,v 1.5 1993/11/13 11:20:34 pk Exp $
*/
#include <sys/param.h>
@ -291,6 +291,6 @@ long where;
long *savep;
{
*savep = *(long *)where;
*(long *)where = TRAP;
*(long *)where = BPT;
}

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: md.h,v 1.4 1993/11/10 21:46:06 pk Exp $
* $Id: md.h,v 1.5 1993/11/13 11:20:37 pk Exp $
*/
/*
@ -122,7 +122,7 @@ typedef struct jmpslot {
#define CALL 0x40000000 /* Call instruction (opcode2) */
#define JMP 0x81c06000 /* Jump %g1 instruction (opcode2) */
#define NOP 0x01000000 /* Delay slot NOP for (reloc_index) */
#define TRAP 0x91d02001 /* ta 0x1 */
#define BPT 0x91d02001 /* breakpoint: `ta 0x1' */
/*

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: md.c,v 1.3 1993/11/10 21:40:50 pk Exp $
* $Id: md.c,v 1.4 1993/11/13 11:20:17 pk Exp $
*/
#include <sys/param.h>
@ -239,7 +239,7 @@ long where;
long *savep;
{
*savep = *(long *)where;
*(char *)where = TRAP;
*(char *)where = BPT;
}
#ifdef NEED_SWAP

View File

@ -1,5 +1,5 @@
/*
* $Id: md.h,v 1.3 1993/10/24 00:52:40 pk Exp $ - I386 dependent definitions
* $Id: md.h,v 1.4 1993/11/13 11:20:19 pk Exp $ - I386 dependent definitions
*/
@ -50,7 +50,7 @@ typedef struct jmpslot {
#define NOP 0x90
#define CALL 0xe890 /* NOP + CALL opcode */
#define JUMP 0xe990 /* NOP + JMP opcode */
#define TRAP 0xcc /* INT 3 */
#define BPT 0xcc /* breakpoint: INT 3 */
/*
* Byte swap defs for cross linking

View File

@ -1,5 +1,5 @@
/*
* $Id: md.c,v 1.4 1993/11/10 21:46:03 pk Exp $
* $Id: md.c,v 1.5 1993/11/13 11:20:34 pk Exp $
*/
#include <sys/param.h>
@ -291,6 +291,6 @@ long where;
long *savep;
{
*savep = *(long *)where;
*(long *)where = TRAP;
*(long *)where = BPT;
}

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: md.h,v 1.4 1993/11/10 21:46:06 pk Exp $
* $Id: md.h,v 1.5 1993/11/13 11:20:37 pk Exp $
*/
/*
@ -122,7 +122,7 @@ typedef struct jmpslot {
#define CALL 0x40000000 /* Call instruction (opcode2) */
#define JMP 0x81c06000 /* Jump %g1 instruction (opcode2) */
#define NOP 0x01000000 /* Delay slot NOP for (reloc_index) */
#define TRAP 0x91d02001 /* ta 0x1 */
#define BPT 0x91d02001 /* breakpoint: `ta 0x1' */
/*

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: md.c,v 1.3 1993/11/10 21:40:50 pk Exp $
* $Id: md.c,v 1.4 1993/11/13 11:20:17 pk Exp $
*/
#include <sys/param.h>
@ -239,7 +239,7 @@ long where;
long *savep;
{
*savep = *(long *)where;
*(char *)where = TRAP;
*(char *)where = BPT;
}
#ifdef NEED_SWAP

View File

@ -1,5 +1,5 @@
/*
* $Id: md.h,v 1.3 1993/10/24 00:52:40 pk Exp $ - I386 dependent definitions
* $Id: md.h,v 1.4 1993/11/13 11:20:19 pk Exp $ - I386 dependent definitions
*/
@ -50,7 +50,7 @@ typedef struct jmpslot {
#define NOP 0x90
#define CALL 0xe890 /* NOP + CALL opcode */
#define JUMP 0xe990 /* NOP + JMP opcode */
#define TRAP 0xcc /* INT 3 */
#define BPT 0xcc /* breakpoint: INT 3 */
/*
* Byte swap defs for cross linking

View File

@ -1,5 +1,5 @@
/*
* $Id: md.c,v 1.4 1993/11/10 21:46:03 pk Exp $
* $Id: md.c,v 1.5 1993/11/13 11:20:34 pk Exp $
*/
#include <sys/param.h>
@ -291,6 +291,6 @@ long where;
long *savep;
{
*savep = *(long *)where;
*(long *)where = TRAP;
*(long *)where = BPT;
}

View File

@ -27,7 +27,7 @@
* (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
* THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
*
* $Id: md.h,v 1.4 1993/11/10 21:46:06 pk Exp $
* $Id: md.h,v 1.5 1993/11/13 11:20:37 pk Exp $
*/
/*
@ -122,7 +122,7 @@ typedef struct jmpslot {
#define CALL 0x40000000 /* Call instruction (opcode2) */
#define JMP 0x81c06000 /* Jump %g1 instruction (opcode2) */
#define NOP 0x01000000 /* Delay slot NOP for (reloc_index) */
#define TRAP 0x91d02001 /* ta 0x1 */
#define BPT 0x91d02001 /* breakpoint: `ta 0x1' */
/*