diff options
author | DJ Delorie <dj@redhat.com> | 2001-09-27 20:27:58 +0000 |
---|---|---|
committer | DJ Delorie <dj@redhat.com> | 2001-09-27 20:27:58 +0000 |
commit | fa9f0e33b3c0510267d7a41f2f4ee72ba452c37e (patch) | |
tree | eab3f8364165c1526f7ea2a5fef4db2ebda18653 /libiberty/xmalloc.c | |
parent | 0ac8d2cabf050fa3d463a79240ef8e05db368b1f (diff) | |
download | gdb-fa9f0e33b3c0510267d7a41f2f4ee72ba452c37e.zip gdb-fa9f0e33b3c0510267d7a41f2f4ee72ba452c37e.tar.gz gdb-fa9f0e33b3c0510267d7a41f2f4ee72ba452c37e.tar.bz2 |
merge from gcc
Diffstat (limited to 'libiberty/xmalloc.c')
-rw-r--r-- | libiberty/xmalloc.c | 3 |
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. |