diff options
author | Alan Modra <amodra@bigpond.net.au> | 2013-02-21 03:02:27 +0000 |
---|---|---|
committer | Alan Modra <amodra@bigpond.net.au> | 2013-02-21 03:02:27 +0000 |
commit | 20812afb15f97fa57b2c909d211d73be08e692ce (patch) | |
tree | 960052849b03aaf8b8969b2e16ba25ace7cb9dc4 /bfd/elfcore.h | |
parent | b8af5afa0cb5d03c5daca61fc9a1a5790675fff4 (diff) | |
download | gdb-20812afb15f97fa57b2c909d211d73be08e692ce.tar.gz |
* 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.
Diffstat (limited to 'bfd/elfcore.h')
-rw-r--r-- | bfd/elfcore.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/bfd/elfcore.h b/bfd/elfcore.h index 8d5ec6d5a24..429c09c758e 100644 --- a/bfd/elfcore.h +++ b/bfd/elfcore.h @@ -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, '/'); |