aboutsummaryrefslogtreecommitdiff
path: root/libiberty/xmalloc.c
diff options
context:
space:
mode:
authorDJ Delorie <dj@redhat.com>2001-09-27 20:27:58 +0000
committerDJ Delorie <dj@redhat.com>2001-09-27 20:27:58 +0000
commitfa9f0e33b3c0510267d7a41f2f4ee72ba452c37e (patch)
treeeab3f8364165c1526f7ea2a5fef4db2ebda18653 /libiberty/xmalloc.c
parent0ac8d2cabf050fa3d463a79240ef8e05db368b1f (diff)
downloadgdb-fa9f0e33b3c0510267d7a41f2f4ee72ba452c37e.zip
gdb-fa9f0e33b3c0510267d7a41f2f4ee72ba452c37e.tar.gz
gdb-fa9f0e33b3c0510267d7a41f2f4ee72ba452c37e.tar.bz2
merge from gcc
Diffstat (limited to 'libiberty/xmalloc.c')
-rw-r--r--libiberty/xmalloc.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/libiberty/xmalloc.c b/libiberty/xmalloc.c
index cb923d9..3fc23a9 100644
--- a/libiberty/xmalloc.c
+++ b/libiberty/xmalloc.c
@@ -22,7 +22,8 @@ Boston, MA 02111-1307, USA. */
@deftypefn Replacement void* xmalloc (size_t)
Allocate memory without fail. If @code{malloc} fails, this will print
-a message to stderr (using the name set by @code{xmalloc_set_program_name},
+a message to @code{stderr} (using the name set by
+@code{xmalloc_set_program_name},
if any) and then call @code{xexit}. Note that it is therefore safe for
a program to contain @code{#define malloc xmalloc} in its source.