From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 20130 invoked by alias); 8 Aug 2007 22:25:37 -0000 Received: (qmail 19967 invoked by uid 22791); 8 Aug 2007 22:25:36 -0000 X-Spam-Check-By: sourceware.org Received: from a.mail.sonic.net (HELO a.mail.sonic.net) (64.142.16.245) by sourceware.org (qpsmtpd/0.31) with ESMTP; Wed, 08 Aug 2007 22:25:35 +0000 Received: from webmail.sonic.net (b.webmail.sonic.net [64.142.100.148]) by a.mail.sonic.net (8.13.8.Beta0-Sonic/8.13.7) with ESMTP id l78MPXWU015151 for ; Wed, 8 Aug 2007 15:25:33 -0700 Received: from 12.7.175.2 (SquirrelMail authenticated user msnyder) by webmail.sonic.net with HTTP; Wed, 8 Aug 2007 15:25:33 -0700 (PDT) Message-ID: <17268.12.7.175.2.1186611933.squirrel@webmail.sonic.net> Date: Wed, 08 Aug 2007 22:25:00 -0000 Subject: [PATCH] dead code in mi-interp From: msnyder@sonic.net To: gdb-patches@sourceware.org User-Agent: SquirrelMail/1.4.9a MIME-Version: 1.0 Content-Type: multipart/mixed;boundary="----=_20070808152533_22202" Mailing-List: contact gdb-patches-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-patches-owner@sourceware.org X-SW-Source: 2007-08/txt/msg00168.txt.bz2 ------=_20070808152533_22202 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 8bit Content-length: 72 Must have been meant for something, but seems to have no side effects. ------=_20070808152533_22202 Content-Type: text/plain; name="287.txt" Content-Transfer-Encoding: 8bit Content-Disposition: attachment; filename="287.txt" Content-length: 1401 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 ---- ------=_20070808152533_22202--