Checked in as obvious fixes. Also updated FSF copyright year to 2003
authorFred Fish <fnf@specifix.com>
Thu, 6 Feb 2003 17:58:01 +0000 (17:58 +0000)
committerFred Fish <fnf@specifix.com>
Thu, 6 Feb 2003 17:58:01 +0000 (17:58 +0000)
for remote-e7000.c and infttrace.c.

2003-02-05  Fred Fish  <fnf@intrinsity.com>
* remote-e7000.c (e7000_drain_command): Fix precedence problem with
'=' and '!='.
* rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
with '&' and '=='.
(angel_RDI_info): Ditto.
* infttrace.c (threads_continue_all_but_one): Fix precedence problem
with '&' and '!='.
(threads_continue_all_with_signals): Ditto.

gdb/ChangeLog
gdb/infttrace.c
gdb/rdi-share/ardi.c
gdb/remote-e7000.c

index 74a942e5dab5f808e02062f7c95aec68f47112f7..1b0c8cfb0d3fdfd81b9a91c673103cf16ae91dd4 100644 (file)
@@ -1,3 +1,14 @@
+2003-02-05  Fred Fish  <fnf@intrinsity.com>
+
+       * remote-e7000.c (e7000_drain_command): Fix precedence problem with
+       '=' and '!='.
+       * rdi-share/ardi.c (wait_for_debug_message): Fix precedence problem
+       with '&' and '=='.
+       (angel_RDI_info): Ditto.
+       * infttrace.c (threads_continue_all_but_one): Fix precedence problem
+       with '&' and '!='.
+       (threads_continue_all_with_signals): Ditto.
+  
 2003-02-05  Jim Ingham <jingham@apple.com>
             Keith Seitz  <keiths@redhat.com>
             Elena Zannoni  <ezannoni@redhat.com>
index 589a0e237bcab562ac252c6b5e9d6a8456f3e529..02a55762cd92f41f3892e713b1ae07b0ebe7a29d 100644 (file)
@@ -1,6 +1,6 @@
 /* Low level Unix child interface to ttrace, for GDB when running under HP-UX.
    Copyright 1988, 1989, 1990, 1991, 1992, 1993, 1994, 1995, 1996, 1998,
-   1999, 2000, 2001
+   1999, 2000, 2001, 2003
    Free Software Foundation, Inc.
 
    This file is part of GDB.
@@ -3951,7 +3951,7 @@ threads_continue_all_but_one (lwpid_t gdb_tid, int signal)
        * state.tts_flags & TTS_STATEMASK == TTS_WASSUSPENDED
        */
       if (debug_on)
-       if (state.tts_flags & TTS_STATEMASK != TTS_WASSUSPENDED)
+       if ((state.tts_flags & TTS_STATEMASK) != TTS_WASSUSPENDED)
          printf ("About to continue non-stopped thread %d\n", scan_tid);
 #endif
 
@@ -4085,7 +4085,7 @@ threads_continue_all_with_signals (lwpid_t gdb_tid, int signal)
 
 #ifdef THREAD_DEBUG
       if (debug_on)
-       if (state.tts_flags & TTS_STATEMASK != TTS_WASSUSPENDED)
+       if ((state.tts_flags & TTS_STATEMASK) != TTS_WASSUSPENDED)
          warning ("About to continue non-stopped thread %d\n", scan_tid);
 #endif
 
index 334a1fc9a60c5c0aafa98a59a669b427a8402050..3d176694c07be42055088f031f8277cc5f3db147 100644 (file)
@@ -154,7 +154,7 @@ static int wait_for_debug_message(int *rcode, int *debugID,
 
   unpack_message(BUFFERDATA((*packet)->pk_buffer), "%w%w%w%w%w", &reason, debugID,
                  OSinfo1, OSinfo2, status);
-  if (reason&0xffffff == ADP_HADPUnrecognised)
+  if ((reason&0xffffff) == ADP_HADPUnrecognised)
     return RDIError_UnimplementedMessage;
   if (reason != (unsigned ) *rcode) {
     if((reason&0xffffff) == ADP_HADPUnrecognised)
@@ -1842,7 +1842,7 @@ int angel_RDI_info(unsigned type, ARMword *arg1, ARMword *arg2) {
     len +=msgbuild(BUFFERDATA(packet->pk_buffer)+20, "%b%b%b%b%b", cpnum,
                    cpd->regdesc[cpnum].rmin, cpd->regdesc[cpnum].rmax,
                    cpd->regdesc[cpnum].nbytes, cpd->regdesc[cpnum].access);
-    if (cpd->regdesc[cpnum].access&0x3 == 0x3){
+    if ((cpd->regdesc[cpnum].access&0x3) == 0x3){
       len += msgbuild(BUFFERDATA(packet->pk_buffer)+25, "%b%b%b%b%b",
                       cpd->regdesc[cpnum].accessinst.cprt.read_b0,
                       cpd->regdesc[cpnum].accessinst.cprt.read_b1,
index efacde3149421b655396ecf6c02f686076a2df0f..49c7fb99ae817458d1ee7fc77dfd84d5c82f384c 100644 (file)
@@ -1,7 +1,7 @@
 /* Remote debugging interface for Hitachi E7000 ICE, for GDB
 
    Copyright 1993, 1994, 1995, 1996, 1997, 1998, 1999, 2000, 2001,
-   2002 Free Software Foundation, Inc.
+   2002, 2003 Free Software Foundation, Inc.
 
    Contributed by Cygnus Support. 
 
@@ -1812,7 +1812,7 @@ e7000_drain_command (char *args, int fromtty)
   puts_e7000debug ("end\r");
   putchar_e7000 (CTRLC);
 
-  while ((c = readchar (1) != -1))
+  while ((c = readchar (1)) != -1)
     {
       if (quit_flag)
        {