gdbserver does not need xstrdup
[deliverable/binutils-gdb.git] / gdb / gdbserver / utils.c
index 79a7e80f6251fbc10c1b51f2493ccb1d8c127c44..6a0e7a7a0f9bc3c6c503341edddd6422a9dfe6e6 100644 (file)
@@ -37,18 +37,6 @@ malloc_failure (long size)
   exit (1);
 }
 
-/* Copy a string into a memory buffer.
-   If malloc fails, this will print a message to stderr and exit.  */
-
-char *
-xstrdup (const char *s)
-{
-  char *ret = strdup (s);
-  if (ret == NULL)
-    malloc_failure (strlen (s) + 1);
-  return ret;
-}
-
 /* Print the system error message for errno, and also mention STRING
    as the file name for which the error was encountered.
    Then return to command level.  */
This page took 0.024307 seconds and 4 git commands to generate.