From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 109533 invoked by alias); 11 Aug 2016 17:00:54 -0000 Mailing-List: contact gdb-help@sourceware.org; run by ezmlm Precedence: bulk List-Id: List-Subscribe: List-Archive: List-Post: List-Help: , Sender: gdb-owner@sourceware.org Received: (qmail 109523 invoked by uid 89); 11 Aug 2016 17:00:53 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=-1.4 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS autolearn=no version=3.3.2 spammy=marc, Marc X-HELO: mx1.redhat.com Received: from mx1.redhat.com (HELO mx1.redhat.com) (209.132.183.28) by sourceware.org (qpsmtpd/0.93/v0.84-503-g423c35a) with ESMTP; Thu, 11 Aug 2016 17:00:43 +0000 Received: from int-mx13.intmail.prod.int.phx2.redhat.com (int-mx13.intmail.prod.int.phx2.redhat.com [10.5.11.26]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 5884568B0; Thu, 11 Aug 2016 17:00:42 +0000 (UTC) Received: from [127.0.0.1] (ovpn01.gateway.prod.ext.ams2.redhat.com [10.39.146.11]) by int-mx13.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u7BH0dnE032522; Thu, 11 Aug 2016 13:00:39 -0400 Subject: Re: Is there a way to unset inferior-tty? To: Simon Marchi References: <302246af-a394-4a76-5223-5cac924bda9a@redhat.com> <9560791fd070c79f7ab54e5e7b63d433@simark.ca> Cc: Marc Khouzam , gdb@sourceware.org From: Pedro Alves Message-ID: Date: Thu, 11 Aug 2016 17:00:00 -0000 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:45.0) Gecko/20100101 Thunderbird/45.1.1 MIME-Version: 1.0 In-Reply-To: <9560791fd070c79f7ab54e5e7b63d433@simark.ca> Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 7bit X-SW-Source: 2016-08/txt/msg00020.txt.bz2 On 07/02/2016 02:29 AM, Simon Marchi wrote: > On 2016-07-01 14:51, Pedro Alves wrote: >> I think this should just be fixed to work. >> >> The fix should be very similar to this: >> >> >> https://sourceware.org/git/gitweb.cgi?p=binutils-gdb.git;h=811a659a779fdf93293fe1105d99e9db171a8b68 >> >> >> Thanks, >> Pedro Alves > > Hi Marc, > > Here's a patch. If you like it I'll submit it to gdb-patches with > ChangeLog and all. I like it. It's more idiomatic to write *str != '\0' than check strlen > 0 though. Thanks, Pedro Alves