Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@chello.nl>
To: kevinb@redhat.com
Cc: gdb-patches@sources.redhat.com
Subject: Re: [RFA/i386]: Enable default support for SSE registers
Date: Tue, 12 Aug 2003 17:06:00 -0000	[thread overview]
Message-ID: <200308121706.h7CH6Yl4026190@elgar.kettenis.dyndns.org> (raw)
In-Reply-To: <1030812163937.ZM20976@localhost.localdomain> (message from Kevin Buettner on Tue, 12 Aug 2003 09:39:37 -0700)

   Date: Tue, 12 Aug 2003 09:39:37 -0700
   From: Kevin Buettner <kevinb@redhat.com>

   On Aug 12,  5:36pm, Mark Kettenis wrote:

   > There is one more concern that I do have: If we include
   > the SSE registers, we somehow should also set their values to
   > something sensible for targets that don't support them.  We already do
   > this for Linux, but it makes more sense to add some code to
   > i387_supply_fsave().

   I just took a quick look at this.  It's not obvious to me what you have
   in mind.  Would you mind taking care of this?

I'll take care of it.

   Also... I just noticed the following bit of code in i387-tdep.c:

       i387_supply_register (int regnum, char *fsave)
       {
	 if (fsave == NULL)
	   {
	     supply_register (regnum, NULL);
	     return;
	   }

   Calling supply_register() with NULL will end up calling memcpy() with
   NULL as the second argument.  If memcpy() is told to copy a non-zero
   number of characters, it'll SEGV.

Huh, If you call support_register() with NULL, it will use memset() to
initialize the register with all zeroes.

   > Do you want it on the 6.0 branch too?

   It's not critical, but it'd be nice.

I'll see.  At the very least I'll wait a few days and see whether
someone complains about the changed behaviour.

Mark


  reply	other threads:[~2003-08-12 17:06 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2003-07-22 18:43 Kevin Buettner
2003-07-29 15:49 ` Kevin Buettner
2003-08-12 15:36   ` Mark Kettenis
2003-08-12 16:39     ` Kevin Buettner
2003-08-12 17:06       ` Mark Kettenis [this message]
2003-08-12 17:39         ` Kevin Buettner

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=200308121706.h7CH6Yl4026190@elgar.kettenis.dyndns.org \
    --to=kettenis@chello.nl \
    --cc=gdb-patches@sources.redhat.com \
    --cc=kevinb@redhat.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