mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-05 21:50:21 +08:00
Add xmalloc_failed() function to common-utils.c in to avoid the need to link in libiberty's xmalloc code.
This commit is contained in:
@ -100,6 +100,12 @@ xfree (void *ptr)
|
||||
free (ptr); /* ARI: free */
|
||||
}
|
||||
|
||||
void
|
||||
xmalloc_failed (size_t size)
|
||||
{
|
||||
malloc_failure (size);
|
||||
}
|
||||
|
||||
/* Like asprintf/vasprintf but get an internal_error if the call
|
||||
fails. */
|
||||
|
||||
|
Reference in New Issue
Block a user