Fixed some bugs in handling vxworks960 -- not reading registers right,
authorKen Raeburn <raeburn@cygnus>
Thu, 9 Jul 1992 23:54:02 +0000 (23:54 +0000)
committerKen Raeburn <raeburn@cygnus>
Thu, 9 Jul 1992 23:54:02 +0000 (23:54 +0000)
trying to use FP regs (not supported by target), botching IP.

gdb/tm-vx960.h

index f6a5e1f7853342f73805e712a238dba3ad92c5f4..a49c0bb5952e1c189d0c2532692c488df255c9b7 100644 (file)
@@ -20,6 +20,11 @@ Foundation, Inc., 675 Mass Ave, Cambridge, MA 02139, USA.  */
 
 #include "tm-i960.h"
 
+/* Under VxWorks the IP isn't filled in.  Skip it, go with RIP, which has
+   the real value.  */
+#undef PC_REGNUM
+#define PC_REGNUM RIP_REGNUM
+
 #define        GDBINIT_FILENAME        ".vxgdbinit"
 
 #define        DEFAULT_PROMPT          "(vxgdb) "