This is the mail archive of the
gdb-patches@sources.redhat.com
mailing list for the GDB project.
[PATCH]: Improve i386 MMX register support
- From: Mark Kettenis <kettenis at chello dot nl>
- To: gdb-patches at sources dot redhat dot com
- Date: Tue, 13 Aug 2002 23:54:21 +0200 (CEST)
- Subject: [PATCH]: Improve i386 MMX register support
Now that we have the MMX registers as pseudo's, we can get rid of this
FIXME. I still haven't tested whether the MMX support actually works,
but this simply has to be the right way to do it.
Checked in.
Mark
Index: ChangeLog
from Mark Kettenis <kettenis@elgar.kettenis.dyndns.org>
* i386-tdep.c (i386_stab_reg_to_regnum): Return correct register
numbers for MMX registers.
Index: i386-tdep.c
===================================================================
RCS file: /cvs/src/src/gdb/i386-tdep.c,v
retrieving revision 1.77
diff -u -p -r1.77 i386-tdep.c
--- i386-tdep.c 13 Aug 2002 19:14:09 -0000 1.77
+++ i386-tdep.c 13 Aug 2002 21:50:09 -0000
@@ -113,9 +113,7 @@ i386_stab_reg_to_regnum (int reg)
else if (reg >= 29 && reg <= 36)
{
/* MMX registers. */
- /* FIXME: kettenis/2001-07-28: Should we have the MMX registers
- as pseudo-registers? */
- return reg - 29 + FP0_REGNUM;
+ return reg - 29 + MM0_REGNUM;
}
/* This will hopefully provoke a warning. */