This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
Re: [patch] allocate name of anonymous objfiles properly
- From: David Carlton <carlton at math dot stanford dot edu>
- To: gdb-patches at sources dot redhat dot com
- Date: 02 May 2003 10:03:34 -0700
- Subject: Re: [patch] allocate name of anonymous objfiles properly
- References: <m3n0i7pjpb.fsf@papaya.bactrian.org>
On 30 Apr 2003 17:57:36 -0700, David Carlton <carlton@bactrian.org> said:
> In my earlier patch to make sure that anonymous objfiles have a name,
> I neglected to ensure that the name is allocated properly. This can
> cause problems if an objfile is unloaded and loaded again, because in
> that case somebody will try to free the name, which you can't do if
> the name is a constant string. Oops.
> This patch fixes that; I've tested it with GCC 3.2, DWARF 2,
> i686-pc-linux-gnu. It seems obvious; I'll commit it on Friday unless
> somebody objects.
Committed.
David Carlton
carlton@math.stanford.edu