diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 134f0f4506..9d08c67888 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2016-06-01 Nick Clifton + + * common/common-utils.c (xmalloc_failed): New function. Provided + so that the version in libiberty is not linked in. + 2016-06-01 Markus Metzger * infcmd.c (skip_finish_frames): New. diff --git a/gdb/common/common-utils.c b/gdb/common/common-utils.c index 33668f3866..5a346ec37d 100644 --- a/gdb/common/common-utils.c +++ b/gdb/common/common-utils.c @@ -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. */