]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
2007-08-14 Michael Snyder <msnyder@access-company.com>
authorMichael Snyder <msnyder@vmware.com>
Tue, 14 Aug 2007 19:51:37 +0000 (19:51 +0000)
committerMichael Snyder <msnyder@vmware.com>
Tue, 14 Aug 2007 19:51:37 +0000 (19:51 +0000)
* mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.

gdb/ChangeLog
gdb/mi/mi-interp.c

index 298147ed4f948332ea326dbe7be39ff8e9d139fa..d4f3984297bb23bc5e708c4bb4750151ebf39eb6 100644 (file)
@@ -1,5 +1,7 @@
 2007-08-14  Michael Snyder  <msnyder@access-company.com>
 
+       * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
+
        * ada-lang.c (possible_user_operator_p): Guard against NULL.
 
        * varobj.c (cplus_describe_child): Guard against null.
index a8ffa0fa2d17cca13fc8ddaf16cf87f47bc03079..baabe38309213dd14b17d2515c66736a6a15aada 100644 (file)
@@ -218,18 +218,6 @@ mi_cmd_interpreter_exec (char *command, char **argv, int argc)
 
   for (i = 1; i < argc; i++)
     {
-      char *buff = NULL;
-      /* Do this in a cleaner way...  We want to force execution to be
-         asynchronous for commands that run the target.  */
-      if (target_can_async_p () && (strcmp (argv[0], "console") == 0))
-       {
-         int len = strlen (argv[i]);
-         buff = xmalloc (len + 2);
-         memcpy (buff, argv[i], len);
-         buff[len] = '&';
-         buff[len + 1] = '\0';
-       }
-
       /* We had to set sync_execution = 0 for the mi (well really for Project
          Builder's use of the mi - particularly so interrupting would work.
          But for console commands to work, we need to initialize it to 1 -
@@ -245,7 +233,6 @@ mi_cmd_interpreter_exec (char *command, char **argv, int argc)
            break;
          }
       }
-      xfree (buff);
       do_exec_error_cleanups (ALL_CLEANUPS);
       sync_execution = 0;
     }