Fix -Wuh and -Wnhu options so that they work.
[deliverable/binutils-gdb.git] / gdb / remote-udi.c
index dfc9f6bab9a646d1c13e17fc5e077dee14c09e09..6397bca5d1680950d6b2025759521da63c2d5b22 100644 (file)
@@ -453,13 +453,13 @@ udi_wait (pid, status)
               a whole bunch of output (more than SBUF_MAX, I would
               guess).  It doesn't seem to happen with the simulator.  */
            warning ("UDIGetStdout() failed in udi_wait");
-         fwrite (sbuf, 1, CountDone, gdb_stdout);
+         fwrite (sbuf, 1, CountDone, stdout);
          gdb_flush(gdb_stdout);
          continue;
 
        case UDIStderrReady:
          UDIGetStderr (sbuf, (UDISizeT)SBUF_MAX, &CountDone);
-         fwrite (sbuf, 1, CountDone, gdb_stderr);
+         fwrite (sbuf, 1, CountDone, stderr);
          gdb_flush(gdb_stderr);
          continue;
 
@@ -1092,7 +1092,7 @@ download(load_arg_string, from_tty)
     error ("Must specify at least a file name with the load command");
 
   filename = tilde_expand (filename);
-  make_cleanup (free, filename);
+  make_cleanup ((make_cleanup_func) free, filename);
 
   while (token = strtok (NULL, " \t"))
     {
@@ -1146,7 +1146,7 @@ download(load_arg_string, from_tty)
   /* FIXME: should be checking for errors from bfd_close (for one thing,
      on error it does not free all the storage associated with the
      bfd).  */
-  make_cleanup (bfd_close, pbfd);
+  make_cleanup ((make_cleanup_func) bfd_close, pbfd);
 
   QUIT;
   immediate_quit++;
@@ -1299,7 +1299,7 @@ udi_load (args, from_tty)
   /* As a convenience, pick up any symbol info that is in the program
      being loaded.  Note that we assume that the program is the``mainline'';
      if this is not always true, then this code will need to be augmented.  */
-  symbol_file_add (strtok (args, " \t"), from_tty, 0, 1, 0, 0);
+  symbol_file_add (strtok (args, " \t"), from_tty, 0, 1, 0, 0, 0, 0);
 
   /* Getting new symbols may change our opinion about what is
      frameless.  */
@@ -1450,7 +1450,7 @@ fetch_register (regno)
   supply_register(regno, (char *) &To);
 
   if (remote_debug)
-    printf_unfiltered("Fetching register %s = 0x%x\n", reg_names[regno], To);
+    printf_unfiltered("Fetching register %s = 0x%x\n", REGISTER_NAME (regno), To);
 }
 /*****************************************************************************/ 
 /* Store a single register indicated by 'regno'. 
@@ -1471,7 +1471,7 @@ store_register (regno)
   From =  read_register (regno);       /* get data value */
 
   if (remote_debug)
-    printf_unfiltered("Storing register %s = 0x%x\n", reg_names[regno], From);
+    printf_unfiltered("Storing register %s = 0x%x\n", REGISTER_NAME (regno), From);
 
   if (regno == GR1_REGNUM)
     {
@@ -1621,9 +1621,10 @@ service_HIF(msg)
    The RS/6000 doesn't like "extern" followed by "static"; SunOS
    /bin/cc doesn't like "static" twice.  */
 
-struct target_ops udi_ops ;
+struct target_ops udi_ops;
 
-static void init_udi_ops(void)
+static void 
+init_udi_ops(void)
 {
   udi_ops.to_shortname =         "udi";
   udi_ops.to_longname =        "Remote UDI connected TIP";
@@ -1672,7 +1673,7 @@ To connect using a local connection to the \"tip.exe\" program which is\n\
   udi_ops.to_can_run  =        0;      
   udi_ops.to_notice_signals =  0;      
   udi_ops.to_thread_alive  =   0;      
-  udi_ops.to_stop  =         0;                
+  udi_ops.to_stop  =         0;
   udi_ops.to_stratum =         process_stratum;
   udi_ops.DONT_USE =   0;              
   udi_ops.to_has_all_memory =         1;
This page took 0.024779 seconds and 4 git commands to generate.