#include "gdbcore.h"
void
-store_inferior_registers (regno)
- int regno;
+store_inferior_registers (int regno)
{
struct pt_regset regs;
int i;
}
void
-fetch_inferior_registers (regno)
- int regno;
+fetch_inferior_registers (int regno)
{
int i;
struct pt_regset regs;
\f
/* FIXME: This should be merged with i387-tdep.c as well. */
static
-print_fpu_status (ep)
- struct pt_regset ep;
+print_fpu_status (struct pt_regset ep)
{
int i;
int bothstatus;
}
-print_1167_control_word (pcr)
- unsigned int pcr;
-
+print_1167_control_word (unsigned int pcr)
{
int pcr_tmp;
printf_unfiltered ("\n");
}
-print_1167_regs (regs)
- long regs[FPA_NREGS];
-
+print_1167_regs (long regs[FPA_NREGS])
{
int i;
}
}
-print_fpa_status (ep)
- struct pt_regset ep;
-
+print_fpa_status (struct pt_regset ep)
{
printf_unfiltered ("WTL 1167:");
}
#if 0 /* disabled because it doesn't go through the target vector. */
-i386_float_info ()
+i386_float_info (void)
{
char ubuf[UPAGES * NBPG];
struct pt_regset regset;
/*ARGSUSED */
/* This will eventually be more interesting. */
void
-sigchld_handler (signo)
- int signo;
+sigchld_handler (int signo)
{
got_sigchld++;
}
* Thanks to XPT_MPDEBUGGER, we have to mange child_wait().
*/
int
-child_wait (pid, status)
- int pid;
- struct target_waitstatus *status;
+child_wait (int pid, struct target_waitstatus *status)
{
int save_errno, rv, xvaloff, saoff, sa_hand;
struct pt_stop pt;
}
break;
case PTS_WATCHPT_HIT:
- fatal ("PTS_WATCHPT_HIT\n");
+ internal_error ("PTS_WATCHPT_HIT\n");
break;
default:
/* stopped by signal */
* the MPDEBUGGER child_wait() works properly. This will go away when
* that is fixed.
*/
-child_wait (pid, ourstatus)
- int pid;
- struct target_waitstatus *ourstatus;
+child_wait (int pid, struct target_waitstatus *ourstatus)
{
int save_errno;
int status;
It exists so that all calls to ptrace are isolated in this
machine-dependent file. */
int
-call_ptrace (request, pid, addr, data)
- int request, pid;
- PTRACE_ARG3_TYPE addr;
- int data;
+call_ptrace (int request, int pid, PTRACE_ARG3_TYPE addr, int data)
{
return ptrace (request, pid, addr, data);
}
int
-call_mptrace (request, pid, addr, data)
- int request, pid;
- PTRACE_ARG3_TYPE addr;
- int data;
+call_mptrace (int request, int pid, PTRACE_ARG3_TYPE addr, int data)
{
return mptrace (request, pid, addr, data);
}
#endif
void
-kill_inferior ()
+kill_inferior (void)
{
if (inferior_pid == 0)
return;
If SIGNAL is nonzero, give it that signal. */
void
-child_resume (pid, step, signal)
- int pid;
- int step;
- enum target_signal signal;
+child_resume (int pid, int step, enum target_signal signal)
{
errno = 0;
#ifdef ATTACH_DETACH
/* Start debugging the process whose number is PID. */
int
-attach (pid)
- int pid;
+attach (int pid)
{
sigset_t set;
int rv;
}
void
-detach (signo)
- int signo;
+detach (int signo)
{
int rv;
/* Copy LEN bytes to or from inferior's memory starting at MEMADDR
to debugger memory starting at MYADDR. Copy to inferior if
- WRITE is nonzero.
+ WRITE is nonzero. TARGET is ignored.
Returns the length copied, which is either the LEN argument or zero.
This xfer function does not do partial moves, since child_ops
anyway. */
int
-child_xfer_memory (memaddr, myaddr, len, write, target)
- CORE_ADDR memaddr;
- char *myaddr;
- int len;
- int write;
- struct target_ops *target; /* ignored */
+child_xfer_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
+ struct target_ops *target)
{
register int i;
/* Round starting address down to longword boundary. */
void
-_initialize_symm_nat ()
+_initialize_symm_nat (void)
{
#ifdef ATTACH_DETACH
/*
rv = mptrace (XPT_MPDEBUGGER, 0, 0, 0);
if (-1 == rv)
{
- fatal ("_initialize_symm_nat(): mptrace(XPT_MPDEBUGGER): %s",
- safe_strerror (errno));
+ internal_error ("_initialize_symm_nat(): mptrace(XPT_MPDEBUGGER): %s",
+ safe_strerror (errno));
}
/*
rv = sigaddset (&set, SIGCHLD);
if (-1 == rv)
{
- fatal ("_initialize_symm_nat(): sigaddset(SIGCHLD): %s",
- safe_strerror (errno));
+ internal_error ("_initialize_symm_nat(): sigaddset(SIGCHLD): %s",
+ safe_strerror (errno));
}
rv = sigprocmask (SIG_BLOCK, &set, (sigset_t *) NULL);
if (-1 == rv)
{
- fatal ("_initialize_symm_nat(): sigprocmask(SIG_BLOCK): %s",
- safe_strerror (errno));
+ internal_error ("_initialize_symm_nat(): sigprocmask(SIG_BLOCK): %s",
+ safe_strerror (errno));
}
sact.sa_handler = sigchld_handler;
rv = sigaction (SIGCHLD, &sact, (struct sigaction *) NULL);
if (-1 == rv)
{
- fatal ("_initialize_symm_nat(): sigaction(SIGCHLD): %s",
- safe_strerror (errno));
+ internal_error ("_initialize_symm_nat(): sigaction(SIGCHLD): %s",
+ safe_strerror (errno));
}
#endif
}