mirror of
https://github.com/darlinghq/darling-gdb.git
synced 2025-03-04 15:37:54 +00:00

* elfcode.h (elf_object_p): Reject files of header type ET_CORE (core files are treated differently than object files). * elf-bfd.h (_bfd_elf_write_corefile_contents, bfd_elf_mkcorefile): declare. * elfxx-target.h (_bfd_elf_write_corefile_contents, bfd_elf_mkcorefile): add to bfd_target vector. * elfcore.h (elf_core_file_p): save the program header table, and set the bfd architecture from the elf file header. * elf.c (bfd_elf_mkcorefile): new function. (_bfd_elf_write_corefile_contents): new function. (assign_file_positions_for_segments): add cases for handling PT_NOTE segments. (assign_file_positions_except_relocs): core files should be handled the same as exec files. (prep_headers): identify core files as type ET_CORE. (copy_private_bfd_data): identify the sections belonging to the PT_NOTE segment. * elf32-sparc.c (elf32_sparc_final_write_processing): add break statement to default case.
Description
GDB that can debug Mach-Os on Linux
Languages
C
58.3%
Makefile
18.5%
Assembly
13.3%
C++
3.6%
Scheme
1.2%
Other
4.7%