Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/alpha/include Prototype alpha_debug(), and add some...
details: https://anonhg.NetBSD.org/src/rev/346d3dcc5136
branches: trunk
changeset: 472094:346d3dcc5136
user: thorpej <thorpej%NetBSD.org@localhost>
date: Tue Apr 20 21:23:56 1999 +0000
description:
Prototype alpha_debug(), and add some definitions for KGDB.
diffstat:
sys/arch/alpha/include/db_machdep.h | 80 ++++++++++++++++++++++++++++++++++++-
1 files changed, 79 insertions(+), 1 deletions(-)
diffs (99 lines):
diff -r 111138293bd0 -r 346d3dcc5136 sys/arch/alpha/include/db_machdep.h
--- a/sys/arch/alpha/include/db_machdep.h Tue Apr 20 21:23:09 1999 +0000
+++ b/sys/arch/alpha/include/db_machdep.h Tue Apr 20 21:23:56 1999 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_machdep.h,v 1.7 1998/08/14 16:50:03 thorpej Exp $ */
+/* $NetBSD: db_machdep.h,v 1.8 1999/04/20 21:23:56 thorpej Exp $ */
/*
* Copyright (c) 1995 Carnegie-Mellon University.
@@ -92,6 +92,9 @@
int ddb_trap __P((unsigned long, unsigned long, unsigned long,
unsigned long, struct trapframe *));
+int alpha_debug __P((unsigned long, unsigned long, unsigned long,
+ unsigned long, struct trapframe *));
+
/*
* We define some of our own commands.
*/
@@ -103,4 +106,79 @@
#define DB_ELF_SYMBOLS
#define DB_ELFSIZE 64
+/*
+ * Stuff for KGDB.
+ */
+typedef long kgdb_reg_t;
+#define KGDB_NUMREGS 66 /* from tm-alpha.h, NUM_REGS */
+#define KGDB_REG_V0 0
+#define KGDB_REG_T0 1
+#define KGDB_REG_T1 2
+#define KGDB_REG_T2 3
+#define KGDB_REG_T3 4
+#define KGDB_REG_T4 5
+#define KGDB_REG_T5 6
+#define KGDB_REG_T6 7
+#define KGDB_REG_T7 8
+#define KGDB_REG_S0 9
+#define KGDB_REG_S1 10
+#define KGDB_REG_S2 11
+#define KGDB_REG_S3 12
+#define KGDB_REG_S4 13
+#define KGDB_REG_S5 14
+#define KGDB_REG_S6 15 /* FP */
+#define KGDB_REG_A0 16
+#define KGDB_REG_A1 17
+#define KGDB_REG_A2 18
+#define KGDB_REG_A3 19
+#define KGDB_REG_A4 20
+#define KGDB_REG_A5 21
+#define KGDB_REG_T8 22
+#define KGDB_REG_T9 23
+#define KGDB_REG_T10 24
+#define KGDB_REG_T11 25
+#define KGDB_REG_RA 26
+#define KGDB_REG_T12 27
+#define KGDB_REG_AT 28
+#define KGDB_REG_GP 29
+#define KGDB_REG_SP 30
+#define KGDB_REG_ZERO 31
+#define KGDB_REG_F0 32
+#define KGDB_REG_F1 33
+#define KGDB_REG_F2 34
+#define KGDB_REG_F3 35
+#define KGDB_REG_F4 36
+#define KGDB_REG_F5 37
+#define KGDB_REG_F6 38
+#define KGDB_REG_F7 39
+#define KGDB_REG_F8 40
+#define KGDB_REG_F9 41
+#define KGDB_REG_F10 42
+#define KGDB_REG_F11 43
+#define KGDB_REG_F12 44
+#define KGDB_REG_F13 45
+#define KGDB_REG_F14 46
+#define KGDB_REG_F15 47
+#define KGDB_REG_F16 48
+#define KGDB_REG_F17 49
+#define KGDB_REG_F18 50
+#define KGDB_REG_F19 51
+#define KGDB_REG_F20 52
+#define KGDB_REG_F21 53
+#define KGDB_REG_F22 54
+#define KGDB_REG_F23 55
+#define KGDB_REG_F24 56
+#define KGDB_REG_F25 57
+#define KGDB_REG_F26 58
+#define KGDB_REG_F27 59
+#define KGDB_REG_F28 60
+#define KGDB_REG_F29 61
+#define KGDB_REG_F30 62
+#define KGDB_REG_F31 63
+#define KGDB_REG_PC 64
+#define KGDB_REG_VFP 65
+
+/* Too much? Must be large enough for register transfer. */
+#define KGDB_BUFLEN 1024
+
#endif /* _ALPHA_DB_MACHDEP_H_ */
Home |
Main Index |
Thread Index |
Old Index