diff options
author | Hugh Graham <hugh@cvs.openbsd.org> | 2001-01-24 09:38:05 +0000 |
---|---|---|
committer | Hugh Graham <hugh@cvs.openbsd.org> | 2001-01-24 09:38:05 +0000 |
commit | 585f17653ad6d66d99c6675b195da272e116db33 (patch) | |
tree | ed10850f2a69b78b2f9a5ecdca875359c9f29a1b /sys/arch/i386/include | |
parent | 300d6825a992518033aed97192b3a65d348a5994 (diff) |
KGDB for i386 from NetBSD via niklas, with tweaks and accommodations.
Tested by various, vetted by mickey & theo.
Diffstat (limited to 'sys/arch/i386/include')
-rw-r--r-- | sys/arch/i386/include/db_machdep.h | 17 |
1 files changed, 12 insertions, 5 deletions
diff --git a/sys/arch/i386/include/db_machdep.h b/sys/arch/i386/include/db_machdep.h index 17dfa3ea682..277477aed04 100644 --- a/sys/arch/i386/include/db_machdep.h +++ b/sys/arch/i386/include/db_machdep.h @@ -1,4 +1,4 @@ -/* $OpenBSD: db_machdep.h,v 1.4 1997/08/07 09:09:38 niklas Exp $ */ +/* $OpenBSD: db_machdep.h,v 1.5 2001/01/24 09:38:01 hugh Exp $ */ /* $NetBSD: db_machdep.h,v 1.9 1996/05/03 19:23:59 christos Exp $ */ /* @@ -38,8 +38,8 @@ #include <vm/vm.h> #include <machine/trap.h> -typedef vm_offset_t db_addr_t; /* address - unsigned */ -typedef int db_expr_t; /* expression - signed */ +typedef vaddr_t db_addr_t; /* address - unsigned */ +typedef long db_expr_t; /* expression - signed */ typedef struct trapframe db_regs_t; db_regs_t ddb_regs; /* register state */ @@ -87,8 +87,8 @@ db_regs_t ddb_regs; /* register state */ ((user) && (addr) < VM_MAX_ADDRESS)) #if 0 -boolean_t db_check_access __P((vm_offset_t, int, task_t)); -boolean_t db_phys_eq __P((task_t, vm_offset_t, task_t, vm_offset_t)); +boolean_t db_check_access __P((vaddr_t, int, task_t)); +boolean_t db_phys_eq __P((task_t, vaddr_t, task_t, vaddr_t)); #endif /* macros for printing OS server dependent task name */ @@ -98,6 +98,13 @@ boolean_t db_phys_eq __P((task_t, vm_offset_t, task_t, vm_offset_t)); #define DB_TASK_NAME_LEN 23 #define DB_NULL_TASK_NAME "? " +/* + * Constants for KGDB. + */ +typedef long kgdb_reg_t; +#define KGDB_NUMREGS 14 +#define KGDB_BUFLEN 512 + #if 0 void db_task_name(/* task_t */); #endif |