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 Wednesday 21 April 2010 16:43:43, Tristan Gingold wrote:
> > 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 :-)
Found it, I think:
<http://publib.boulder.ibm.com/infocenter/comphelp/v7v91/index.jsp?topic=/com.ibm.vacpp7a.doc/getstart/overview/port_aix_obj_lib.htm>
"A shared library on AIX refers to an archive library file created by the ar
command, in which one or more of the archive members is a shared object."
So, could you tweak the comment a bit while there? I'd suggest:
/* If this object is from an archive (what you usually create with
`ar', often called a `static library' on most systems, though
a `shared library' on AIX is also an archive), then you should
stat on the archive name, not member name. */
Thanks.
--
Pedro Alves