From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id dOpCDe269WbESDgAWB0awg (envelope-from ) for ; Thu, 26 Sep 2024 15:50:05 -0400 Authentication-Results: simark.ca; dkim=pass (1024-bit key; unprotected) header.d=redhat.com header.i=@redhat.com header.a=rsa-sha256 header.s=mimecast20190719 header.b=CPmoqzgZ; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 1A0741E353; Thu, 26 Sep 2024 15:50:05 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.0 (2022-12-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-10.1 required=5.0 tests=ARC_SIGNED,ARC_VALID, BAYES_00,DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU, MAILING_LIST_MULTI,RCVD_IN_DNSWL_MED,RCVD_IN_VALIDITY_CERTIFIED, RCVD_IN_VALIDITY_RPBL,RCVD_IN_VALIDITY_SAFE autolearn=ham autolearn_force=no version=4.0.0 Received: from server2.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 ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 57D5C1E05C for ; Thu, 26 Sep 2024 15:50:04 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id DCF743858CD1 for ; Thu, 26 Sep 2024 19:50:03 +0000 (GMT) Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.129.124]) by sourceware.org (Postfix) with ESMTP id 0B4943858D29 for ; Thu, 26 Sep 2024 19:49:45 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 0B4943858D29 Authentication-Results: sourceware.org; dmarc=pass (p=none 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 0B4943858D29 Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=170.10.129.124 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727380186; cv=none; b=Udltl7q85Hf0NmGooRQ4VOHbtH8n72Lbdt47w9DGgPq10lDTQZr6w/UL952auqsYncimKNo0h2gAcR9kPvtDAv4/5Mu5KAQZqrPnLQeshYeM+aRwmUtcJAA573k94Vk/XmNG8kuNRNFIZVup1BS1WVQHMVaSeqZGTY6pmjXpTTI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1727380186; c=relaxed/simple; bh=MDJj/a2MerBk4eexcQ4OYl4IjDupq+Rxp1rnkjAYYL4=; h=DKIM-Signature:Message-ID:Date:MIME-Version:Subject:To:From; b=kA8z6O/4BlKY2QwQ5RZj02c/ZbOLw0hDl/CzIFDeJHycNp2KmYrV1g8iNgbZj19Izec31W5K8bS6VaYJeD5RU6boFDLTImaK9X/lsJfP6WySvdmFcYc//LhtHRfQV3yHv/vbg1ceeHPJS6rjp6MM8Z9rwNnQFS0LNMiddtZ84hE= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1727380184; 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: in-reply-to:in-reply-to:references:references; bh=uE3oLjLfUb2Dr8a1uDiNTegq+aZdRrZcrSUJW13rfY0=; b=CPmoqzgZVU8+ZBRgItyMLfWWoqaqowOZhys4Cy6HEb4Jnt8ueoyHVepz2+Vk0oxux7+Vgx 870MLdcf8svMG1LLhaf+xWfZk/Llh2EvlnE466bbV49OKkZNnAFxJldOC0a+PkujQJ2krO kkD35ezAbLYbGryNXg0Pmg36SxK2nKA= Received: from mail-pj1-f69.google.com (mail-pj1-f69.google.com [209.85.216.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-125-vRkKbSBLNxmIo_rpZ20sqw-1; Thu, 26 Sep 2024 15:49:43 -0400 X-MC-Unique: vRkKbSBLNxmIo_rpZ20sqw-1 Received: by mail-pj1-f69.google.com with SMTP id 98e67ed59e1d1-2e08526d9beso1758906a91.3 for ; Thu, 26 Sep 2024 12:49:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1727380182; x=1727984982; h=content-transfer-encoding:in-reply-to:from:content-language :references:cc:to:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=uE3oLjLfUb2Dr8a1uDiNTegq+aZdRrZcrSUJW13rfY0=; b=coNZB5WKA/2vuh+oEv5fpmMWRJy2Wtyqbk0XnUFdLgy7S5uS3T8mYv5ocG72ecp50F 4mGH77s5o632jBBSFMmbAZmiT3rkmoOHdhKlpHqXQw+LGo7QqzkHKkcLQQC0eU1ZCLES B8OqIWzZ71dLBEw+O0HtwSUJibhSeYjMRWiMVEN96tPlxEHdbADMblavdRcCX+eKm6rW 5gLXM1gfhm+xqLBvd/vgKZAOmXAb51sGtb4bTXuE1uSjC0XKD7SUyVlJoxmvQsOJe/If FZccX0wc3CkGjbUrW0wx9Dd3D4cDBAbOtATL2FvEuf+O8vbVUlrlYJn1tc7EA14Id0Gb G3kw== X-Gm-Message-State: AOJu0YxohYHz7TSinsje9XQQLmtwv9WjKcnr75LmSYmUuKYuvbGDhBhO nztMHAMSe3wGFy9PsHTFtlxWgDR2lPRKRPesn0I/ZofipQsLvhuxLdEUM9bMrOrOIphME/42coQ FIOwv1sOHzjYPUc60GnnjVee3KDHDiYb23s7kYav9CXoITZKoIEUiQYiTquvxQRo0kKE= X-Received: by 2002:a17:90a:ea8c:b0:2d8:8c95:ebb6 with SMTP id 98e67ed59e1d1-2e0b8b1f8d8mr1003549a91.19.1727380182232; Thu, 26 Sep 2024 12:49:42 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEIBDW6qx8IfotvHcLw4w+DSM81wJYjjKYPhTh6S5Yvl33UClvKoXx+Jx1jKCqR9CobMCG/uQ== X-Received: by 2002:a17:90a:ea8c:b0:2d8:8c95:ebb6 with SMTP id 98e67ed59e1d1-2e0b8b1f8d8mr1003529a91.19.1727380181833; Thu, 26 Sep 2024 12:49:41 -0700 (PDT) Received: from ?IPV6:2804:14d:8084:92c5::1000? ([2804:14d:8084:92c5::1000]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-2e06e2f952asm3931524a91.49.2024.09.26.12.49.40 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 26 Sep 2024 12:49:41 -0700 (PDT) Message-ID: Date: Thu, 26 Sep 2024 16:49:39 -0300 MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] gdb, configure: Add disable-formats option for configure To: Tom Tromey Cc: gdb-patches@sourceware.org References: <20240925175340.1850969-1-guinevere@redhat.com> <87ldzei5p9.fsf@tromey.com> From: Guinevere Larsen In-Reply-To: <87ldzei5p9.fsf@tromey.com> X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Language: en-US Content-Type: text/plain; charset=UTF-8; format=flowed Content-Transfer-Encoding: 7bit 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~public-inbox=simark.ca@sourceware.org On 9/26/24 4:18 PM, Tom Tromey wrote: >>>>>> Guinevere Larsen writes: >> Ideally we'd like to be able to disable even those formats, in case a >> user wants to build GDB only to examine remote files for example, but >> the current infrastructure for the file format readers doesn't allow >> us to do it. > The goal seems totally fine to me. > >> +enable-formats=[FORMAT,]... > I think this option name is too generic. Eli suggested objfile-format and binary-file-format. I was planning on using the former, unless you still think is too generic, or have a better suggestion :) > >> +# If all targets were requested, this is all formats that should accompany >> +# them. >> +all_target_formats="elf xcoff mips coff" > I think it would be nicer if the full list only had to be written in one > spot. Right now it seems like it's both here and in the makefile? viz: > > +# All files that relate to GDB's ability to read debug information. > +# Used with --enable-formats=all. > +ALL_FORMAT_OBS = \ I guess the real problem is a confusing name (and overlap). All_target_formats is all the formats that have to be compiled in if the user requested --enable-targets=all. This list doesn't have Mach-O and dbx. I'll try to think of a better naming scheme so that this doesn't feel like duplicated information. > > I'd written some more stuff here about maybe just following BFD's lead. > But looking at my "minimal" build tree, I see a native Linux gdb seems > to have COFF and other junk in BFD, so following BFD doesn't seem really > possible. > > Tom > -- Cheers, Guinevere Larsen She/Her/Hers