aboutsummaryrefslogtreecommitdiff
path: root/sys/arm/include
diff options
context:
space:
mode:
authorMark Johnston <markj@FreeBSD.org>2020-12-07 15:09:28 +0000
committerMark Johnston <markj@FreeBSD.org>2020-12-07 15:09:28 +0000
commit8bf82b340e59cdc7d6cac49762104d48cebd2283 (patch)
tree3a07aabf06076f6a736c78b7b2ee1b7c545f4f3d /sys/arm/include
parentc97e33e1fd6d2562473a71293c53683b55f6711f (diff)
downloadsrc-8bf82b340e59cdc7d6cac49762104d48cebd2283.tar.gz
src-8bf82b340e59cdc7d6cac49762104d48cebd2283.zip
arm: Let the GDB stub write to SP, LR and GP registers
This can be handy if gdb's stack unwinder fails, for example because of a bug in kgdb's trap frame unwinder. PR: 251463 Submitted by: Dmitry Salychev <dsl@mcusim.org> MFC after: 1 week
Notes
Notes: svn path=/head/; revision=368414
Diffstat (limited to 'sys/arm/include')
-rw-r--r--sys/arm/include/gdb_machdep.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/sys/arm/include/gdb_machdep.h b/sys/arm/include/gdb_machdep.h
index 79c74cdd0e1f..017025253bd5 100644
--- a/sys/arm/include/gdb_machdep.h
+++ b/sys/arm/include/gdb_machdep.h
@@ -33,6 +33,8 @@
#define GDB_BUFSZ 400
#define GDB_NREGS 26
+#define GDB_REG_SP 13
+#define GDB_REG_LR 14
#define GDB_REG_PC 15
static __inline size_t