This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils 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: bug in bfd in open file cache


> On Fri, Aug 15, 2003 at 02:59:13AM +0200, Mikulas Patocka wrote:
> > bfd_cached_lookup few lines above returned NULL because it coudn't open
> > file because the file was inside an archive.
>
> Please further investigate bfd_cache_lookup.  Your bfd opened against
> an archive element should never match bfd_last_cache, thus
> bfd_cache_lookup_worker should be called.  This function should open
> the archive file if it has been closed.

Oops, I found it. It was because I deallocated pointer that I passed as
filename to bfd_openr. Maybe it should be documented that the pointer must
be active as long as bfd is open.

Mikulas


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