This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: [9/10] RFC: remove general_symbol_info::obj_section
- From: Tom Tromey <tromey at redhat dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: gdb-patches at sourceware dot org
- Date: Mon, 08 Apr 2013 13:41:15 -0600
- Subject: Re: [9/10] RFC: remove general_symbol_info::obj_section
- References: <87mwv173yd dot fsf at fleche dot redhat dot com> <515C6240 dot 9000002 at redhat dot com>
>>>>> "Pedro" == Pedro Alves <palves@redhat.com> writes:
>> * stabsread.c was setting the symbol's section. However, this caused
>> some test failures on HPPA. It seemed better to me not to set the
>> section and to let fixup_section do its work.
Pedro> Do you recall specifically why that caused failures? I'm curious
Pedro> why that wasn't a problem before this series.
I'm afraid I don't remember.
>> I'm not really sure what to do here. I could further change all the
>> symbol readers not to do relocation at read time. However, I think
>> that is pretty hard. Anybody have a better idea?
Pedro> Nope. But this mystifies me too. Why wasn't the fallback
Pedro> necessary before? Ah, it seems before we'd just happen to end up
Pedro> with ginfo->section=0 too.
Yeah, it is a real mess. Eventually I think it will all be sorted out:
http://sourceware.org/gdb/wiki/ObjfileSplitting
Tom