From mboxrd@z Thu Jan 1 00:00:00 1970 From: Andrew Cagney To: Kevin Buettner Cc: gdb-patches@sources.redhat.com Subject: Re: [PATCH RFA #2] utils.c: Fix xcalloc (0, 0) behavior Date: Tue, 06 Mar 2001 14:27:00 -0000 Message-id: <3AA4ECD0.5A372B93@cygnus.com> References: <1010306000635.ZM8056@ocotillo.lan> X-SW-Source: 2001-03/msg00124.html How ironic :-) Go to all this effort to get everything using a function that doesn't return NULL only to find that we need to go to even more effort so that it can return NULL. Ha! One aside. From memory, the asprintf() functions in ../libiberty tend to not like: asprintf ("%s", NULL); giving either: (null) or Segmentation Fault, Core dumped. I submitted a patch to make the behavour but had it rejected. The thing I would take from this is that we've a GDB convention. Getting these specific semantics merged into ../libiberty is separate. M'kay with me. Anyone? Andrew