From: Andrew Cagney <ac131313@cygnus.com>
To: Kevin Buettner <kevinb@cygnus.com>
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 [thread overview]
Message-ID: <3AA4ECD0.5A372B93@cygnus.com> (raw)
In-Reply-To: <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
prev parent reply other threads:[~2001-03-06 14:27 UTC|newest]
Thread overview: 3+ messages / expand[flat|nested] mbox.gz Atom feed top
2001-03-05 16:06 Kevin Buettner
2001-03-05 17:11 ` Kevin Buettner
2001-03-06 14:27 ` Andrew Cagney [this message]
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=3AA4ECD0.5A372B93@cygnus.com \
--to=ac131313@cygnus.com \
--cc=gdb-patches@sources.redhat.com \
--cc=kevinb@cygnus.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox