Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/trunk]: src/sys/arch/sparc64/sparc64 there's no fr_arg[6] or fr_arg[7] -...
details: https://anonhg.NetBSD.org/src/rev/4c7845225936
branches: trunk
changeset: 766429:4c7845225936
user: mrg <mrg%NetBSD.org@localhost>
date: Wed Jun 22 05:50:47 2011 +0000
description:
there's no fr_arg[6] or fr_arg[7] -- they're called fr_fp and fr_pc.
use the right names and avoid some array bounds violations picked up
by GCC 4.5. it's a real bug, but the code would have been generated
correctly for the sparc* ABIs.
diffstat:
sys/arch/sparc64/sparc64/db_interface.c | 8 ++++----
1 files changed, 4 insertions(+), 4 deletions(-)
diffs (29 lines):
diff -r 1c7a57cc57ba -r 4c7845225936 sys/arch/sparc64/sparc64/db_interface.c
--- a/sys/arch/sparc64/sparc64/db_interface.c Wed Jun 22 05:23:53 2011 +0000
+++ b/sys/arch/sparc64/sparc64/db_interface.c Wed Jun 22 05:50:47 2011 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: db_interface.c,v 1.128 2011/04/13 03:34:37 mrg Exp $ */
+/* $NetBSD: db_interface.c,v 1.129 2011/06/22 05:50:47 mrg Exp $ */
/*
* Copyright (c) 1996-2002 Eduardo Horvath. All rights reserved.
@@ -34,7 +34,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.128 2011/04/13 03:34:37 mrg Exp $");
+__KERNEL_RCSID(0, "$NetBSD: db_interface.c,v 1.129 2011/06/22 05:50:47 mrg Exp $");
#ifdef _KERNEL_OPT
#include "opt_ddb.h"
@@ -243,8 +243,8 @@
{ "i3", dbregfr(arg[3]), db_sparc_regop, 0 },
{ "i4", dbregfr(arg[4]), db_sparc_regop, 0 },
{ "i5", dbregfr(arg[5]), db_sparc_regop, 0 },
- { "i6", dbregfr(arg[6]), db_sparc_regop, 0 },
- { "i7", dbregfr(arg[7]), db_sparc_regop, 0 },
+ { "i6", dbregfr(fp), db_sparc_regop, 0 },
+ { "i7", dbregfr(pc), db_sparc_regop, 0 },
{ "f0", dbregfp(regs[0]), db_sparc_regop, 0 },
{ "f2", dbregfp(regs[2]), db_sparc_regop, 0 },
{ "f4", dbregfp(regs[4]), db_sparc_regop, 0 },
Home |
Main Index |
Thread Index |
Old Index