db_machdep.h (51931) | db_machdep.h (83506) |
---|---|
1/* 2 * Mach Operating System 3 * Copyright (c) 1991,1990 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 9 unchanged lines hidden (view full) --- 18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 19 * School of Computer Science 20 * Carnegie Mellon University 21 * Pittsburgh PA 15213-3890 22 * 23 * any improvements or extensions that they make and grant Carnegie Mellon 24 * the rights to redistribute these changes. 25 * | 1/* 2 * Mach Operating System 3 * Copyright (c) 1991,1990 Carnegie Mellon University 4 * All Rights Reserved. 5 * 6 * Permission to use, copy, modify and distribute this software and its 7 * documentation is hereby granted, provided that both the copyright 8 * notice and this permission notice appear in all copies of the --- 9 unchanged lines hidden (view full) --- 18 * Software Distribution Coordinator or Software.Distribution@CS.CMU.EDU 19 * School of Computer Science 20 * Carnegie Mellon University 21 * Pittsburgh PA 15213-3890 22 * 23 * any improvements or extensions that they make and grant Carnegie Mellon 24 * the rights to redistribute these changes. 25 * |
26 * $FreeBSD: head/sys/i386/include/db_machdep.h 51931 1999-10-04 13:55:35Z marcel $ | 26 * $FreeBSD: head/sys/i386/include/db_machdep.h 83506 2001-09-15 11:06:07Z dfr $ |
27 */ 28 29#ifndef _MACHINE_DB_MACHDEP_H_ 30#define _MACHINE_DB_MACHDEP_H_ 31 32#include <machine/frame.h> 33#include <machine/psl.h> 34#include <machine/trap.h> --- 8 unchanged lines hidden (view full) --- 43#define DDB_REGS (&ddb_regs) 44 45#define PC_REGS(regs) ((db_addr_t)(regs)->tf_eip) 46 47#define BKPT_INST 0xcc /* breakpoint instruction */ 48#define BKPT_SIZE (1) /* size of breakpoint inst */ 49#define BKPT_SET(inst) (BKPT_INST) 50 | 27 */ 28 29#ifndef _MACHINE_DB_MACHDEP_H_ 30#define _MACHINE_DB_MACHDEP_H_ 31 32#include <machine/frame.h> 33#include <machine/psl.h> 34#include <machine/trap.h> --- 8 unchanged lines hidden (view full) --- 43#define DDB_REGS (&ddb_regs) 44 45#define PC_REGS(regs) ((db_addr_t)(regs)->tf_eip) 46 47#define BKPT_INST 0xcc /* breakpoint instruction */ 48#define BKPT_SIZE (1) /* size of breakpoint inst */ 49#define BKPT_SET(inst) (BKPT_INST) 50 |
51#define BKPT_SKIP ddb_regs.tf_eip += 1 52 |
|
51#define FIXUP_PC_AFTER_BREAK ddb_regs.tf_eip -= 1; 52 53#define db_clear_single_step(regs) ((regs)->tf_eflags &= ~PSL_T) 54#define db_set_single_step(regs) ((regs)->tf_eflags |= PSL_T) 55 56#define IS_BREAKPOINT_TRAP(type, code) ((type) == T_BPTFLT) 57/* 58 * Watchpoints are not supported. The debug exception type is in %dr6 --- 33 unchanged lines hidden --- | 53#define FIXUP_PC_AFTER_BREAK ddb_regs.tf_eip -= 1; 54 55#define db_clear_single_step(regs) ((regs)->tf_eflags &= ~PSL_T) 56#define db_set_single_step(regs) ((regs)->tf_eflags |= PSL_T) 57 58#define IS_BREAKPOINT_TRAP(type, code) ((type) == T_BPTFLT) 59/* 60 * Watchpoints are not supported. The debug exception type is in %dr6 --- 33 unchanged lines hidden --- |