Deleted Added
full compact
db_machdep.h (75666) db_machdep.h (83506)
1/* $FreeBSD: head/sys/ia64/include/db_machdep.h 75666 2001-04-18 14:15:45Z dfr $ */
1/* $FreeBSD: head/sys/ia64/include/db_machdep.h 83506 2001-09-15 11:06:07Z dfr $ */
2/* $NetBSD: db_machdep.h,v 1.6 1997/09/06 02:02:25 thorpej Exp $ */
3
4/*
5 * Copyright (c) 1995 Carnegie-Mellon University.
6 * All rights reserved.
7 *
8 * Author: Chris G. Demetriou
9 *

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

36 */
37
38#include <sys/param.h>
39#include <vm/vm.h>
40#include <machine/frame.h>
41
42#define DB_NO_AOUT
43
2/* $NetBSD: db_machdep.h,v 1.6 1997/09/06 02:02:25 thorpej Exp $ */
3
4/*
5 * Copyright (c) 1995 Carnegie-Mellon University.
6 * All rights reserved.
7 *
8 * Author: Chris G. Demetriou
9 *

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

36 */
37
38#include <sys/param.h>
39#include <vm/vm.h>
40#include <machine/frame.h>
41
42#define DB_NO_AOUT
43
44struct ia64_bundle {
45 u_int64_t slot[3];
46 int template;
47};
48
44typedef vm_offset_t db_addr_t; /* address - unsigned */
45typedef long db_expr_t; /* expression - signed */
46typedef struct trapframe db_regs_t;
47db_regs_t ddb_regs; /* register state */
48#define DDB_REGS (&ddb_regs)
49
50#define PC_REGS(regs) ((db_addr_t)(regs)->tf_cr_iip \
51 + (((regs)->tf_cr_ipsr >> 41) & 3))
52
49typedef vm_offset_t db_addr_t; /* address - unsigned */
50typedef long db_expr_t; /* expression - signed */
51typedef struct trapframe db_regs_t;
52db_regs_t ddb_regs; /* register state */
53#define DDB_REGS (&ddb_regs)
54
55#define PC_REGS(regs) ((db_addr_t)(regs)->tf_cr_iip \
56 + (((regs)->tf_cr_ipsr >> 41) & 3))
57
53#define BKPT_INST 0x00000080 /* breakpoint instruction */
54#define BKPT_SIZE (4) /* size of breakpoint inst */
55#define BKPT_SET(inst) (BKPT_INST)
58#define BKPT_WRITE(addr, storage) db_write_breakpoint(addr, storage)
59#define BKPT_CLEAR(addr, storage) db_clear_breakpoint(addr, storage)
60#define BKPT_INST_TYPE u_int64_t
56
61
57#define FIXUP_PC_AFTER_BREAK
62#define BKPT_SKIP db_skip_breakpoint()
58
63
59#define db_clear_single_step(regs) 0
60#define db_set_single_step(regs) 0
64#define db_clear_single_step(regs) ddb_regs.tf_cr_ipsr &= ~IA64_PSR_SS
65#define db_set_single_step(regs) ddb_regs.tf_cr_ipsr |= IA64_PSR_SS
61
66
62#define IS_BREAKPOINT_TRAP(type, code) 0
67#define IS_BREAKPOINT_TRAP(type, code) (type == IA64_VEC_BREAK)
63#define IS_WATCHPOINT_TRAP(type, code) 0
64
65#define inst_trap_return(ins) 0
66#define inst_return(ins) 0
67#define inst_call(ins) 0
68#define inst_branch(ins) 0
69#define inst_load(ins) 0
70#define inst_store(ins) 0

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

81
82u_long db_register_value(db_regs_t *, int);
83int kdb_trap(int vector, struct trapframe *regs);
84
85u_int64_t *db_rse_current_frame(void);
86u_int64_t *db_rse_previous_frame(u_int64_t *bsp, int sof);
87u_int64_t *db_rse_register_address(u_int64_t *bsp, int regno);
88
68#define IS_WATCHPOINT_TRAP(type, code) 0
69
70#define inst_trap_return(ins) 0
71#define inst_return(ins) 0
72#define inst_call(ins) 0
73#define inst_branch(ins) 0
74#define inst_load(ins) 0
75#define inst_store(ins) 0

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

86
87u_long db_register_value(db_regs_t *, int);
88int kdb_trap(int vector, struct trapframe *regs);
89
90u_int64_t *db_rse_current_frame(void);
91u_int64_t *db_rse_previous_frame(u_int64_t *bsp, int sof);
92u_int64_t *db_rse_register_address(u_int64_t *bsp, int regno);
93
94void db_read_bundle(db_addr_t addr, struct ia64_bundle *bp);
95void db_write_bundle(db_addr_t addr, struct ia64_bundle *bp);
96void db_write_breakpoint(db_addr_t addr, u_int64_t *storage);
97void db_clear_breakpoint(db_addr_t addr, u_int64_t *storage);
98void db_skip_breakpoint(void);
99
89/*
90 * Pretty arbitrary
91 */
92#define DB_SMALL_VALUE_MAX 0x7fffffff
93#define DB_SMALL_VALUE_MIN (-0x400001)
94
95/*
96 * We define some of our own commands.
97 */
98#define DB_MACHINE_COMMANDS
99
100/*
101 * We use Elf64 symbols in DDB.
102 */
103#define DB_ELFSIZE 64
104
105#endif /* _ALPHA_DB_MACHDEP_H_ */
100/*
101 * Pretty arbitrary
102 */
103#define DB_SMALL_VALUE_MAX 0x7fffffff
104#define DB_SMALL_VALUE_MIN (-0x400001)
105
106/*
107 * We define some of our own commands.
108 */
109#define DB_MACHINE_COMMANDS
110
111/*
112 * We use Elf64 symbols in DDB.
113 */
114#define DB_ELFSIZE 64
115
116#endif /* _ALPHA_DB_MACHDEP_H_ */