aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-mips.c
diff options
context:
space:
mode:
authorJim Kingdon <jkingdon@engr.sgi.com>1994-01-11 15:04:02 +0000
committerJim Kingdon <jkingdon@engr.sgi.com>1994-01-11 15:04:02 +0000
commit6397809b7f806b7a38169ba8cacf3d910b2d8b4f (patch)
tree242584a8db83e58a6a9b83a6ffe06756c1efe0b5 /gdb/remote-mips.c
parentb36b8a6e94a6d76c5bb1382be804df6bab21cc60 (diff)
downloadfsf-binutils-gdb-6397809b7f806b7a38169ba8cacf3d910b2d8b4f.zip
fsf-binutils-gdb-6397809b7f806b7a38169ba8cacf3d910b2d8b4f.tar.gz
fsf-binutils-gdb-6397809b7f806b7a38169ba8cacf3d910b2d8b4f.tar.bz2
* remote-mips.c (mips_wait): Fix typos (0x177 -> 0177, 0x377 -> 0377).
Diffstat (limited to 'gdb/remote-mips.c')
-rw-r--r--gdb/remote-mips.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/gdb/remote-mips.c b/gdb/remote-mips.c
index e55d0a2..6fdf6bc 100644
--- a/gdb/remote-mips.c
+++ b/gdb/remote-mips.c
@@ -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;