aboutsummaryrefslogtreecommitdiff
path: root/bfd/elf.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2011-05-10 06:13:07 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2011-05-10 06:13:07 +0000
commitbc989cdc1ce4e96e07fcc668742251f3315365ec (patch)
treedeb3832dbc4c4ff17bd965fa2822a54292c247a0 /bfd/elf.c
parent6e789b2650f6961dffe63ce0e462e15c700b5a79 (diff)
downloadgdb-bc989cdc1ce4e96e07fcc668742251f3315365ec.zip
gdb-bc989cdc1ce4e96e07fcc668742251f3315365ec.tar.gz
gdb-bc989cdc1ce4e96e07fcc668742251f3315365ec.tar.bz2
bfd/
* elf.c (elfcore_grok_psinfo): Initialize CORE_PID for both native and 32bit psinfo. * elf32-ppc.c (ppc_elf_grok_psinfo): Initialize core_pid. * elf64-ppc.c (ppc64_elf_grok_psinfo): Likewise.
Diffstat (limited to 'bfd/elf.c')
-rw-r--r--bfd/elf.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/bfd/elf.c b/bfd/elf.c
index 6fccf42..966ada0 100644
--- a/bfd/elf.c
+++ b/bfd/elf.c
@@ -8000,6 +8000,7 @@ elfcore_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
memcpy (&psinfo, note->descdata, sizeof (psinfo));
+ elf_tdata (abfd)->core_pid = psinfo.pr_pid;
elf_tdata (abfd)->core_program
= _bfd_elfcore_strndup (abfd, psinfo.pr_fname,
sizeof (psinfo.pr_fname));
@@ -8016,6 +8017,7 @@ elfcore_grok_psinfo (bfd *abfd, Elf_Internal_Note *note)
memcpy (&psinfo, note->descdata, sizeof (psinfo));
+ elf_tdata (abfd)->core_pid = psinfo.pr_pid;
elf_tdata (abfd)->core_program
= _bfd_elfcore_strndup (abfd, psinfo.pr_fname,
sizeof (psinfo.pr_fname));