+2004-04-07 Jim Blandy <jimb@redhat.com>
+
+ * i386-tdep.c (i386_stab_reg_to_regnum): Correct numbering for
+ %esp and %ebp
+
2004-04-07 Mark Kettenis <kettenis@gnu.org>
* config/sparc/linux.mt (TDEPFILES): Remove solib-legacy.o.
/* This implements what GCC calls the "default" register map. */
if (reg >= 0 && reg <= 7)
{
- /* General-purpose registers. */
- return reg;
+ /* General-purpose registers. The debug info calls %ebp
+ register 4, and %esp register 5. */
+ if (reg == 4)
+ return 5;
+ else if (reg == 5)
+ return 4;
+ else return reg;
}
else if (reg >= 12 && reg <= 19)
{