From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (qmail 106637 invoked by alias); 4 Oct 2017 06:09:18 -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 106314 invoked by uid 89); 4 Oct 2017 06:09:18 -0000 Authentication-Results: sourceware.org; auth=none X-Virus-Found: No X-Spam-SWARE-Status: No, score=0.4 required=5.0 tests=BAYES_00,KAM_LAZY_DOMAIN_SECURITY,RP_MATCHES_RCVD,SPF_HELO_PASS,TRACKER_ID autolearn=no version=3.3.2 spammy=Hx-languages-length:1048 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; Wed, 04 Oct 2017 06:09:17 +0000 Received: from smtp.corp.redhat.com (int-mx04.intmail.prod.int.phx2.redhat.com [10.5.11.14]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id CCCB87E459; Wed, 4 Oct 2017 06:09:15 +0000 (UTC) DMARC-Filter: OpenDMARC Filter v1.3.2 mx1.redhat.com CCCB87E459 Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; dmarc=none (p=none dis=none) header.from=redhat.com Authentication-Results: ext-mx03.extmail.prod.ext.phx2.redhat.com; spf=fail smtp.mailfrom=sergiodj@redhat.com Received: from localhost (unused-10-15-17-193.yyz.redhat.com [10.15.17.193]) by smtp.corp.redhat.com (Postfix) with ESMTPS id A58B65D964; Wed, 4 Oct 2017 06:09:15 +0000 (UTC) From: Sergio Durigan Junior To: Pedro Alves Cc: GDB Patches , Eli Zaretskii Subject: Re: [PATCH v5 1/3] Introduce gdb_tilde_expand References: <20170912042325.14927-1-sergiodj@redhat.com> <20170929225852.21872-1-sergiodj@redhat.com> <20170929225852.21872-2-sergiodj@redhat.com> Date: Wed, 04 Oct 2017 06:09:00 -0000 In-Reply-To: (Pedro Alves's message of "Tue, 3 Oct 2017 16:14:55 +0100") Message-ID: <87shezwik4.fsf@redhat.com> User-Agent: Gnus/5.13 (Gnus v5.13) Emacs/25.2 (gnu/linux) MIME-Version: 1.0 Content-Type: text/plain X-IsSubscribed: yes X-SW-Source: 2017-10/txt/msg00072.txt.bz2 On Tuesday, October 03 2017, Pedro Alves wrote: > On 09/29/2017 11:58 PM, Sergio Durigan Junior wrote: >> Currently, whenever we want to handle paths provided by the user and >> perform tilde expansion on GDB, we rely on "tilde_expand", which comes >> from readline. This was enough for our use cases so far, but the >> situation will change when we start dealing with paths on gdbserver as >> well, which is what the next patches implement. >> >> Unfortunately it is not possible to use "tilde_expand" in this case >> because gdbserver doesn't use readline. For that reason I decided to >> implement a new "gdb_tilde_expand" function, which is basically a >> wrapper for "glob" and its GNU extension, GLOB_TILDE_CHECK. With the >> import of the "glob" module from gnulib, this is a no-brainer. >> > > OK. Thanks, pushed. 7da0a8867419fc4a2a64d49cc71a14bd145cebff -- Sergio GPG key ID: 237A 54B1 0287 28BF 00EF 31F4 D0EB 7628 65FC 5E36 Please send encrypted e-mail if possible http://sergiodj.net/