2007-08-08 Michael Snyder * mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable. Index: mi/mi-interp.c =================================================================== RCS file: /cvs/src/src/gdb/mi/mi-interp.c,v retrieving revision 1.20 diff -p -r1.20 mi-interp.c *** mi/mi-interp.c 28 Apr 2007 21:52:38 -0000 1.20 --- mi/mi-interp.c 8 Aug 2007 22:23:16 -0000 *************** mi_cmd_interpreter_exec (char *command, *** 218,235 **** 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 - --- 218,223 ---- *************** mi_cmd_interpreter_exec (char *command, *** 245,251 **** break; } } - xfree (buff); do_exec_error_cleanups (ALL_CLEANUPS); sync_execution = 0; } --- 233,238 ----