From patchwork Tue Apr 4 12:45:26 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Burgess X-Patchwork-Id: 55655 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 98FAE385B51F for ; Tue, 4 Apr 2023 12:46:04 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 98FAE385B51F DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1680612364; bh=9IrVLRK04EZOzRTrgKb4AhN47QaNzvrJe7lVUhH27Sc=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=IWF16GtZBgMSAZ680HjhQAq5kQixeZ4TzFuIbgR3O0jzy4C5U3ifr2a+iguXmWmRl PoknZJW8J7HqIaHPi5q5nHlgSO6xs+3+DgB+51Yz7iLLB+yyMv7doqou/gvGlUrTbz 512cjtZGVkwy496sLBD8obC4j63tbQZwzqCMr7BQ= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTPS id 32A3D3858D1E for ; Tue, 4 Apr 2023 12:45:40 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 32A3D3858D1E Received: from mail-qv1-f72.google.com (mail-qv1-f72.google.com [209.85.219.72]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-301-fbiI4U-ROieocy9z59rhog-1; Tue, 04 Apr 2023 08:45:38 -0400 X-MC-Unique: fbiI4U-ROieocy9z59rhog-1 Received: by mail-qv1-f72.google.com with SMTP id pe26-20020a056214495a00b005df3eac4c0bso11441137qvb.1 for ; Tue, 04 Apr 2023 05:45:38 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; t=1680612338; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=9IrVLRK04EZOzRTrgKb4AhN47QaNzvrJe7lVUhH27Sc=; b=xNAszzOAbFWfPTJx1kEcscasRBpW7TiBX6k83h7XI0hJk+uL6pnD6rxy9zuHNOADKy AUqlEKjbQY/mYAfahu7/9biglPl4H7U9tP5z2WDbkDT5J20qramJRt7obmephV68/nWC 7sfDNIGbqEatCpmPVlP/MXD/wZLPb7X7rIWl2zTEvvoF5nEoa5rdRPimeNdCeXlfQlcP 10K0IKwmVqkaubgFyRJSNYgoK2bTDQ9MK/YASUZRVJ1f3XWxm/QpnCPngMfuBHsx372n A1v/Q9G1xtBxMK8pXZKMXC5ED6IJU/zZiyTS9dziEVn/76vOpcn3fkEJ41Ltmmmkp1f7 MRAg== X-Gm-Message-State: AAQBX9e2XeliW0jYmMAL9VMwN1fJcUSt/INojVUMtMu2CcxuEgJKn4eg 0HtBdblyLKpt74ZhlSMSev+6Q15pfdC5hIqHwAaMOO7lVJlqNU5axFGnOmIT1F2eLhkAtlC3aBu QLukLdnz++JnJ4wWu6IBQR8S5+MW0b8Ado4WRyJU/FmONAtMbn7qeahICStS0CLBdkCacXd6OVk /xYpNxlg== X-Received: by 2002:a05:622a:181a:b0:3b8:6d3a:5ec7 with SMTP id t26-20020a05622a181a00b003b86d3a5ec7mr3195601qtc.22.1680612338035; Tue, 04 Apr 2023 05:45:38 -0700 (PDT) X-Google-Smtp-Source: AKy350YWWLwSWx+tbPkIfUKJJ2KhUhgECygQHVNzhn9bn1qEjI8ruDUAezZvR9vZjYK/475vNikKpg== X-Received: by 2002:a05:622a:181a:b0:3b8:6d3a:5ec7 with SMTP id t26-20020a05622a181a00b003b86d3a5ec7mr3195574qtc.22.1680612337749; Tue, 04 Apr 2023 05:45:37 -0700 (PDT) Received: from localhost (95.72.115.87.dyn.plus.net. [87.115.72.95]) by smtp.gmail.com with ESMTPSA id c6-20020ac86606000000b003e4f07d58b3sm3208712qtp.19.2023.04.04.05.45.37 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Tue, 04 Apr 2023 05:45:37 -0700 (PDT) To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 0/5] Fixes for per-inferior settings and $_gdb_setting_str() Date: Tue, 4 Apr 2023 13:45:26 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com X-Spam-Status: No, score=-5.7 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H2, SPF_HELO_NONE, SPF_NONE, TXREP 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.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Patchwork-Original-From: Andrew Burgess via Gdb-patches From: Andrew Burgess Reply-To: Andrew Burgess Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" While working on another patch I spotted that $_gdb_setting_str("args") wasn't working correctly. Turns out args, cwd, and inferior-tty all have the same problems. This series resolves these issues. Thanks, Andrew Reviewed-By: Tom Tromey --- Andrew Burgess (5): gdb: cleanup command creation in infcmd.c gdb: make set/show args work with $_gdb_setting_str gdb: make set/show cwd work with $_gdb_setting_str gdb: make set/show inferior-tty work with $_gdb_setting_str gdb: make deprecated_show_value_hack static gdb/cli/cli-setshow.c | 2 +- gdb/command.h | 7 +- gdb/infcmd.c | 127 ++++++++++------------ gdb/testsuite/gdb.base/inferior-clone.exp | 9 ++ gdb/testsuite/gdb.multi/gdb-settings.c | 22 ++++ gdb/testsuite/gdb.multi/gdb-settings.exp | 121 +++++++++++++++++++++ 6 files changed, 213 insertions(+), 75 deletions(-) create mode 100644 gdb/testsuite/gdb.multi/gdb-settings.c create mode 100644 gdb/testsuite/gdb.multi/gdb-settings.exp base-commit: 60a13bbcdfb0ce008a77563cea0c34c830d7b170