From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-ej1-x636.google.com (mail-ej1-x636.google.com [IPv6:2a00:1450:4864:20::636]) by sourceware.org (Postfix) with ESMTPS id 673223857438 for ; Thu, 22 Jun 2023 22:53:12 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 673223857438 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=linaro.org Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=linaro.org Received: by mail-ej1-x636.google.com with SMTP id a640c23a62f3a-98802908fedso783764566b.1 for ; Thu, 22 Jun 2023 15:53:12 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=linaro.org; s=google; t=1687474391; x=1690066391; h=mime-version:message-id:date:in-reply-to:subject:to:from:user-agent :references:from:to:cc:subject:date:message-id:reply-to; bh=qVMVIAwEIbNzS9q+s8K9KDVyki3als+P++4d1PauksA=; b=cCuC5SuK+RcyBtr5eFuyYlnmyqrgyTbF8rODNDP2JeN1Oy9SHo28gQDk1I0qBnBoxV Ats4q88hNLicvDlEcHVr59eycSgE19NiElWnh1eQW7g31f+0veyi21XJIpIVe/cR+zP0 Mhzkb0DAeeFDt0Y3ME1eBy5NAfxQ+0fzdtkZa1Nps/A1+SQEHr2gowcnWwiuvduTgnjD tJjTgTlvrfubJ40/jNUUPUlB0jNH7JHARkTgRO3JwA7VCSrTiyTL63OTsv2rMNN1HfwV gkfqW3c8d7atQINh2pi41851EwC8Mk3cLX/yZMeYafCgcoF0AuIjB9vb2GTq5CsOxErp qhOw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1687474391; x=1690066391; h=mime-version:message-id:date:in-reply-to:subject:to:from:user-agent :references:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=qVMVIAwEIbNzS9q+s8K9KDVyki3als+P++4d1PauksA=; b=W4zo9zTcniqMKQt6xhwssBThkcs9I/7ZBBUXISkhgN33Zz9Rv5EoTm8pqpIEoz2YjV Gv+leo1dMmJMSu5ePOeqSwCvqG6scEHLm4cmIw9hc5QEs6QEnO+A6m8GDrQcbwh49Cmq 7KI1b7Q25XpAgB6GxNeg26j63ZMMOdEMqxkP5QWv8CZpwotAuNwc1PSdopjcDJ+7/gZF H4C/0DTjltZgHXDHlpuSGFXrVf6YG7IXBD0mmzE3+AVc9xSUaXDd67ecU5SrmbZrLbie SBWmIisbqrhNrr4LvpEnVZiRGKxovtOtWVyyzIiMqYkgqwJCjFecEoAzLQToACjt5U62 n6hw== X-Gm-Message-State: AC+VfDxFmGgPr3U4i4Kiz0wqajlsyWG6ovhMO2CFe3BOTtWTPz+BJW88 sKFLr21R4ubHmy+rg9CKRLRFbxNHiupQzV8PJOk= X-Google-Smtp-Source: ACHHUZ66acTUllLYHHYsAh4sgrGv4uDFS6ZWamGRob6eVYJEnw7qImnFMcnwTeFnppq95+GTUkICMA== X-Received: by 2002:a17:906:4fc5:b0:982:9b01:a582 with SMTP id i5-20020a1709064fc500b009829b01a582mr17527342ejw.1.1687474391066; Thu, 22 Jun 2023 15:53:11 -0700 (PDT) Received: from localhost ([2a02:908:f60:bc60:3857:f6ca:2fe4:914b]) by smtp.gmail.com with ESMTPSA id w20-20020a1709060a1400b00977eec7b7e8sm5244654ejf.68.2023.06.22.15.53.10 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 22 Jun 2023 15:53:10 -0700 (PDT) References: <20230606233118.146167-1-thiago.bauermann@linaro.org> User-agent: mu4e 1.10.3; emacs 28.2 From: Thiago Jung Bauermann To: gdb-patches@sourceware.org Subject: Re: [PATCH] gdb/configure.ac: Add option --with-additional-debug-dirs In-reply-to: <20230606233118.146167-1-thiago.bauermann@linaro.org> Date: Fri, 23 Jun 2023 00:53:09 +0200 Message-ID: <87jzvvgld6.fsf@linaro.org> MIME-Version: 1.0 Content-Type: text/plain X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,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 List-Id: Thiago Jung Bauermann writes: > If you want to install GDB in a custom prefix, have it look for debug info > in that prefix but also in the distro's default location (typically, > /usr/lib/debug) and run the GDB testsuite before doing "make install", you > have a bit of a problem: > > Configuring GDB with '--prefix=$PREFIX' sets the GDB 'debug-file-directory' > parameter to $PREFIX/lib/debug. Unfortunately this precludes GDB from > looking for distro-installed debug info in /usr/lib/debug. For regular GDB > use you could set debug-file-directory to $PREFIX:/usr/lib/debug in > $PREFIX/etc/gdbinit so that GDB will look in both places, but if you want > to run the testsuite then that doesn't help because in that case GDB runs > with the '-nx' option. > > There's the configure option '--with-separate-debug-dir' to set the default > value for 'debug-file-directory', but it accepts only one directory and not > a list. I considered modifying it to accept a list, but it's not obvious > how to do that because its value is also used by BFD, as well as processed > for "relocatability". > > I thought it was simpler to add a new option to specify a list of > additional directories that will be appended to the debug-file-directory > setting. > --- > gdb/config.in | 3 +++ > gdb/configure | 19 +++++++++++++++++-- > gdb/configure.ac | 6 ++++++ > gdb/main.c | 5 +++++ > gdb/top.c | 6 ++++++ > 5 files changed, 37 insertions(+), 2 deletions(-) Ping. -- Thiago