* remote-udi.c (udi_wait): Mask off high bits of stop reason.
authorKung Hsu <kung@cygnus>
Mon, 21 Aug 1995 18:56:04 +0000 (18:56 +0000)
committerKung Hsu <kung@cygnus>
Mon, 21 Aug 1995 18:56:04 +0000 (18:56 +0000)
* remote-udi.c (fetch_register): For unfetchable regs, pretend it's
done. Fix a bug.

gdb/ChangeLog
gdb/remote-udi.c

index cf441110874498dc454db2bae92aae8e5e3b04cb..6a0b82238f9abd107ad9db932513f31326509c35 100644 (file)
@@ -1,3 +1,9 @@
+Mon Aug 21 11:49:17 1995  Kung Hsu  <kung@mexican.cygnus.com>
+
+       * remote-udi.c (udi_wait): Mask off high bits of stop reason.
+       * remote-udi.c (fetch_register): For unfetchable regs, pretend it's
+       done. Fix a bug.
+
 Mon Aug 21 00:45:17 1995  Jeff Law  (law@snake.cs.utah.edu)
 
        * Makefile.in (install): Remove "brokensed" hack, unnecessary now
index 914d220483a1ef5b0be29ee8d152d5552f9137ac..6ade3e4804404caf30f4ff8ab962cbe24c68b3bf 100644 (file)
@@ -494,7 +494,7 @@ udi_wait (pid, status)
     case UDITrapped:
       printf_unfiltered("Am290*0 received vector number %d\n", StopReason >> 24);
          
-      switch (StopReason >> 8)
+      switch ((StopReason >> 8 ) & 0xff)
        {
        case 0:                 /* Illegal opcode */
          printf_unfiltered("   (break point)\n");
@@ -1434,7 +1434,8 @@ fetch_register (regno)
   else if (regno>=FPE_REGNUM && regno<=EXO_REGNUM)  
     {
       int val = -1;
-      supply_register(160 + (regno - FPE_REGNUM),(char *) &val);
+      /*supply_register(160 + (regno - FPE_REGNUM),(char *) &val);*/
+      supply_register(regno, (char *) &val);
       return;          /* Pretend Success */
     }
   else