diff options
author | Maciej W. Rozycki <macro@imgtec.com> | 2017-10-11 15:01:41 +0100 |
---|---|---|
committer | Maciej W. Rozycki <macro@imgtec.com> | 2017-10-11 15:01:41 +0100 |
commit | fe22022617a7122491aa83c893a10a8d861cde73 (patch) | |
tree | f26ef291eca293758957c65f7a0fc87d84db15a0 /gdb/linux-tdep.c | |
parent | 3c9a7b0d6d84425ea24d222a1a31e206e587374f (diff) | |
download | gdb-fe22022617a7122491aa83c893a10a8d861cde73.zip gdb-fe22022617a7122491aa83c893a10a8d861cde73.tar.gz gdb-fe22022617a7122491aa83c893a10a8d861cde73.tar.bz2 |
GDB: Remove Linux core PRPSINFO note writer override
Revert parts of commit b3ac9c77560a ("Put more info in NT_PRPSINFO Linux
notes"), <https://sourceware.org/ml/binutils/2013-02/msg00024.html>, and
remove support for a Linux core PRPSINFO note writer override, now that
all variants are handled automatically within BFD itself.
gdb/
* linux-tdep.c (linux_make_corefile_notes): Remove call to
`gdbarch_elfcore_write_linux_prpsinfo'.
* gdbarch.sh (elfcore_write_linux_prpsinfo): Remove architecture
method.
(elf_internal_linux_prpsinfo): Remove declaration.
* gdbarch.h: Regenerate.
* gdbarch.c: Regenerate.
Diffstat (limited to 'gdb/linux-tdep.c')
-rw-r--r-- | gdb/linux-tdep.c | 23 |
1 files changed, 7 insertions, 16 deletions
diff --git a/gdb/linux-tdep.c b/gdb/linux-tdep.c index 5dd87b7..8751718 100644 --- a/gdb/linux-tdep.c +++ b/gdb/linux-tdep.c @@ -1956,23 +1956,14 @@ linux_make_corefile_notes (struct gdbarch *gdbarch, bfd *obfd, int *note_size) if (linux_fill_prpsinfo (&prpsinfo)) { - if (gdbarch_elfcore_write_linux_prpsinfo_p (gdbarch)) - { - note_data = gdbarch_elfcore_write_linux_prpsinfo (gdbarch, obfd, - note_data, note_size, - &prpsinfo); - } + if (gdbarch_ptr_bit (gdbarch) == 64) + note_data = elfcore_write_linux_prpsinfo64 (obfd, + note_data, note_size, + &prpsinfo); else - { - if (gdbarch_ptr_bit (gdbarch) == 64) - note_data = elfcore_write_linux_prpsinfo64 (obfd, - note_data, note_size, - &prpsinfo); - else - note_data = elfcore_write_linux_prpsinfo32 (obfd, - note_data, note_size, - &prpsinfo); - } + note_data = elfcore_write_linux_prpsinfo32 (obfd, + note_data, note_size, + &prpsinfo); } /* Thread register information. */ |