aboutsummaryrefslogtreecommitdiff
path: root/gdb/delta68-nat.c
diff options
context:
space:
mode:
Diffstat (limited to 'gdb/delta68-nat.c')
-rw-r--r--gdb/delta68-nat.c49
1 files changed, 25 insertions, 24 deletions
diff --git a/gdb/delta68-nat.c b/gdb/delta68-nat.c
index 3995b23..f54f1b8 100644
--- a/gdb/delta68-nat.c
+++ b/gdb/delta68-nat.c
@@ -1,26 +1,27 @@
/* Functions specific to running gdb native on a Motorola Delta Series sysV68.
Copyright (C) 1993, 1997-98, 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., 59 Temple Place - Suite 330, Boston, MA 02111-1307, 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 <sys/signal.h> /* for MAXSIG in sys/user.h */
-#include <sys/types.h> /* for ushort in sys/dir.h */
-#include <sys/dir.h> /* for struct direct in sys/user.h */
+#include <sys/signal.h> /* for MAXSIG in sys/user.h */
+#include <sys/types.h> /* for ushort in sys/dir.h */
+#include <sys/dir.h> /* for struct direct in sys/user.h */
#include <sys/user.h>
#include <nlist.h>
@@ -34,14 +35,14 @@ Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
CORE_ADDR
register_addr (regno, blockend)
- int regno;
- CORE_ADDR blockend;
+ int regno;
+ CORE_ADDR blockend;
{
- static int sysv68reg[] =
- { 0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, -1, 15, 16 };
+ static int sysv68reg[] =
+ {0, 1, 2, 3, 4, 5, 6, 7, 8, 9, 10, 11, 12, 13, 14, -1, 15, 16};
- if (regno >= 0 && regno < sizeof(sysv68reg) / sizeof(sysv68reg[0]))
- return blockend + sysv68reg[regno] * 4;
+ if (regno >= 0 && regno < sizeof (sysv68reg) / sizeof (sysv68reg[0]))
+ return blockend + sysv68reg[regno] * 4;
else if (regno < FPC_REGNUM)
return offsetof (struct user, u_fpu.regs.reg[regno - FP0_REGNUM][0]);
else if (regno == FPC_REGNUM)
@@ -54,7 +55,7 @@ register_addr (regno, blockend)
{
fprintf_unfiltered (gdb_stderr, "\
Internal error: invalid register number %d in REGISTER_U_ADDR\n",
- regno);
+ regno);
return blockend;
}
}
@@ -80,8 +81,8 @@ _initialize_delta68_nat ()
clear_insn_cache ()
{
-#ifdef MCT_TEXT /* in sys/signal.h on sysV68 R3V7.1 */
- memctl(0, 4096, MCT_TEXT);
+#ifdef MCT_TEXT /* in sys/signal.h on sysV68 R3V7.1 */
+ memctl (0, 4096, MCT_TEXT);
#endif
}