2013-02-04 Sergio Durigan Junior <sergiodj@redhat.com>
authorSergio Durigan Junior <sergiodj@redhat.com>
Mon, 4 Feb 2013 18:40:41 +0000 (18:40 +0000)
committerSergio Durigan Junior <sergiodj@redhat.com>
Mon, 4 Feb 2013 18:40:41 +0000 (18:40 +0000)
commitb3ac9c77560a7a807c10af506cb478274d00cc97
tree8208bbae33ce492b90b62cde3ac20690b55360ee
parent70a38d42c5b3fdc03acd4faef4149f5f2e8a0fb4
2013-02-04  Sergio Durigan Junior  <sergiodj@redhat.com>
    Denys Vlasenko  <dvlasenk@redhat.com>
    Pedro Alves  <palves@redhat.com>

* gdbarch.sh (elfcore_write_linux_prpsinfo): New F hook.
(struct elf_internal_linux_prpsinfo): Forward declare.
* gdbarch.h, gdbarch.c: Regenerate.
* linux-tdep.c: Include `cli/cli-utils.h'.
(linux_fill_prpsinfo): New function.
(linux_make_corefile_notes): Use linux_fill_prpsinfo.  If there's
an elfcore_write_linux_prpsinfo hook, use it, otherwise, use
elfcore_write_linux_prpsinfo32 or elfcore_write_linux_prpsinfo64
depending on gdbarch pointer bitness.
* ppc-linux-tdep.c: Include elf-bfd.h.
(ppc_linux_init_abi): Hook in elfcore_write_ppc_linux_prpsinfo32
on 32-bit.
gdb/ChangeLog
gdb/gdbarch.c
gdb/gdbarch.h
gdb/gdbarch.sh
gdb/linux-tdep.c
gdb/ppc-linux-tdep.c