* target.c (nomemory): Fix prototype and routine to take correct

args.
This commit is contained in:
Stu Grossman 1994-07-26 01:21:04 +00:00
parent 08104d73b8
commit 4fc5969d1d
2 changed files with 9 additions and 3 deletions

View File

@ -1,3 +1,8 @@
Mon Jul 25 18:19:24 1994 Stu Grossman (grossman@cygnus.com)
* target.c (nomemory): Fix prototype and routine to take correct
args.
Mon Jul 25 15:38:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com) Mon Jul 25 15:38:23 1994 Jim Kingdon (kingdon@lioth.cygnus.com)
* Makefile.in (clean): Remove libgdb-files. * Makefile.in (clean): Remove libgdb-files.

View File

@ -58,7 +58,7 @@ static void
tcomplain PARAMS ((void)); tcomplain PARAMS ((void));
static int static int
nomemory PARAMS ((CORE_ADDR, char *, int, int)); nomemory PARAMS ((CORE_ADDR, char *, int, int, struct target_ops *));
static int static int
return_zero PARAMS ((void)); return_zero PARAMS ((void));
@ -176,11 +176,12 @@ ignore ()
/* ARGSUSED */ /* ARGSUSED */
static int static int
nomemory (memaddr, myaddr, len, write) nomemory (memaddr, myaddr, len, write, t)
CORE_ADDR memaddr; CORE_ADDR memaddr;
char *myaddr; char *myaddr;
int len; int len;
int write; int write;
struct target_ops *t;
{ {
errno = EIO; /* Can't read/write this location */ errno = EIO; /* Can't read/write this location */
return 0; /* No bytes handled */ return 0; /* No bytes handled */
@ -1348,7 +1349,7 @@ Shows the entire stack of targets currently in use (including the exec-file,\n\
core-file, and process, if any), as well as the symbol file name."; core-file, and process, if any), as well as the symbol file name.";
void void
_initialize_targets () initialize_targets ()
{ {
push_target (&dummy_target); push_target (&dummy_target);