svn commit: r249878 - head/gnu/usr.bin/gdb/kgdb

Warner Losh imp at FreeBSD.org
Thu Apr 25 04:53:02 UTC 2013


Author: imp
Date: Thu Apr 25 04:53:01 2013
New Revision: 249878
URL: http://svnweb.freebsd.org/changeset/base/249878

Log:
  Fix mips64 and mipsn32 bilds by using proper register names.

Modified:
  head/gnu/usr.bin/gdb/kgdb/trgt_mips.c

Modified: head/gnu/usr.bin/gdb/kgdb/trgt_mips.c
==============================================================================
--- head/gnu/usr.bin/gdb/kgdb/trgt_mips.c	Thu Apr 25 02:27:13 2013	(r249877)
+++ head/gnu/usr.bin/gdb/kgdb/trgt_mips.c	Thu Apr 25 04:53:01 2013	(r249878)
@@ -115,6 +115,16 @@ static int kgdb_trgt_frame_offset[] = {
 	offsetof(struct trapframe, a1),
 	offsetof(struct trapframe, a2),
 	offsetof(struct trapframe, a3),
+#if defined(__mips_n32) || defined(__mips_n64)
+	offsetof(struct trapframe, a4),
+	offsetof(struct trapframe, a5),
+	offsetof(struct trapframe, a6),
+	offsetof(struct trapframe, a7),
+	offsetof(struct trapframe, t0),
+	offsetof(struct trapframe, t1),
+	offsetof(struct trapframe, t2),
+	offsetof(struct trapframe, t3),
+#else
 	offsetof(struct trapframe, t0),
 	offsetof(struct trapframe, t1),
 	offsetof(struct trapframe, t2),
@@ -123,6 +133,7 @@ static int kgdb_trgt_frame_offset[] = {
 	offsetof(struct trapframe, t5),
 	offsetof(struct trapframe, t6),
 	offsetof(struct trapframe, t7),
+#endif
 	offsetof(struct trapframe, s0),
 	offsetof(struct trapframe, s1),
 	offsetof(struct trapframe, s2),


More information about the svn-src-all mailing list