[patch] allocate name of anonymous objfiles properly
David Carlton
carlton@math.stanford.edu
Fri May 2 17:03:00 GMT 2003
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
More information about the Gdb-patches
mailing list