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: [patch 06/15] PIE: Fix displacement of separate debug info files


>>>>> "Jan" == Jan Kratochvil <jan.kratochvil@redhat.com> writes:

Jan> 	Fix displacement of separate debug info files.
Jan> 	* objfiles.c (objfile_relocate): Rename to ...
Jan> 	(objfile_relocate1): ... here and make it static.  Extend the comment.
Jan> 	(objfile_relocate): New function.
Jan> 	* solib-spu.c (spu_relocate_main_executable): Explicitly check if
Jan> 	SYMFILE_OBJFILE is NULL.  Remove variables objfile and old_chain.
Jan> 	Remove following of SEPARATE_DEBUG_OBJFILE.  new_offsets is now
Jan> 	allocated using alloca.
Jan> 	* symfile.c (build_section_addr_info_from_objfile): New function.
Jan> 	(symbol_file_add_with_addrs_or_offsets): Remove variable orig_addrs and
Jan> 	its initialization.
Jan> 	(symbol_file_add_with_addrs_or_offsets <debugfile>): Call
Jan> 	build_section_addr_info_from_objfile instead.
Jan> 	* symfile.h (build_section_addr_info_from_objfile): New prototype.

Jan> -  if (addrs)
Jan> -    {
Jan> -      orig_addrs = copy_section_addr_info (addrs);

I think this was the last call to copy_section_addr_info, so this patch
should remove that function as well (unless you use it in a different
patch in the series?  I didn't check).

Ok with this change.

Tom


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