From: Mark Kettenis <mark.kettenis@xs4all.nl>
To: hjl.tools@gmail.com
Cc: gdb-patches@sourceware.org
Subject: Re: PATCH: PR corefiles/11481: gcore doesn't work on i386 without SSE
Date: Tue, 13 Apr 2010 21:39:00 -0000 [thread overview]
Message-ID: <201004132139.o3DLd6Q1018225@glazunov.sibelius.xs4all.nl> (raw)
In-Reply-To: <h2y6dc9ffc81004100846s8bd894f4r3a78eda158429ba5@mail.gmail.com> (hjl.tools@gmail.com)
[-- Warning: decoded text below may be mangled, UTF-8 assumed --]
[-- Attachment #1: Type: text/plain, Size: 2526 bytes --]
> Date: Sat, 10 Apr 2010 08:46:04 -0700
> From: "H.J. Lu" <hjl.tools@gmail.com>
>
> On Sat, Apr 10, 2010 at 7:49 AM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
> >> Date: Fri, 9 Apr 2010 13:43:06 -0700
> >> From: "H.J. Lu" <hjl.tools@gmail.com>
> >>
> >> On Fri, Apr 9, 2010 at 1:08 PM, H.J. Lu <hjl.tools@gmail.com> wrote:
> >> > On Fri, Apr 9, 2010 at 12:15 PM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
> >> >>> Date: Fri, 9 Apr 2010 09:01:01 -0700
> >> >>> From: "H.J. Lu" <hjl.tools@gmail.com>
> >> >>>
> >> >>> On Fri, Apr 9, 2010 at 8:59 AM, Mark Kettenis <mark.kettenis@xs4all.nl> wrote:
> >> >>> >> Date: Fri, 9 Apr 2010 08:50:12 -0700
> >> >>> >> From: "H.J. Lu" <hongjiu.lu@intel.com>
> >> >>> >>
> >> >>> >> Hi,
> >> >>> >>
> >> >>> >> This patch fixes gcore by not generating core regset sections which
> >> >>> >> aren't supported by i386 without SSE. OK to install?
> >> >>> >
> >> >>> > Sorry, I think this is the wrong way to fix this.
> >> >>> >
> >> >>>
> >> >>> Any suggestions?
> >> >>
> >> >> Yup. This makes sure we always install a list of register notes that
> >> >> matches the target description.
> >> >>
> >> >> 2010-04-09 Mark Kettenis <kettenis@gnu.org>
> >> >>
> >> >> * i386-linux-tdep.c (i386_linux_regset_sections): Remove extended
> >> >> register note sections.
> >> >> (i386_linux_sse_regset_sections, i386_linux_avx_regset_sections):
> >> >> New variables.
> >> >> (i386_linux_init_abi): Install list of supported register note
> >> >> sections that matches the target description.
> >> >>
> >> >
> >> > That is nice. We should do the same thing in amd64-linux-tdep.c.
> >> >
> >>
> >> My second thought. No need to change amd64-linux-tdep.c.
> >> We can just add i386_linux_mmx_regset_sections. OK to install?
> >
> > Why should we do it this way?
> >
>
> It will be nice for "gcore" to generate all valid note sections
> so that the older gdb can still exam the core generated by
> the newer gdb even if the older gdb may not access the
> new registers it doesn't support. Otherwise, gdb 7.0
> can't see any XMM registers in coredump generated
> by gdb 7.2 on AVX machine even if the upper 128bits
> of YMM registers are never used.
Thought about this for a bit, but I think it is better not to include
those registers at all than to generate core dumps where half the
register appears to be "lost".
So I committed my origional diff, and I'll change amd64-linux-tdep.c
to match the i386 behaviour.
next prev parent reply other threads:[~2010-04-13 21:39 UTC|newest]
Thread overview: 12+ messages / expand[flat|nested] mbox.gz Atom feed top
2010-04-09 15:50 H.J. Lu
2010-04-09 16:00 ` Mark Kettenis
2010-04-09 16:01 ` H.J. Lu
2010-04-09 19:15 ` Mark Kettenis
2010-04-09 20:08 ` H.J. Lu
2010-04-09 20:43 ` H.J. Lu
2010-04-10 14:49 ` Mark Kettenis
2010-04-10 15:46 ` H.J. Lu
2010-04-13 21:39 ` Mark Kettenis [this message]
2010-04-13 21:50 ` Pedro Alves
2010-04-09 16:02 ` Joel Brobecker
2010-04-09 16:05 ` H.J. Lu
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=201004132139.o3DLd6Q1018225@glazunov.sibelius.xs4all.nl \
--to=mark.kettenis@xs4all.nl \
--cc=gdb-patches@sourceware.org \
--cc=hjl.tools@gmail.com \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox