mirror of
https://sourceware.org/git/binutils-gdb.git
synced 2025-03-07 13:39:43 +08:00
gdbserver does not need xstrdup
gdbserver has its own implementation of xstrdup. However, because gdbserver links against libiberty now, I think this is not needed. This patch removes it. gdb/gdbserver/ChangeLog 2019-10-25 Tom Tromey <tromey@adacore.com> * utils.c (xstrdup): Remove. Change-Id: I2aa56d18d0f9af8e70a00dff431d2fda5705a5d5
This commit is contained in:
parent
37a5888387
commit
52c64cf72d
@ -1,3 +1,7 @@
|
||||
2019-10-25 Tom Tromey <tromey@adacore.com>
|
||||
|
||||
* utils.c (xstrdup): Remove.
|
||||
|
||||
2019-10-23 Tom Tromey <tom@tromey.com>
|
||||
|
||||
* configure, config.in: Rebuild.
|
||||
|
@ -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. */
|
||||
|
Loading…
Reference in New Issue
Block a user