* debugger/mcs51/break.[ch], debugger/mcs51/cmd.c,
[fw/sdcc] / debugger / mcs51 / simi.c
index 09f63ca3c9ad96c779b8ae3ae676147887078044..3124250535067c0655f985dc4b5d8661c3bc5229 100644 (file)
@@ -315,7 +315,7 @@ void openSimulator (char **args, int nargs)
     fh = _open_osfhandle((intptr_t)sock, _O_TEXT);
     if (-1 == fh)
     {
-       perror("cannot _open_osfhandle");
+        perror("cannot _open_osfhandle");
         exit(1);
     }
 
@@ -329,7 +329,7 @@ void openSimulator (char **args, int nargs)
     fh = _open_osfhandle((intptr_t)sock, _O_TEXT);
     if (-1 == fh)
     {
-       perror("cannot _open_osfhandle");
+        perror("cannot _open_osfhandle");
         exit(1);
     }
 
@@ -589,7 +589,7 @@ unsigned long simGetValue (unsigned int addr,char mem, int size)
            case of bit variables which case it becomes
            [address] [assembler bit address] [v] */
         /* first skip thru white space */
-        while (isspace(*resp)) resp++ ;
+        resp = trim_left(resp);
 
         if (strncmp(resp, "0x",2) == 0)
             resp += 2;
@@ -611,7 +611,7 @@ unsigned long simGetValue (unsigned int addr,char mem, int size)
         for (i = 0 ; i < size ; i++ )
         {
             /* skip white space */
-            while (isspace(*resp)) resp++ ;
+            resp = trim_left(resp);
 
             b[i] = strtol(resp,&resp,16);
         }