This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
Re: Use elfcore_write_linux_prstatus in gdb
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Pedro Alves <palves at redhat dot com>
- Cc: Alan Modra <amodra at gmail dot com>, Binutils <binutils at sourceware dot org>, GDB <gdb-patches at sourceware dot org>
- Date: Thu, 21 Jan 2016 05:24:02 -0800
- 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>
On Thu, Jan 21, 2016 at 5:11 AM, Pedro Alves <palves@redhat.com> wrote:
> On 01/21/2016 12:25 PM, Pedro Alves wrote:
>> On 01/21/2016 09:28 AM, Alan Modra wrote:
>>> The gdb side. Nothing fancy here, and no support for targets that
>>> need gdbarch_elfcore_write_linux_prstatus, mips n32, sparc64 if
>>> writing any of pr_{u,s,cu,cs}time, and probably x86-64 x32.
>>
>> Thanks a lot for doing all this! I don't have spare cycles either to
>> drive this all the way to completion for all archs, I think we can still
>> move forward with it, by adding a stop-gap implementation those
>> archs, which just calls elfcore_write_prstatus. I'll send it along
>> in a bit.
>
> Like this. I've pushed this to the users/palves/core-prstatus-rework
> branch. I've tested on x86_64 with:
>
> make check RUNTESTFLAGS="--target_board unix/-m32" TESTS="*/*core*.exp"
> make check RUNTESTFLAGS="--target_board unix/-m64" TESTS="*/*core*.exp"
It failed
make check RUNTESTFLAGS="--target_board unix/-mx32" TESTS="*/*core*.exp"
Please take a look at bfd/hosts/x86-64linux.h to see how to dump core
x86-64.
Thanks.
H.J.