aboutsummaryrefslogtreecommitdiff
path: root/gdb/target.c
diff options
context:
space:
mode:
authorStu Grossman <grossman@cygnus>1994-07-26 01:21:04 +0000
committerStu Grossman <grossman@cygnus>1994-07-26 01:21:04 +0000
commit4fc5969d1d7fc93c973cda707876eb2ddd5a3114 (patch)
tree14eb6b144ae9171444bc27c3a7f14c24414f5286 /gdb/target.c
parent08104d73b82bbdc6adeaecc5946e0551daef3a68 (diff)
downloadgdb-4fc5969d1d7fc93c973cda707876eb2ddd5a3114.zip
gdb-4fc5969d1d7fc93c973cda707876eb2ddd5a3114.tar.gz
gdb-4fc5969d1d7fc93c973cda707876eb2ddd5a3114.tar.bz2
* target.c (nomemory): Fix prototype and routine to take correct
args.
Diffstat (limited to 'gdb/target.c')
-rw-r--r--gdb/target.c7
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/target.c b/gdb/target.c
index 10ff09c..e95014a 100644
--- a/gdb/target.c
+++ b/gdb/target.c
@@ -58,7 +58,7 @@ static void
tcomplain PARAMS ((void));
static int
-nomemory PARAMS ((CORE_ADDR, char *, int, int));
+nomemory PARAMS ((CORE_ADDR, char *, int, int, struct target_ops *));
static int
return_zero PARAMS ((void));
@@ -176,11 +176,12 @@ ignore ()
/* ARGSUSED */
static int
-nomemory (memaddr, myaddr, len, write)
+nomemory (memaddr, myaddr, len, write, t)
CORE_ADDR memaddr;
char *myaddr;
int len;
int write;
+ struct target_ops *t;
{
errno = EIO; /* Can't read/write this location */
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.";
void
-_initialize_targets ()
+initialize_targets ()
{
push_target (&dummy_target);