Fix -Werror -Wuninitialized warnings.
[deliverable/binutils-gdb.git] / gdb / remote-udi.c
index a09c70e384da44165a108153d845d397653fec7d..aa3b4ba6b1b9201b530269f58eff2e9c9afba1ca 100644 (file)
@@ -1,5 +1,6 @@
 /* Remote debugging interface for AMD 29k interfaced via UDI, for GDB.
-   Copyright 1990, 1992, 1995, 2000 Free Software Foundation, Inc.
+   Copyright 1990, 1992, 1993, 1994, 1995, 1996, 1998, 1999, 2000, 2001
+   Free Software Foundation, Inc.
    Written by Daniel Mann.  Contributed by AMD.
 
    This file is part of GDB.
 #include "defs.h"
 #include "frame.h"
 #include "inferior.h"
-#include "gdb_wait.h"
 #include "value.h"
 #include <ctype.h>
 #include <fcntl.h>
-#include <signal.h>
 #include <errno.h>
 #include "gdb_string.h"
 #include "terminal.h"
@@ -48,6 +47,7 @@
 #include "gdbcmd.h"
 #include "bfd.h"
 #include "gdbcore.h"           /* For download function */
+#include "regcache.h"
 
 /* access the register store directly, without going through
    the normal handler functions. This avoids an extra data copy.  */
@@ -234,7 +234,7 @@ udi_open (char *name, int from_tty)
   if (!name)
     error ("Usage: target udi config_id, where config_id appears in udi_soc file");
 
-  udi_config_id = strdup (strtok (name, " \t"));
+  udi_config_id = xstrdup (strtok (name, " \t"));
 
   if (UDIConnect (udi_config_id, &udi_session_id))
     /* FIXME: Should set udi_session_id to -1 here.  */
@@ -923,7 +923,8 @@ translate_addr (CORE_ADDR addr)
 /* FIXME!  Merge these two.  */
 static int
 udi_xfer_inferior_memory (CORE_ADDR memaddr, char *myaddr, int len, int write,
-                         struct target_ops * target)
+                         struct mem_attrib *attrib ATTRIBUTE_UNUSED,
+                         struct target_ops *target ATTRIBUTE_UNUSED)
 {
 
   memaddr = translate_addr (memaddr);
This page took 0.025556 seconds and 4 git commands to generate.