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]

Relocation test fix for target=i686-mingw32 and host=i686-pc-linux


Hi,

Attached patch fixes a test case failure for target=i686-mingw32 and host=i686-pc-linux.

Loading file to 0x00 is causing gdb to throw error,"A problem internal to GDB has been detected, further debugging may prove unreliable."

Debugging revealed that call to coff_i386_reloc from dwarf2_build_frame_info sets the section_htable to 0x00. Right after, we try to get "got = bfd_get_section_by_name (unit->abfd, ".got");" and end up with gdb error as hash table is no more valid at this point.

Also please note that issue is not experienced with main, instead of hack implemented in the test case's c file i.e. relocate.c.

Regards,
-Ali

Attachment: cb-1802.exp
Description: Text document


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