Add xmalloc_failed() function to common-utils.c in to avoid the need to link in libib...
authorNick Clifton <nickc@redhat.com>
Wed, 1 Jun 2016 10:44:08 +0000 (11:44 +0100)
committerNick Clifton <nickc@redhat.com>
Wed, 1 Jun 2016 10:44:08 +0000 (11:44 +0100)
gdb/ChangeLog
gdb/common/common-utils.c

index 134f0f4506406520d479943772bc3b2843de3281..9d08c6788883de11f84ba5abe3348273d1bd8e05 100644 (file)
@@ -1,3 +1,8 @@
+2016-06-01  Nick Clifton  <nickc@redhat.com>
+
+       * common/common-utils.c (xmalloc_failed): New function.  Provided
+       so that the version in libiberty is not linked in.
+
 2016-06-01  Markus Metzger  <markus.t.metzger@intel.com>
 
        * infcmd.c (skip_finish_frames): New.
index 33668f386665838af6bdeb61b7a54ecf7ee00b62..5a346ec37d7ced7be762f38093492eebadbe2e1e 100644 (file)
@@ -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. */
 
This page took 0.026384 seconds and 4 git commands to generate.