* h8500-tdep.c (initialize_h8500_tdep, large_command):
authorSteve Chamberlain <sac@cygnus>
Fri, 15 Apr 1994 18:43:07 +0000 (18:43 +0000)
committerSteve Chamberlain <sac@cygnus>
Fri, 15 Apr 1994 18:43:07 +0000 (18:43 +0000)
All references to value changed to value_ptrlage_command is now
called big_command.
All references to value changed to value_ptr.
* remote-z8k.c (e7000_wait): Use target_waitstatus and SETSTOP
* remote-hms.c (hms_wait): Timeout after five seconds.
* ser-go32.c (dosasync_read): Poll if timeout < 0.
* config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
* config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.

gdb/ChangeLog
gdb/h8500-tdep.c
gdb/remote-hms.c
gdb/ser-go32.c

index 0d64b68f32771598d67eba92e7cce830b6781d97..7780a4ae3a4620f5a7a2028d26ee61b1e0518d97 100644 (file)
@@ -1,3 +1,15 @@
+Fri Apr 15 11:35:19 1994  Steve Chamberlain  (sac@cygnus.com)
+
+       * h8500-tdep.c (initialize_h8500_tdep, large_command):
+       All references to value changed to value_ptrlage_command is now
+       called big_command.
+       All references to value changed to value_ptr.
+       * remote-e7000.c (e7000_wait): Use target_waitstatus and SETSTOP
+       * remote-hms.c (hms_wait): Timeout after five seconds.
+       * ser-go32.c (dosasync_read): Poll if timeout < 0.
+       * config/tm/tm-h8500.h (BEFORE_MAIN_LOOP_HOOK): Deleted.
+       * config/sh/tm-sh.h (BREAKPOINT): Is now sleep opcode.
+
 Thu Apr 14 07:01:56 1994  Jeffrey A. Law  (law@snake.cs.utah.edu)
 
        * procfs.c (procfs_wait): Protect watchpoint code with appropriate
index da4ee80c80c7e12076a0b9a7b26af814a94fa53d..3e8006e01a8cb9a204bb1fd89e155d69fff52cfd 100644 (file)
@@ -491,7 +491,7 @@ struct cmd_list_element *setmemorylist;
 
 #define C(name,a,b,c) name () { h8500_set_pointer_size(a); code_size = b; data_size = c; }
 
-C(large_command, 32,4,4);
+C(big_command, 32,4,4);
 C(medium_command, 32, 4,2);
 C(compact_command, 32,2,4);
 C(small_command, 16,2,2);
@@ -526,7 +526,7 @@ h8500_is_trapped_internalvar (name)
     return 0;
 }
 
-value
+value_ptr
 h8500_value_of_trapped_internalvar (var)
      struct internalvar *var;
 {
@@ -577,7 +577,7 @@ void
 h8500_set_trapped_internalvar (var, newval, bitpos, bitsize, offset)
      struct internalvar *var;
      int offset, bitpos, bitsize;
-     value newval;
+     value_ptr newval;
 {
   char *page_regnum, *regnum;
   char expression[100];
@@ -636,8 +636,8 @@ _initialize_h8500_tdep ()
   add_cmd ("small", class_support, small_command,
           "Set small memory model. (16 bit code, 16 bit data)", &setmemorylist);
 
-  add_cmd ("large", class_support, large_command,
-          "Set large memory model. (32 bit code, 32 bit data)", &setmemorylist);
+  add_cmd ("big", class_support, big_command,
+          "Set big memory model. (32 bit code, 32 bit data)", &setmemorylist);
 
   add_cmd ("medium", class_support, medium_command,
           "Set medium memory model. (32 bit code, 16 bit data)", &setmemorylist);
index d8cb674e62ffc7dee7acd8596422d4d355c7e257..840bf3828f45629d3d998e35a30967bc56d5ca82 100644 (file)
@@ -726,7 +726,7 @@ hms_wait (pid, status)
       return 0;
     }
 
-  timeout = -1;                        /* Don't time out -- user program is running.
+  timeout = 5;                 /* Don't time out for a while - user program is running.
                                 */
   immediate_quit = 1;          /* Helps ability to QUIT */
   while (1)
index 24c55f285646c256b45612103704d9ef47e8362e..cbfb27ffc6270d3a2dab2a4f933a3b92489e528a 100644 (file)
@@ -160,12 +160,14 @@ dos_async_rx ()
     }
 
   rv = *aptr (async->getp++);
+
   if (async->getp >= async->buffer_end)
     async->getp = async->buffer_start;
 
   return rv;
 }
 
+
 static int
 dosasync_read (fd, buf, len, timeout)
      int fd;
@@ -186,7 +188,7 @@ dosasync_read (fd, buf, len, timeout)
          while (!dos_async_ready ())
            {
              time (&now);
-             if (now >= then)
+             if (now >= then && timeout > 0)
                return i;
            }
        }
@@ -258,6 +260,7 @@ go32_readchar (scb, timeout)
 {
   char buf;
 
+
   /* Shortcut for polling */
   if (timeout == 0)
     {