This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Re: [RFA] Replace strdup with xstrdup in tic30-dis.c
- From: "David O'Brien" <obrien at FreeBSD dot org>
- To: Andrew Cagney <ac131313 at redhat dot com>
- Cc: Klee Dienes <klee at apple dot com>, Alan Modra <amodra at bigpond dot net dot au>, binutils at sources dot redhat dot com, gdb at sources dot redhat dot com
- Date: Wed, 27 Nov 2002 11:36:10 -0800
- Subject: Re: [RFA] Replace strdup with xstrdup in tic30-dis.c
- Organization: The NUXI BSD Group
- References: <E3F5CE00-FC28-11D6-8F9D-00039396EEB8@apple.com> <3DDBB2BA.90601@redhat.com>
- Reply-to: obrien at FreeBSD dot org
On Wed, Nov 20, 2002 at 11:05:14AM -0500, Andrew Cagney wrote:
> >Another option would be to add a xmalloc_set_failure_handler() to
> >libiberty for use by GDB.
>
> Just FYI, GDB is currently intercepting the calls by implementing its
> own xmalloc() and having them linked in before libiberty. See utils.c.
This has also caused us problems in FreeBSD'ville as we share libiberty
with binutils and gdb. What about having a real handler that is
registered? Even using a function pointer XMALLOC in which it's main()'s
job to set to what ever malloc is desired would help.