Deleted Added
full compact
db_machdep.h (83506) db_machdep.h (114349)
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/amd64/include/db_machdep.h 83506 2001-09-15 11:06:07Z dfr $
26 * $FreeBSD: head/sys/amd64/include/db_machdep.h 114349 2003-05-01 01:05:25Z peter $
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>
35
36#define i386_saved_state trapframe
37
38typedef vm_offset_t db_addr_t; /* address - unsigned */
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>
35
36#define i386_saved_state trapframe
37
38typedef vm_offset_t db_addr_t; /* address - unsigned */
39typedef int db_expr_t; /* expression - signed */
39typedef long db_expr_t; /* expression - signed */
40
41typedef struct i386_saved_state db_regs_t;
42extern db_regs_t ddb_regs; /* register state */
43#define DDB_REGS (&ddb_regs)
44
40
41typedef struct i386_saved_state db_regs_t;
42extern db_regs_t ddb_regs; /* register state */
43#define DDB_REGS (&ddb_regs)
44
45#define PC_REGS(regs) ((db_addr_t)(regs)->tf_eip)
45#define PC_REGS(regs) ((db_addr_t)(regs)->tf_rip)
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
53#define FIXUP_PC_AFTER_BREAK ddb_regs.tf_eip -= 1;

--- 40 unchanged lines hidden ---
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
53#define FIXUP_PC_AFTER_BREAK ddb_regs.tf_eip -= 1;

--- 40 unchanged lines hidden ---