This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: Use elfcore_write_linux_prstatus in gdb
- From: Alan Modra <amodra at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: "H.J. Lu" <hjl dot tools at gmail dot com>, Binutils <binutils at sourceware dot org>, GDB <gdb-patches at sourceware dot org>
- Date: Fri, 22 Jan 2016 01:14:06 +1030
- Subject: Re: Use elfcore_write_linux_prstatus in gdb
- Authentication-results: sourceware.org; auth=none
- References: <20160121092855 dot GJ17028 at bubble dot grove dot modra dot org> <56A0CE51 dot 1090709 at redhat dot com> <56A0D901 dot 7010709 at redhat dot com> <CAMe9rOqBr_AO5NVBTAe93kJi-FqKrhJnYZBZQjtNWsdDU85YMw at mail dot gmail dot com> <56A0E594 dot 2080303 at redhat dot com> <CAMe9rOoYJcX6WODb-e8jLPOzK6hE7KhYcPyuV91SjWe1A-8y=w at mail dot gmail dot com> <56A0EA83 dot 3040403 at redhat dot com>
On Thu, Jan 21, 2016 at 02:26:11PM +0000, Pedro Alves wrote:
> As I said, "AFAICS, elf_prstatusx32 is exactly like elf_prstatus32,
> except it takes a 64-bit regset." It's probably an issue
> of alignment/padding?
Yes, I guess that the presence of elf_gregset64_t for x32 changes the
alignment of the external struct, inserting 4 bytes of padding at the
end.
--
Alan Modra
Australia Development Lab, IBM