[prev in list] [next in list] [prev in thread] [next in thread] 

List:       gdb-patches
Subject:    [PATCH] Fix Solaris x86 debug register renumbering
From:       kettenis () wins ! uva ! nl (Mark Kettenis)
Date:       2001-07-31 1:41:00
Message-ID: 200107302156.f6ULuW708663 () delius ! kettenis ! local
[Download RAW message or body]

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  <kettenis@gnu.org>

	* 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


[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic