diff --git a/gdb/gdbserver/ChangeLog b/gdb/gdbserver/ChangeLog index dcd62380b1..55394797dd 100644 --- a/gdb/gdbserver/ChangeLog +++ b/gdb/gdbserver/ChangeLog @@ -1,3 +1,7 @@ +2019-10-25 Tom Tromey + + * utils.c (xstrdup): Remove. + 2019-10-23 Tom Tromey * configure, config.in: Rebuild. diff --git a/gdb/gdbserver/utils.c b/gdb/gdbserver/utils.c index 79a7e80f62..6a0e7a7a0f 100644 --- a/gdb/gdbserver/utils.c +++ b/gdb/gdbserver/utils.c @@ -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. */