This is the mail archive of the gdb-patches@sources.redhat.com mailing list for the GDB project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

Re: [patch] allocate name of anonymous objfiles properly


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


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]