/* Native-dependent code for GDB, for NYU Ultra3 running Sym1 OS.
- Copyright (C) 1988, 1989, 1991, 1992 Free Software Foundation, Inc.
+ Copyright 1988, 1989, 1991, 1992, 2001 Free Software Foundation,
+ Inc.
Contributed by David Wood (wood@nyu.edu) at New York University.
This file is part of GDB.
#include "inferior.h"
#include "symtab.h"
#include "value.h"
+#include "regcache.h"
#include <sys/types.h>
#include <sys/param.h>
*/
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
register int i, j, ret_val = 0;
char buf[128];
*/
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
register unsigned int regaddr;
char buf[80];
* NOTE: Assumes AMD's Binary Compatibility Standard for ptrace().
*/
static void
-fetch_register (regno)
- int regno;
+fetch_register (int regno)
{
char buf[128];
int val;
/*
* Read AMD's Binary Compatibilty Standard conforming core file.
* struct ptrace_user is the first thing in the core file
+ *
+ * CORE_REG_SECT, CORE_REG_SIZE, WHICH, and REG_ADDR are all ignored.
*/
static void
-fetch_core_registers (core_reg_sect, core_reg_size, which, reg_addr)
- char *core_reg_sect; /* Unused in this version */
- unsigned core_reg_size; /* Unused in this version */
- int which; /* Unused in this version */
- CORE_ADDR reg_addr; /* Unused in this version */
+fetch_core_registers (char *core_reg_sect, unsigned core_reg_size,
+ int which, CORE_ADDR reg_addr)
{
register int regno;
int val;
* will cause ptrace() to fail is returned.
*/
CORE_ADDR
-register_addr (regno, blockend)
- int regno;
- CORE_ADDR blockend;
+register_addr (int regno, CORE_ADDR blockend)
{
if ((regno >= LR0_REGNUM) && (regno < LR0_REGNUM + 128))
{
};
void
-_initialize_core_ultra3 ()
+_initialize_core_ultra3 (void)
{
add_core_fns (&ultra3_core_fns);
}