Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
From: Mark Kettenis <kettenis@chello.nl>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] s/amd64_fill_fxsave/amd64_collect_fxsave/
Date: Fri, 19 Mar 2004 00:09:00 -0000	[thread overview]
Message-ID: <200403041037.i24Ab7h1003320@elgar.kettenis.dyndns.org> (raw)

This paves the way for retiring amd64_fill_fxsave.

Committed to mainline,

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
 
	* amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
	instead of amd64_fill_fxsave.
	* amd64bsd-nat.c (store_inferior_registers): Likewise.
	* amd64fbsd-nat.c (fill_fpregset): Likewise.

 
Index: amd64-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64-linux-nat.c,v
retrieving revision 1.4
diff -u -p -r1.4 amd64-linux-nat.c
--- amd64-linux-nat.c 28 Feb 2004 19:38:21 -0000 1.4
+++ amd64-linux-nat.c 4 Mar 2004 10:34:10 -0000
@@ -176,7 +176,7 @@ supply_fpregset (elf_fpregset_t *fpregse
 void
 fill_fpregset (elf_fpregset_t *fpregsetp, int regnum)
 {
-  amd64_fill_fxsave ((char *) fpregsetp, regnum);
+  amd64_collect_fxsave (current_regcache, regnum, fpregsetp);
 }
 
 /* Fetch all floating-point registers from process/thread TID and store
Index: amd64bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64bsd-nat.c,v
retrieving revision 1.3
diff -u -p -r1.3 amd64bsd-nat.c
--- amd64bsd-nat.c 25 Feb 2004 20:59:12 -0000 1.3
+++ amd64bsd-nat.c 4 Mar 2004 10:34:10 -0000
@@ -98,7 +98,7 @@ store_inferior_registers (int regnum)
 		  (PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
 	perror_with_name ("Couldn't get floating point status");
 
-      amd64_fill_fxsave ((char *) &fpregs, regnum);
+      amd64_collect_fxsave (current_regcache, regnum, &fpregs);
 
       if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
 		  (PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
Index: amd64fbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64fbsd-nat.c,v
retrieving revision 1.12
diff -u -p -r1.12 amd64fbsd-nat.c
--- amd64fbsd-nat.c 25 Feb 2004 20:59:12 -0000 1.12
+++ amd64fbsd-nat.c 4 Mar 2004 10:34:10 -0000
@@ -141,7 +141,7 @@ supply_fpregset (fpregset_t *fpregsetp)
 void
 fill_fpregset (fpregset_t *fpregsetp, int regnum)
 {
-  amd64_fill_fxsave ((char *) fpregsetp, regnum);
+  amd64_collect_fxsave (current_regcache, regnum, fpregsetp);
 }
 \f
 


WARNING: multiple messages have this Message-ID
From: Mark Kettenis <kettenis@chello.nl>
To: gdb-patches@sources.redhat.com
Subject: [PATCH] s/amd64_fill_fxsave/amd64_collect_fxsave/
Date: Thu, 04 Mar 2004 10:37:00 -0000	[thread overview]
Message-ID: <200403041037.i24Ab7h1003320@elgar.kettenis.dyndns.org> (raw)
Message-ID: <20040304103700.j_8H29MzqTFSIYxpYaEH2vdvYix_8H9YLz9UiqKH6jw@z> (raw)

This paves the way for retiring amd64_fill_fxsave.

Committed to mainline,

Mark


Index: ChangeLog
from  Mark Kettenis  <kettenis@gnu.org>
 
	* amd64-linux-nat.c (fill_fpregset): Call amd64_colletc_fxsave
	instead of amd64_fill_fxsave.
	* amd64bsd-nat.c (store_inferior_registers): Likewise.
	* amd64fbsd-nat.c (fill_fpregset): Likewise.

 
Index: amd64-linux-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64-linux-nat.c,v
retrieving revision 1.4
diff -u -p -r1.4 amd64-linux-nat.c
--- amd64-linux-nat.c 28 Feb 2004 19:38:21 -0000 1.4
+++ amd64-linux-nat.c 4 Mar 2004 10:34:10 -0000
@@ -176,7 +176,7 @@ supply_fpregset (elf_fpregset_t *fpregse
 void
 fill_fpregset (elf_fpregset_t *fpregsetp, int regnum)
 {
-  amd64_fill_fxsave ((char *) fpregsetp, regnum);
+  amd64_collect_fxsave (current_regcache, regnum, fpregsetp);
 }
 
 /* Fetch all floating-point registers from process/thread TID and store
Index: amd64bsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64bsd-nat.c,v
retrieving revision 1.3
diff -u -p -r1.3 amd64bsd-nat.c
--- amd64bsd-nat.c 25 Feb 2004 20:59:12 -0000 1.3
+++ amd64bsd-nat.c 4 Mar 2004 10:34:10 -0000
@@ -98,7 +98,7 @@ store_inferior_registers (int regnum)
 		  (PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
 	perror_with_name ("Couldn't get floating point status");
 
-      amd64_fill_fxsave ((char *) &fpregs, regnum);
+      amd64_collect_fxsave (current_regcache, regnum, &fpregs);
 
       if (ptrace (PT_SETFPREGS, PIDGET (inferior_ptid),
 		  (PTRACE_ARG3_TYPE) &fpregs, 0) == -1)
Index: amd64fbsd-nat.c
===================================================================
RCS file: /cvs/src/src/gdb/amd64fbsd-nat.c,v
retrieving revision 1.12
diff -u -p -r1.12 amd64fbsd-nat.c
--- amd64fbsd-nat.c 25 Feb 2004 20:59:12 -0000 1.12
+++ amd64fbsd-nat.c 4 Mar 2004 10:34:10 -0000
@@ -141,7 +141,7 @@ supply_fpregset (fpregset_t *fpregsetp)
 void
 fill_fpregset (fpregset_t *fpregsetp, int regnum)
 {
-  amd64_fill_fxsave ((char *) fpregsetp, regnum);
+  amd64_collect_fxsave (current_regcache, regnum, fpregsetp);
 }
 \f
 


             reply	other threads:[~2004-03-04 10:37 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-03-19  0:09 Mark Kettenis [this message]
2004-03-04 10:37 ` Mark Kettenis

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=200403041037.i24Ab7h1003320@elgar.kettenis.dyndns.org \
    --to=kettenis@chello.nl \
    --cc=gdb-patches@sources.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