From patchwork Thu Aug 22 15:47:37 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Rische X-Patchwork-Id: 57378 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 67878383DB82 for ; Thu, 22 Aug 2024 15:48:28 +0000 (GMT) X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from mail-40138.protonmail.ch (mail-40138.protonmail.ch [185.70.40.138]) by sourceware.org (Postfix) with ESMTPS id 03E65383DB82 for ; Thu, 22 Aug 2024 15:47:47 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 03E65383DB82 Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=protonmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=protonmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 03E65383DB82 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=185.70.40.138 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724341678; cv=none; b=qFOFs3XHAzx4vOqcKyoqZlgcWZ5e1NM+rxCjX8W4a195zAB/kiA3K9jKdjx6fakWTf5zYJkDT1YX6UDJeTqfLmz3EngeO8bjg0kaT15K7OIT8LhKV/Nh3cuNNBUmYo3C707aBXSwRcwZusAj7rb37t01lNyycYxvPf4BxUsNTlI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1724341678; c=relaxed/simple; bh=07xOuFVOncnVPkfV2yRdcAg623NZQmPk5/yBpiRiTA0=; h=DKIM-Signature:Date:To:From:Subject:Message-ID:MIME-Version; b=mMIsA+6jZ6Y56jLF4yKskLedLk7/33aTRjn9Oe0NzQsd87Y1EZCHgtqYZNvY08Nyairnlb1MK4jd61442/QpkgKSxQS3OkRCHar4oRuf2mDctwTW0L54tJiDtHesSXx2/QXCLRI7a3YF0sgbTtjI+OLGiZaB3CN9x8kQ5meWln8= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=protonmail.com; s=protonmail3; t=1724341664; x=1724600864; bh=limPZg5upmehwB2MByzfICzIC+PYohEhywElLtD5Tfs=; h=Date:To:From:Cc:Subject:Message-ID:Feedback-ID:From:To:Cc:Date: Subject:Reply-To:Feedback-ID:Message-ID:BIMI-Selector; b=jkd5eoQq+//vyP6iD8z+fyWw77YQwZP32827tqmGOKmrMlq6jIWZcT+K9FV2u4hzk HSN5yfkBMvu4ZGu02qgHX4hEx1AaM3NDKc5cVOU4K8h4sjID+piniDnoP1F82KoxPe BXTNevEw9Dd7L9So/vmkQuSE2CfV1K8SzInwk6jBW8ql9CJ5XZqj4/783xXD85giAe +NYmndPL8NxlMuWMclcF/xU/KyfUcOjypmcTNp5J3uIISYOPz4I29UsxZAxxyTSt9U BeEm5gV4ksCAXvCnm+X+BHc7KDGFU47cCxxS388Qoq1XaPMinLDEHMicVX9og+Qz9C sOSXlDxYTK/yA== Date: Thu, 22 Aug 2024 15:47:37 +0000 To: gdb-patches@sourceware.org From: Antonio Rische Cc: Antonio Rische Subject: [PATCH 0/2] Tab complete convenience variables Message-ID: <20240822154730.1595141-1-nt8r@protonmail.com> Feedback-ID: 21706885:user:proton X-Pm-Message-ID: 31701dd2a836ad8f9e69c0b1b4d117dd877fdddd MIME-Version: 1.0 X-Spam-Status: No, score=-2.1 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, FREEMAIL_FROM, RCVD_IN_MSPIKE_H4, RCVD_IN_MSPIKE_WL, SPF_HELO_PASS, SPF_PASS, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org Implement tab completion for convenience variables. This has been something that annoyed me about gdb for years. Antonio Rische (2): gdb: Do not create variables when parsing expressions gdb: Tab complete internalvars in expressions gdb/ax-gdb.c | 25 +++++++++++++++++++++++ gdb/cli/cli-utils.c | 2 +- gdb/completer.c | 10 ++++++++++ gdb/expop.h | 48 ++++++++++++++++++++++++++++++++++++++++++++- gdb/parse.c | 3 +-- 5 files changed, 84 insertions(+), 4 deletions(-)