Allow for the possibility that the local labels won't be in the objdump output.
[deliverable/binutils-gdb.git] / gdb / m32r-rom.c
index b2832792121960aef9b7b6771b95a6892ea31ace..c95b16e5f123ba1c350a1aa0bca5389d7030791b 100644 (file)
@@ -1,6 +1,7 @@
 /* Remote debugging interface to m32r and mon2000 ROM monitors for GDB, 
    the GNU debugger.
-   Copyright 1996 Free Software Foundation, Inc.
+   Copyright 1996, 1997, 1998, 1999, 2000, 2001
+   Free Software Foundation, Inc.
 
    Adapted by Michael Snyder of Cygnus Support.
 
@@ -37,6 +38,7 @@
 #include "objfiles.h"          /* for ALL_OBJFILES etc. */
 #include "inferior.h"          /* for write_pc() */
 #include <ctype.h>
+#include "regcache.h"
 
 extern void report_transfer_performance (unsigned long, time_t, time_t);
 
@@ -480,7 +482,7 @@ m32r_upload_command (char *args, int from_tty)
        error ("Please use 'set board-address' to set the M32R-EVA board's IP address.");
       if (strchr (myIPaddress, '('))
        *(strchr (myIPaddress, '(')) = '\0';    /* delete trailing junk */
-      board_addr = strsave (myIPaddress);
+      board_addr = xstrdup (myIPaddress);
     }
   if (server_addr == 0)
     {
@@ -508,7 +510,7 @@ m32r_upload_command (char *args, int from_tty)
   if (args[0] != '/' && download_path == 0)
     {
       if (current_directory)
-       download_path = strsave (current_directory);
+       download_path = xstrdup (current_directory);
       else
        error ("Need to know default download path (use 'set download-path')");
     }
This page took 0.023878 seconds and 4 git commands to generate.