X-Git-Url: http://git.efficios.com/?a=blobdiff_plain;f=gdb%2Fdpx2-nat.c;h=488c06a538367f6beada1c0de4ad7b883f1d67a5;hb=5fc684199ed5eb61abc705b948df8bb46d2ee7cc;hp=c437c7596dbd1e200101d03de85393b17ebc8798;hpb=976bb0be038b72449683a428903658347d581eaa;p=deliverable%2Fbinutils-gdb.git diff --git a/gdb/dpx2-nat.c b/gdb/dpx2-nat.c index c437c7596d..488c06a538 100644 --- a/gdb/dpx2-nat.c +++ b/gdb/dpx2-nat.c @@ -1,26 +1,28 @@ /* DPX2 host interface. - Copyright (C) 1988, 1989, 1991 Free Software Foundation, Inc. + Copyright 1988, 1989, 1991, 1993, 1995, 2000 + Free Software Foundation, Inc. -This file is part of GDB. + This file is part of GDB. -This program is free software; you can redistribute it and/or modify -it under the terms of the GNU General Public License as published by -the Free Software Foundation; either version 2 of the License, or -(at your option) any later version. + This program is free software; you can redistribute it and/or modify + it under the terms of the GNU General Public License as published by + the Free Software Foundation; either version 2 of the License, or + (at your option) any later version. -This program is distributed in the hope that it will be useful, -but WITHOUT ANY WARRANTY; without even the implied warranty of -MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the -GNU General Public License for more details. + This program is distributed in the hope that it will be useful, + but WITHOUT ANY WARRANTY; without even the implied warranty of + MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the + GNU General Public License for more details. -You should have received a copy of the GNU General Public License -along with this program; if not, write to the Free Software -Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ + You should have received a copy of the GNU General Public License + along with this program; if not, write to the Free Software + Foundation, Inc., 59 Temple Place - Suite 330, + Boston, MA 02111-1307, USA. */ #include "defs.h" #include "gdbcore.h" -#include +#include "gdb_string.h" #include #include #include @@ -28,11 +30,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA. */ #include #include #include - -/* this table must line up with REGISTER_NAMES in tm-68k.h */ + +/* This table must line up with REGISTER_NAME in "m68k-tdep.c". */ /* symbols like 'A0' come from */ -static int regmap[] = +static int regmap[] = { R0, R1, R2, R3, R4, R5, R6, R7, A0, A1, A2, A3, A4, A5, A6, SP, @@ -46,14 +48,12 @@ static int regmap[] = */ int -dpx2_register_u_addr (blockend, regnum) - int blockend; - int regnum; +dpx2_register_u_addr (int blockend, int regnum) { if (regnum < FP0_REGNUM) return (blockend + 4 * regmap[regnum]); else - return (int) &(((struct user *)0)->u_fpstate[regmap[regnum]]); + return (int) &(((struct user *) 0)->u_fpstate[regmap[regnum]]); } /* This is the amount to subtract from u.u_ar0 @@ -72,7 +72,7 @@ dpx2_register_u_addr (blockend, regnum) CORE_ADDR kernel_u_addr; void -_initialize_dpx2_nat () +_initialize_dpx2_nat (void) { struct utsname uts;