Mirror of the gdb-patches mailing list
 help / color / mirror / Atom feed
* PATCH: PR gdb/11265: "infor reg sse" doesn't work on Linux/x86-64
@ 2010-02-10  0:01 H.J. Lu
  2010-02-10 21:00 ` Mark Kettenis
  0 siblings, 1 reply; 2+ messages in thread
From: H.J. Lu @ 2010-02-10  0:01 UTC (permalink / raw)
  To: GDB

Linux/x86-64 overides i386_register_reggroup_p with
amd64_linux_register_reggroup_p, which calls
default_register_reggroup_p. It makes Linux/x86-64 different from
other x86-64 targets where "infor reg sse" works.  This patch makes
"infor reg sse" to work on Linux/x86-64 like other x86-64 targets.  OK
to install?

Thanks.


H.J.
---
2010-02-09  H.J. Lu  <hongjiu.lu@intel.com>

	PR gdb/11265
	* amd64-linux-tdep.c (amd64_linux_register_reggroup_p): Call
	i386_register_reggroup_p instead of default_register_reggroup_p.

diff --git a/gdb/amd64-linux-tdep.c b/gdb/amd64-linux-tdep.c
index 01cc1ce..c28eef7 100644
--- a/gdb/amd64-linux-tdep.c
+++ b/gdb/amd64-linux-tdep.c
@@ -262,7 +262,7 @@ amd64_linux_register_reggroup_p (struct gdbarch *gdbarch, int regnum,
     return (group == system_reggroup
             || group == save_reggroup
             || group == restore_reggroup);
-  return default_register_reggroup_p (gdbarch, regnum, group);
+  return i386_register_reggroup_p (gdbarch, regnum, group);
 }
 
 /* Set the program counter for process PTID to PC.  */


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2010-02-10 21:00 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-02-10  0:01 PATCH: PR gdb/11265: "infor reg sse" doesn't work on Linux/x86-64 H.J. Lu
2010-02-10 21:00 ` Mark Kettenis

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox