This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [PATCH RFA #2] utils.c: Fix xcalloc (0, 0) behavior
- To: Kevin Buettner <kevinb at cygnus dot com>
- Subject: Re: [PATCH RFA #2] utils.c: Fix xcalloc (0, 0) behavior
- From: Andrew Cagney <ac131313 at cygnus dot com>
- Date: Tue, 06 Mar 2001 08:57:36 -0500
- Cc: gdb-patches at sources dot redhat dot com
- References: <1010306000635.ZM8056@ocotillo.lan>
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