* elf-bfd.h (struct core_elf_obj_tdata): New.

(struct elf_obj_tdata): Delete core_signal, core_pid, core_lwpid,
	core_program, and core_command.  Add "core".
	* elf.c (bfd_elf_mkcorefile): Allocate "core" struct.
	Update all refs to tdata core fields.
	* elf32-am33lin.c, * elf32-arm.c, * elf32-cris.c, * elf32-frv.c,
	* elf32-hppa.c, * elf32-i386.c, * elf32-m68k.c, * elf32-mips.c,
	* elf32-nios2.c, * elf32-ppc.c, * elf32-s390.c, * elf32-score.c,
	* elf32-score7.c, * elf32-sh.c, * elf32-sparc.c, * elf32-tilegx.c,
	* elf32-tilepro.c, * elf32-xtensa.c, * elf64-aarch64.c,
	* elf64-hppa.c, * elf64-mips.c, * elf64-ppc.c, * elf64-tilegx.c,
	* elf64-x86-64.c, * elfcore.h, * elfn32-mips.c: Update all refs
	to tdata core fields.
This commit is contained in:
Alan Modra
2013-02-21 03:02:30 +00:00
parent 12bd695738
commit 228e534f16
29 changed files with 225 additions and 192 deletions

View File

@@ -22,19 +22,19 @@
char*
elf_core_file_failing_command (bfd *abfd)
{
return elf_tdata (abfd)->core_command;
return elf_tdata (abfd)->core->command;
}
int
elf_core_file_failing_signal (bfd *abfd)
{
return elf_tdata (abfd)->core_signal;
return elf_tdata (abfd)->core->signal;
}
int
elf_core_file_pid (bfd *abfd)
{
return elf_tdata (abfd)->core_pid;
return elf_tdata (abfd)->core->pid;
}
bfd_boolean
@@ -51,7 +51,7 @@ elf_core_file_matches_executable_p (bfd *core_bfd, bfd *exec_bfd)
}
/* See if the name in the corefile matches the executable name. */
corename = elf_tdata (core_bfd)->core_program;
corename = elf_tdata (core_bfd)->core->program;
if (corename != NULL)
{
const char* execname = strrchr (exec_bfd->filename, '/');