PATCH: PR gdb/11265: "infor reg sse" doesn't work on Linux/x86-64

H.J. Lu
2010-02-10T00:01:22Z

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. */