This is the mail archive of the gdb-patches@sourceware.org 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: [RFA] crash while re-reading symbols from objfile on ppc-aix.


>>>>> "Joel" == Joel Brobecker <brobecker@adacore.com> writes:

Joel> The critical difference between
Joel> a platform such as x86_64-linuxe where it works, and ppc-aix,
Joel> where it doesn't lies in the fact that bfd-data sharing is not
Joel> activated on ppc-aix, and as a result, the per-bfd data gets
Joel> allocated on the objfile's obstack instead of in the bfd objalloc:

I'm curious to know why it doesn't share.

Joel>         * symfile.c (reread_symbols): Move call to set_objfile_per_bfd
Joel>         after re-initialization of OBJFILE's obstack.

Joel> Tested on x86_64-linux, no regression. Also tested on ppc-aix using
Joel> AdaCore's testsuite (expect hangs at the end of the test, on ppc-aix,
Joel> so I can't collect any result).

Joel> Ok to commit?

Yes, definitely.  Thanks.

Tom


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