From 7d12f766fa7865133c37420bd09c0fbac0e47524 Mon Sep 17 00:00:00 2001 From: Mark Kettenis Date: Tue, 13 Aug 2002 21:54:18 +0000 Subject: [PATCH] * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register numbers for MMX registers. --- gdb/ChangeLog | 5 +++++ gdb/i386-tdep.c | 4 +--- 2 files changed, 6 insertions(+), 3 deletions(-) diff --git a/gdb/ChangeLog b/gdb/ChangeLog index 5b28bd6f7fe..71eae60d0d1 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,3 +1,8 @@ +2002-08-13 Mark Kettenis + + * i386-tdep.c (i386_stab_reg_to_regnum): Return correct register + numbers for MMX registers. + 2002-08-13 Andrew Cagney * i386-tdep.c (i386_gdbarch_init): Use diff --git a/gdb/i386-tdep.c b/gdb/i386-tdep.c index c2a4d51f7ff..a0fb4480d59 100644 --- a/gdb/i386-tdep.c +++ b/gdb/i386-tdep.c @@ -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. */ -- 2.30.2