From 51403f74d96cc69f391fbd31389a9153a230b431 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 1 Jun 2016 11:44:08 +0100 Subject: Add xmalloc_failed() function to common-utils.c in to avoid the need to link in libiberty's xmalloc code. --- gdb/common/common-utils.c | 6 ++++++ 1 file changed, 6 insertions(+) (limited to 'gdb/common') diff --git a/gdb/common/common-utils.c b/gdb/common/common-utils.c index 33668f3..5a346ec 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. */ -- cgit v1.1