/* Interface to bare machine for GDB running as kernel debugger.
- Copyright (C) 1986, 1989, 1991 Free Software Foundation, Inc.
+
+ Copyright 1986, 1989, 1991, 1992, 1993, 1995, 1996, 2000, 2001,
+ 2003 Free Software Foundation, Inc.
This file is part of GDB.
open (char *filename, int modes)
{
- register char *next;
+ char *next;
if (modes)
{
int
fread (int bufp, int numelts, int eltsize, int stream)
{
- register int elts = min (numelts, sourceleft / eltsize);
- register int len = elts * eltsize;
+ int elts = min (numelts, sourceleft / eltsize);
+ int len = elts * eltsize;
if (stream != sourcedesc)
{
display_string (buffer);
}
-fwrite (register char *buf, int numelts, int size, int stream)
+fwrite (char *buf, int numelts, int size, int stream)
{
- register int i = numelts * size;
+ int i = numelts * size;
while (i-- > 0)
fputc (*buf++, stream);
}
kill_command (void)
{
- inferior_pid = 0;
+ inferior_ptid = null_ptid;
}
terminal_inferior (void)
wait (WAITTYPE *w)
{
WSETSTOP (*w, fault_table[fault_code / FAULT_CODE_UNITS]);
- return inferior_pid;
+ return PIDGET (inferior_ptid);
}
\f
/* Allocate a big space in which files for kdb to read will be stored.
_initialize_standalone (void)
{
- register char *next;
+ char *next;
/* Find start of data on files. */