| Message ID | 20250325124249.4023627-1-guinevere@redhat.com |
|---|---|
| Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org> 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 7AD6D3857838 for <patchwork@sourceware.org>; Tue, 25 Mar 2025 12:44:28 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 7AD6D3857838 Authentication-Results: sourceware.org; dkim=pass (1024-bit key, unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=Q6c9Npv2 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.133.124]) by sourceware.org (Postfix) with ESMTP id EB5F73857BBA for <gdb-patches@sourceware.org>; Tue, 25 Mar 2025 12:42:59 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org EB5F73857BBA Authentication-Results: sourceware.org; dmarc=pass (p=quarantine dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org EB5F73857BBA Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.133.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742906580; cv=none; b=b5/f5BFQ9HC8ZKP/QNzj2PBNxvgxOh6Bl8zRGi8hPCrknWObCv5eMZeygC3qVXwbjJH+lxdhMI+SHiflUYJ2S4IAjB/HFMKFREa1yuq6xwc4slWpje9O1KZPjpD4no100SzhjNm6uts2LyxMqDf05Ppw6FQKYhmBiHuaKLWZNQ4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1742906580; c=relaxed/simple; bh=t4c3bD9j4IppH79/exFcCfNKOT9SUBKL6naFU9zCki0=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=AZIQ65nVMCbXdTARgLSVC7oVTUFxm7EMwmCAUGjsmsnHEH1o2tC4JnCJ0oJRcgrMjNRWU5/EIxyWiHaEhJf/xixFRWAzde+nwj+BA8v9XyVvPn22Zx+iGDiuwJCxwofK56yXD/oh3lp8tvt/SpwMHBFHF6+eteOfzAp/khaXXVw= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org EB5F73857BBA DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1742906579; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=RZg3elo3fnhvnU/4+Iq87xkuONfDGW09F9bS68g3utU=; b=Q6c9Npv2tDiVpdWwclv58z575HnVxQkW/6tTtRpYF0Tkj3yA5Eiq4W5Xz5f1NxxVOzbksV JL6VX/DpuZ+6fn/vGm4wNBLSogbbDrZU1P5hUTyjAHpdNfnY2Gqzzq5qBL8PJVgA5TpgtF RcAkF3BhH96Bguhi4q50xOb/l72sSc8= Received: from mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (ec2-54-186-198-63.us-west-2.compute.amazonaws.com [54.186.198.63]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-644-g56yU1JMMT6dMvbd_5GrWg-1; Tue, 25 Mar 2025 08:42:57 -0400 X-MC-Unique: g56yU1JMMT6dMvbd_5GrWg-1 X-Mimecast-MFC-AGG-ID: g56yU1JMMT6dMvbd_5GrWg_1742906576 Received: from mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com [10.30.177.93]) (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 mx-prod-mc-01.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 820FA196D2D0 for <gdb-patches@sourceware.org>; Tue, 25 Mar 2025 12:42:56 +0000 (UTC) Received: from fedora.redhat.com (unknown [10.96.134.117]) by mx-prod-int-06.mail-002.prod.us-west-2.aws.redhat.com (Postfix) with ESMTPS id 07B7A180B48C; Tue, 25 Mar 2025 12:42:54 +0000 (UTC) From: Guinevere Larsen <guinevere@redhat.com> To: gdb-patches@sourceware.org Cc: Guinevere Larsen <guinevere@redhat.com> Subject: [PATCH v3 0/2] Adding ability to disable GDB compile Date: Tue, 25 Mar 2025 09:42:47 -0300 Message-ID: <20250325124249.4023627-1-guinevere@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.4.1 on 10.30.177.93 X-Mimecast-Spam-Score: 0 X-Mimecast-MFC-PROC-ID: YjonsE6zTcwagy1v7pxkiaZw6oB_Saglk7kZ2YJqUoY_1742906576 X-Mimecast-Originator: redhat.com Content-Transfer-Encoding: 8bit content-type: text/plain; charset="US-ASCII"; x-default=true X-Spam-Status: No, score=-5.6 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.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
Adding ability to disable GDB compile
|
|
Message
Guinevere Larsen
March 25, 2025, 12:42 p.m. UTC
This patch series is yet another one allowing a user to select components at configure time, this one about the compile subsystem. The reason I'm wanting to disable configure is that if the patch for disabling debuginfo formats were to patch, there is no way to support compile. Compile calls about as many functions from the dwarf2 subsystem as the rest of GDB, and it is the only way to handle those compiled snippets at present, so if no dwarf reading capabilities are present, compile can't function. This whole series can be seen as preparatory work for my next version of this patch series[1]. The first patch is itself preparatory for the second one, where the actual change happens. [1] https://inbox.sourceware.org/gdb-patches/20241217174122.482708-1-guinevere@redhat.com/ Eli has already approved the documentation for the series, and the first patch is already approved by tromey, I just need an approval for the second patch. Changelog for v3: * Fixed handling of cli-scripts that contain compile directives * Fixes a few failures in some gdb.base tests Guinevere Larsen (2): gdb: Remove compile-related attributes from struct language gdb: add configure option to disable compile gdb/Makefile.in | 3 +- gdb/NEWS | 4 + gdb/README | 3 + gdb/c-lang.c | 32 -------- gdb/c-lang.h | 38 --------- gdb/cli/cli-script.c | 4 + gdb/compile/compile-internal.h | 39 +++++++++ gdb/compile/compile.c | 81 ++++++++++++++++--- gdb/config.in | 3 + gdb/configure | 39 ++++++++- gdb/configure.ac | 20 +++++ gdb/dwarf2/loc.c | 12 +++ gdb/language.c | 8 -- gdb/language.h | 32 -------- .../gdb.base/filename-completion.exp | 14 ++-- .../gdb.compile/compile-cplus-anonymous.exp | 2 + .../gdb.compile/compile-cplus-array-decay.exp | 2 + .../gdb.compile/compile-cplus-inherit.exp | 2 + .../gdb.compile/compile-cplus-member.exp | 2 + .../gdb.compile/compile-cplus-method.exp | 2 + .../gdb.compile/compile-cplus-namespace.exp | 2 + .../gdb.compile/compile-cplus-nested.exp | 2 + .../gdb.compile/compile-cplus-print.exp | 2 + .../gdb.compile/compile-cplus-virtual.exp | 2 + gdb/testsuite/gdb.compile/compile-cplus.exp | 2 + gdb/testsuite/gdb.compile/compile-ifunc.exp | 2 + gdb/testsuite/gdb.compile/compile-ops.exp | 2 + gdb/testsuite/gdb.compile/compile-print.exp | 2 + gdb/testsuite/gdb.compile/compile-setjmp.exp | 2 + gdb/testsuite/gdb.compile/compile-tls.exp | 2 + gdb/testsuite/gdb.compile/compile.exp | 2 + gdb/testsuite/lib/compile-support.exp | 3 + gdb/testsuite/lib/gdb.exp | 6 ++ 33 files changed, 244 insertions(+), 129 deletions(-) base-commit: ea10be6e89a4569d03d61e5cf7418dc9a4015a24