From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id UpYgDB//jl9NcAAAWB0awg (envelope-from ) for ; Tue, 20 Oct 2020 11:15:43 -0400 Received: by simark.ca (Postfix, from userid 112) id 2990D1EFC1; Tue, 20 Oct 2020 11:15:43 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-1.0 required=5.0 tests=MAILING_LIST_MULTI autolearn=ham autolearn_force=no version=3.4.2 Received: from sourceware.org (server2.sourceware.org [8.43.85.97]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 5F6051E58E for ; Tue, 20 Oct 2020 11:15:42 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id F2A2F39450FE; Tue, 20 Oct 2020 15:15:41 +0000 (GMT) Received: from mail-wm1-f51.google.com (mail-wm1-f51.google.com [209.85.128.51]) by sourceware.org (Postfix) with ESMTPS id 9B7D73851C25 for ; Tue, 20 Oct 2020 15:15:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 9B7D73851C25 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=alves.ped@gmail.com Received: by mail-wm1-f51.google.com with SMTP id d3so2333478wma.4 for ; Tue, 20 Oct 2020 08:15:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:subject:to:references:cc:from:message-id:date :user-agent:mime-version:in-reply-to:content-language :content-transfer-encoding; bh=JgkpRoROtiI6O2d9mBLa/0B5A628+6Thb6mLLX5TLB8=; b=jOh11iwrIOUMTQnPOnlSZdxk7SoHmeS5pfpo4JG/2ii1k3piKhT5XSZyrzGSEGbTKC 0wXm5SCMIg6x8Z68jtCi4gY64+aVxek+cuSu8eizNCzg5DKm3A4oYcw1fIfG0CPT3Ms2 BQ4CLBiINl6wEkogbQNUndxrN01sQcPBAHgxye23HeXy8IPqaUKXakTqUH8+r8kSBbC+ gJctJNj2K+wq79Q2DcSg67FWuUlKGAc+jm+PoFxw7svhevOfThesTM+I0Fz5QmUQOoSY mAePLvs9Bu9zSajbXaW6N5Z+tabvo6vihZ9fpGrGeUjscbS6MThz/zD98mQICWAQRfCi ILWg== X-Gm-Message-State: AOAM533NN9SKek8r3hFULZLN1ztOTAaKTKwuQRhBG53UgyoRB5SMLeGD qhWoNEaVFducrP0IuN6lWsAPVI17fcStxQ== X-Google-Smtp-Source: ABdhPJzjUmP7q5EMXX8KPsn8cwLsxAAXsygKzwIqlpr5TCjzaEOSNR+3Ur4HuKVnI5LqsQmMCkZHwA== X-Received: by 2002:a1c:4604:: with SMTP id t4mr3586655wma.95.1603206934739; Tue, 20 Oct 2020 08:15:34 -0700 (PDT) Received: from ?IPv6:2001:8a0:f91e:6d00:c80a:ea25:47ef:5f73? ([2001:8a0:f91e:6d00:c80a:ea25:47ef:5f73]) by smtp.gmail.com with ESMTPSA id y185sm3158250wmb.29.2020.10.20.08.15.32 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Tue, 20 Oct 2020 08:15:33 -0700 (PDT) Subject: Re: Add a way to invoke redefined (overridden) GDB commands To: Philippe Waroquiers , Marco Barisione References: <20200914093925.5442-1-mbarisione@undo.io> <371BE292-EE03-4FBE-A963-64F08437A6A7@undo.io> <553d9751c944c660dad4a204cf4609c660baa106.camel@skynet.be> From: Pedro Alves Message-ID: <14991975-c08a-fde6-f00d-e60723d96cc8@palves.net> Date: Tue, 20 Oct 2020 16:15:32 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:60.0) Gecko/20100101 Thunderbird/60.2.1 MIME-Version: 1.0 In-Reply-To: <553d9751c944c660dad4a204cf4609c660baa106.camel@skynet.be> Content-Type: text/plain; charset=utf-8 Content-Language: en-US Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: gdb-patches@sourceware.org Errors-To: gdb-patches-bounces@sourceware.org Sender: "Gdb-patches" On 10/19/20 7:47 PM, Philippe Waroquiers wrote: > On Mon, 2020-10-19 at 19:05 +0100, Pedro Alves wrote: > For what concerns the rename, alias uses = to separate > the 2 commands: > (gdb) h alias > Define a new command that is an alias of an existing command. > Usage: alias [-a] [--] ALIAS = COMMAND [DEFAULT-ARGS...] > ... > So, maybe better/more consistent to use = similarly for rename. In the "alias" case, the "=" makes sense since we're setting up an equivalence. With renaming, isn't "=" a little weird? (gdb) rename oldname = newname I guess I'd get used to it.