BFD: Write Linux core PRSTATUS note into MIPS core file
authorDjordje Todorovic <djordje.todorovic@rt-rk.com>
Wed, 8 Nov 2017 21:19:05 +0000 (21:19 +0000)
committerMaciej W. Rozycki <macro@mips.com>
Wed, 8 Nov 2017 21:19:05 +0000 (21:19 +0000)
commit9031cb4af0adcf1c73cb9b8c73ca2d989023af2f
tree7d145eb97da4e384a0af6bcd8efc075d4ba433ae
parent2f4732b0e622d9d5d899c29e2132e4cd2966aaad
BFD: Write Linux core PRSTATUS note into MIPS core file

On MIPS o32, n32 and n64 platforms information such as PID was not
correctly written into core file from GDB.

This fixes that behavior.

bfd/ChangeLog:

* elf32-mips.c (elf32_mips_write_core_note): New function.
(elf_backend_write_core_note): New macro.
* elf64-mips.c (elf64_mips_write_core_note): New function.
(elf_backend_write_core_note): New macro.
* elfn32-mips.c (elf32_mips_write_core_note): New function.
(elf_backend_write_core_note): New macro.
bfd/ChangeLog
bfd/elf32-mips.c
bfd/elf64-mips.c
bfd/elfn32-mips.c