aboutsummaryrefslogtreecommitdiff
path: root/gdb/remote-udi.c
diff options
context:
space:
mode:
authorJohn Gilmore <gnu@cygnus>1993-02-10 04:09:05 +0000
committerJohn Gilmore <gnu@cygnus>1993-02-10 04:09:05 +0000
commit79533adf037aea185f66f27b118603152371cd97 (patch)
tree12635500f08ce32d02dd1431ecf2d43b95907ec6 /gdb/remote-udi.c
parentfe715d06b665f998c2de1169a1578dbf32a57e96 (diff)
downloadgdb-79533adf037aea185f66f27b118603152371cd97.zip
gdb-79533adf037aea185f66f27b118603152371cd97.tar.gz
gdb-79533adf037aea185f66f27b118603152371cd97.tar.bz2
* remote-udi.c (FREEZE_MODE): Fix && for & typo. Found and
fixed by Lynn D. Shumaker, shumaker@saifr00.cfsat.honeywell.com. PR# gdb/2162
Diffstat (limited to 'gdb/remote-udi.c')
-rw-r--r--gdb/remote-udi.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/remote-udi.c b/gdb/remote-udi.c
index af846e6..10cb87c 100644
--- a/gdb/remote-udi.c
+++ b/gdb/remote-udi.c
@@ -81,7 +81,7 @@ char CoffFileName[100] = "";
#define TYPE_A29050 3
static char *processor_name[] = { "Unknown", "Am29000", "Am29030", "Am29050" };
static int processor_type=TYPE_UNKNOWN;
-#define FREEZE_MODE (read_register(CPS_REGNUM) && 0x400)
+#define FREEZE_MODE (read_register(CPS_REGNUM) & 0x400)
#define USE_SHADOW_PC ((processor_type == TYPE_A29050) && FREEZE_MODE)
#define LLOG_FILE "udi.log"