This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [RFA/commit] Check library name rather than member name when rereading symbols.
On Apr 21, 2010, at 5:40 PM, Pedro Alves wrote:
> On Wednesday 21 April 2010 16:18:03, Joel Brobecker wrote:
>> Hello,
>>
>> On Darwin, we have lots of complaints being emitted when restarting
>> a program:
>>
>> (gdb) start
>> `a-except.o' has disappeared; keeping its symbols.
>> `unwind-dw2.o' has disappeared; keeping its symbols.
>> `s-except.o' has disappeared; keeping its symbols.
>> `s-traceb.o' has disappeared; keeping its symbols.
>>
>> These object files are part of the GNAT runtime, and were never available.
>> The warning comes from the fact that we're checking whether the .o files
>> in the GNAT shared runtime have changed whereas we should be checking
>> whether the GNAT shared library itself has changed.
>>
>> This patch implements this. Although it is really only useful on a platform
>> such as Darwin (debug info stored in .o files), we believe that this is
>> the right thing to do in general. This change should be a noop for all
>> the other platforms in any case.
>
> Makes sense to me. And it's wonderful to get rid of another
> #ifdef DEPRECATED_IBM6000_TARGET instance. Though, isn't the
> comment's mention of "shared" a bit misleading? Isn't this about static
> libraries / archives? Does this really also apply to shared
> libraries?
For darwin, this applies only to static libraries. For AIX, I don't know :-)
Tristan.