Deleted Added
full compact
db_machdep.h (3315) db_machdep.h (3722)
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 * $Id: db_machdep.h,v 1.4 1994/09/08 11:49:04 bde Exp $
26 * $Id: db_machdep.h,v 1.5 1994/10/02 19:36:30 phk Exp $
27 */
28
29#ifndef _I386_DB_MACHDEP_H_
30#define _I386_DB_MACHDEP_H_
31
32/*
33 * Machine-dependent defines for new kernel debugger.
34 */

--- 15 unchanged lines hidden (view full) ---

50
51typedef vm_offset_t db_addr_t; /* address - unsigned */
52typedef int db_expr_t; /* expression - signed */
53
54typedef struct i386_saved_state db_regs_t;
55extern db_regs_t ddb_regs; /* register state */
56#define DDB_REGS (&ddb_regs)
57
27 */
28
29#ifndef _I386_DB_MACHDEP_H_
30#define _I386_DB_MACHDEP_H_
31
32/*
33 * Machine-dependent defines for new kernel debugger.
34 */

--- 15 unchanged lines hidden (view full) ---

50
51typedef vm_offset_t db_addr_t; /* address - unsigned */
52typedef int db_expr_t; /* expression - signed */
53
54typedef struct i386_saved_state db_regs_t;
55extern db_regs_t ddb_regs; /* register state */
56#define DDB_REGS (&ddb_regs)
57
58#define PC_REGS(regs) ((regs)->tf_cs == 0x08 ? (db_addr_t)(regs)->tf_eip : 0)
58#define PC_REGS(regs) (((regs)->tf_cs & 0xfffc) == 0x08 \
59 ? (db_addr_t)(regs)->tf_eip : 0)
59
60#define BKPT_INST 0xcc /* breakpoint instruction */
61#define BKPT_SIZE (1) /* size of breakpoint inst */
62#define BKPT_SET(inst) (BKPT_INST)
63
64#define FIXUP_PC_AFTER_BREAK ddb_regs.tf_eip -= 1;
65
66#define db_clear_single_step(regs) ((regs)->tf_eflags &= ~PSL_T)

--- 52 unchanged lines hidden ---
60
61#define BKPT_INST 0xcc /* breakpoint instruction */
62#define BKPT_SIZE (1) /* size of breakpoint inst */
63#define BKPT_SET(inst) (BKPT_INST)
64
65#define FIXUP_PC_AFTER_BREAK ddb_regs.tf_eip -= 1;
66
67#define db_clear_single_step(regs) ((regs)->tf_eflags &= ~PSL_T)

--- 52 unchanged lines hidden ---