diff options
author | imp <imp@FreeBSD.org> | 2013-04-25 04:53:01 +0000 |
---|---|---|
committer | imp <imp@FreeBSD.org> | 2013-04-25 04:53:01 +0000 |
commit | be7940a5a5d6cdcdd9238d8aa63227dfe7f1558f (patch) | |
tree | 0bf7ed8c08c678d50bdc91d96c2f7ddc2a21618b /gnu | |
parent | 58ae34c7006a25804f2278ce8735b7983ab1fcf3 (diff) | |
download | FreeBSD-src-be7940a5a5d6cdcdd9238d8aa63227dfe7f1558f.zip FreeBSD-src-be7940a5a5d6cdcdd9238d8aa63227dfe7f1558f.tar.gz |
Fix mips64 and mipsn32 bilds by using proper register names.
Diffstat (limited to 'gnu')
-rw-r--r-- | gnu/usr.bin/gdb/kgdb/trgt_mips.c | 11 |
1 files changed, 11 insertions, 0 deletions
diff --git a/gnu/usr.bin/gdb/kgdb/trgt_mips.c b/gnu/usr.bin/gdb/kgdb/trgt_mips.c index 6ad2274..aadf095 100644 --- a/gnu/usr.bin/gdb/kgdb/trgt_mips.c +++ b/gnu/usr.bin/gdb/kgdb/trgt_mips.c @@ -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), |