* remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
authorJim Kingdon <jkingdon@engr.sgi.com>
Tue, 11 Jan 1994 15:04:02 +0000 (15:04 +0000)
committerJim Kingdon <jkingdon@engr.sgi.com>
Tue, 11 Jan 1994 15:04:02 +0000 (15:04 +0000)
gdb/ChangeLog
gdb/remote-mips.c

index 3d3018040a4234043704e7f1ac0b9a4e8d735aa1..24be966ca7258c4601d20230551da3c7aa918d49 100644 (file)
@@ -1,3 +1,7 @@
+Tue Jan 11 06:59:10 1994  Jim Kingdon  (kingdon@deneb.cygnus.com)
+
+       * remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
+
 Tue Jan 11 00:53:46 1994  John Gilmore  (gnu@cygnus.com)
 
        * stack.c (frame_info):  If FRAME_FIND_SAVED_REGS isn't defined,
index e55d0a25363436db991070881d265d58b355a852..6fdf6bcc58b500a9fdd5d7b8253414a2293719db 100644 (file)
@@ -1054,12 +1054,12 @@ mips_wait (pid, status)
   /* Translate a MIPS waitstatus.  We use constants here rather than WTERMSIG
      and so on, because the constants we want here are determined by the
      MIPS protocol and have nothing to do with what host we are running on.  */
-  if ((rstatus & 0x377) == 0)
+  if ((rstatus & 0377) == 0)
     {
       status->kind = TARGET_WAITKIND_EXITED;
       status->value.integer = (((rstatus) >> 8) & 0377);
     }
-  else if ((rstatus & 0x377) == 0x177)
+  else if ((rstatus & 0377) == 0177)
     {
       status->kind = TARGET_WAITKIND_STOPPED;
       /* Don't want to use target_signal_from_host because we are converting
@@ -1075,7 +1075,7 @@ mips_wait (pid, status)
         from MIPS signal numbers, not host ones.  Our internal numbers
         match the MIPS numbers for the signals the board can return, which
         are: SIGINT, SIGSEGV, SIGBUS, SIGILL, SIGFPE, SIGTRAP.  */
-      status->value.sig = (enum target_signal) (rstatus & 0x177);
+      status->value.sig = (enum target_signal) (rstatus & 0177);
     }
 
   return 0;
This page took 0.031972 seconds and 4 git commands to generate.