aboutsummaryrefslogtreecommitdiff
path: root/gdb/mi
diff options
context:
space:
mode:
authorMichael Snyder <msnyder@vmware.com>2007-08-14 19:51:37 +0000
committerMichael Snyder <msnyder@vmware.com>2007-08-14 19:51:37 +0000
commit068acb6c0026faface3d547755a2a3c543807d9f (patch)
tree130d7a0318277d8708757437f1573e0602abd76b /gdb/mi
parenta3fadc9a17972a899c807f1ed3c8044066a68857 (diff)
downloadgdb-068acb6c0026faface3d547755a2a3c543807d9f.zip
gdb-068acb6c0026faface3d547755a2a3c543807d9f.tar.gz
gdb-068acb6c0026faface3d547755a2a3c543807d9f.tar.bz2
2007-08-14 Michael Snyder <msnyder@access-company.com>
* mi/mi-interp.c (mi_cmd_interpreter_exec): Dead code, dead variable.
Diffstat (limited to 'gdb/mi')
-rw-r--r--gdb/mi/mi-interp.c13
1 files changed, 0 insertions, 13 deletions
diff --git a/gdb/mi/mi-interp.c b/gdb/mi/mi-interp.c
index a8ffa0f..baabe38 100644
--- a/gdb/mi/mi-interp.c
+++ b/gdb/mi/mi-interp.c
@@ -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;
}