From mboxrd@z Thu Jan 1 00:00:00 1970 From: Mark Kettenis To: gdb-patches@sources.redhat.com Subject: [PATCH] Fix Solaris x86 debug register renumbering Date: Tue, 31 Jul 2001 01:41:00 -0000 Message-id: <200107302156.f6ULuW708663@delius.kettenis.local> X-SW-Source: 2001-07/msg00752.html Peter Schauer told me in private mail that this is the right thing for Solatis x86 too. Checked in on head and branch. Mark Index: ChangeLog from Mark Kettenis * config/i386/tm-i386sol2.h (STAB_REG_TO_REGNUM): Redefine to call i386_dwarf_reg_to_regnum. Index: config/i386/tm-i386sol2.h =================================================================== RCS file: /cvs/src/src/gdb/config/i386/tm-i386sol2.h,v retrieving revision 1.9 diff -u -p -r1.9 tm-i386sol2.h --- config/i386/tm-i386sol2.h 2001/05/15 00:03:37 1.9 +++ config/i386/tm-i386sol2.h 2001/07/30 21:39:12 @@ -24,6 +24,11 @@ #define HAVE_I387_REGS #include "i386/tm-i386v4.h" +/* We use stabs-in-ELF with the DWARF register numbering scheme. */ + +#undef STAB_REG_TO_REGNUM +#define STAB_REG_TO_REGNUM(reg) i386_dwarf_reg_to_regnum ((reg)) + /* If the current gcc for for this target does not produce correct debugging information for float parameters, both prototyped and unprototyped, then define this macro. This forces gdb to always