This is the mail archive of the
binutils@sourceware.org
mailing list for the binutils project.
Re: PATCH: Add functions to write core notes for i386/amd64
- From: "H.J. Lu" <hjl dot tools at gmail dot com>
- To: Mark Kettenis <mark dot kettenis at xs4all dot nl>
- Cc: binutils at sourceware dot org
- Date: Mon, 19 Apr 2010 09:20:11 -0700
- Subject: Re: PATCH: Add functions to write core notes for i386/amd64
- References: <201004191603.o3JG3753027497@glazunov.sibelius.xs4all.nl>
On Mon, Apr 19, 2010 at 9:03 AM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
> This adds the necessary backend functions to write proper core notes
> like the ppc code already has. ?This is necessary for GDB to generate
> proper 32-bit core dumps on 64-bit systems.
> ok?
>
>
> 2010-04-19 ?Mark Kettenis ?<kettenis@gnu.org>
>
> ? ? ? ?* elf64-x86-64.c (elf64_x86_64_write_core_note): New function.
> ? ? ? ?(elf_backend_write_core_note): Define.
> ? ? ? ?* elf32-i386.c (elf_i386_write_core_note): New function.
> ? ? ? ?(elf_backend_write_core_note): Define.
>
It is not OK. I am not sure if it will work for Linux since Linux has
different note sizes. In any case, after
http://sourceware.org/ml/binutils/2010-04/msg00131.html
NT_PRPSINFO and NT_PRSTATUS should work fine on
Linux/x86-64. I think the proper way to fix it is to define
PRPSINFO32_T and PRPSINFO32_T for your x86-64 hosts.
Thanks.
--
H.J.