From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 29617 invoked by alias); 7 May 2013 07:26:25 -0000 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 Received: (qmail 29608 invoked by uid 89); 7 May 2013 07:26:24 -0000 X-Spam-SWARE-Status: No, score=-4.3 required=5.0 tests=AWL,BAYES_00,KHOP_RCVD_UNTRUST,KHOP_THREADED,RCVD_IN_HOSTKARMA_W,RCVD_IN_HOSTKARMA_WL autolearn=ham version=3.3.1 Received: from relay1.mentorg.com (HELO relay1.mentorg.com) (192.94.38.131) by sourceware.org (qpsmtpd/0.84/v0.84-167-ge50287c) with ESMTP; Tue, 07 May 2013 07:26:24 +0000 Received: from svr-orw-fem-01.mgc.mentorg.com ([147.34.98.93]) by relay1.mentorg.com with esmtp id 1UZcI2-0005LB-Pt from Muhammad_Bilal@mentor.com ; Tue, 07 May 2013 00:26:22 -0700 Received: from SVR-IES-FEM-01.mgc.mentorg.com ([137.202.0.104]) by svr-orw-fem-01.mgc.mentorg.com over TLS secured channel with Microsoft SMTPSVC(6.0.3790.4675); Tue, 7 May 2013 00:26:22 -0700 Received: from [137.202.157.37] (137.202.0.76) by SVR-IES-FEM-01.mgc.mentorg.com (137.202.0.104) with Microsoft SMTP Server (TLS) id 14.2.247.3; Tue, 7 May 2013 08:26:19 +0100 Message-ID: <5188AC99.6060504@codesourcery.com> Date: Tue, 07 May 2013 07:26:00 -0000 From: mbilal User-Agent: Mozilla/5.0 (X11; Linux i686; rv:17.0) Gecko/17.0 Thunderbird/17.0 MIME-Version: 1.0 To: , , Subject: Re: [PATCH 2/7] PR gdb/15224 fix for Unify interactivity tests to use input_from_terminal_p References: <51877A32.1030503@codesourcery.com> <51877A99.4060503@codesourcery.com> <5188AA15.5010904@codesourcery.com> <5188AC27.1050407@codesourcery.com> In-Reply-To: <5188AC27.1050407@codesourcery.com> Content-Type: text/plain; charset="ISO-8859-1"; format=flowed Content-Transfer-Encoding: 7bit X-SW-Source: 2013-05/txt/msg00177.txt.bz2 Here is a updated patch for fix for Unify interactivity tests to use input_from_terminal_p: On Monday, May 06, 2013 4:26 PM Pedro Alves wrote: >Please do this in the command's set handler rather than >hacking in the the set/show machinery. Thanks Pedro for correct guide line Index: event-top.c =================================================================== RCS file: /cvs/src/src/gdb/event-top.c,v retrieving revision 1.94 diff -u -p -r1.94 event-top.c --- event-top.c 21 Mar 2013 17:37:29 -0000 1.94 +++ event-top.c 7 May 2013 07:03:33 -0000 @@ -604,7 +604,8 @@ command_line_handler (char *rl) /* Add line to history if appropriate. */ if (instream == stdin - && ISATTY (stdin) && *linebuffer) + && ISATTY (stdin) && *linebuffer + && input_from_terminal_p()) add_history (linebuffer); /* Note: lines consisting solely of comments are added to the command And please help me to review other patchesas well. Thanks, -Bilal