From patchwork Mon Nov 4 22:32:15 2024 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Patchwork-Submitter: "H.J. Lu" X-Patchwork-Id: 2006564 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@legolas.ozlabs.org Authentication-Results: legolas.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.a=rsa-sha256 header.s=20230601 header.b=hFHlDd6b; dkim-atps=neutral Authentication-Results: legolas.ozlabs.org; spf=pass (sender SPF authorized) smtp.mailfrom=gcc.gnu.org (client-ip=8.43.85.97; helo=server2.sourceware.org; envelope-from=gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org; receiver=patchwork.ozlabs.org) 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 (secp384r1) server-digest SHA384) (No client certificate requested) by legolas.ozlabs.org (Postfix) with ESMTPS id 4Xj5pN0sl6z1xxb for ; Tue, 5 Nov 2024 09:33:15 +1100 (AEDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 4DDD7385770D for ; Mon, 4 Nov 2024 22:33:13 +0000 (GMT) X-Original-To: gcc-patches@gcc.gnu.org Delivered-To: gcc-patches@gcc.gnu.org Received: from mail-yw1-x1129.google.com (mail-yw1-x1129.google.com [IPv6:2607:f8b0:4864:20::1129]) by sourceware.org (Postfix) with ESMTPS id 4C1CC3858C2B for ; Mon, 4 Nov 2024 22:32:52 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 4C1CC3858C2B Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=gmail.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 4C1CC3858C2B Authentication-Results: server2.sourceware.org; arc=none smtp.remote-ip=2607:f8b0:4864:20::1129 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730759574; cv=none; b=J4kfwAclEwQxj9gVSGG4aEdwPwSfHIfRxzhLMYFfrBU/9BVJ6iMIvUakJrtCVngQI+T9+x6T5jh+570A6RiTIOmu7puVF7RJ+bcZnu+qvoC/scqgEqe74Zf6ZIQTB5GCrGurVt8eQclO4JOxiSINnKtmcmD/fPGrVEs8yb9NPf0= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1730759574; c=relaxed/simple; bh=NCl1Vw/2Aqdz2Q3/8Dxvcw0dzFjYfSzY3jU+rkOESAo=; h=DKIM-Signature:MIME-Version:From:Date:Message-ID:Subject:To; b=DfvJpqmw6dHn/0/jj2YPHzfxAK8Pn+8+tJlUqd7/bZOeGUo3esRf7WUgd4DZelN0nQbAjoh8mMkCP0QpzpOxaueetTMgIS1LE/AkkBqqgOG5Bph7JEyFnq6+TgupJfa3PuzHhlY1/9W4zzMJyAnBrc2NG9Lpe79JApWs9Qvw4vk= ARC-Authentication-Results: i=1; server2.sourceware.org Received: by mail-yw1-x1129.google.com with SMTP id 00721157ae682-6e35bf59cf6so53695627b3.0 for ; Mon, 04 Nov 2024 14:32:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1730759571; x=1731364371; darn=gcc.gnu.org; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:from:to:cc:subject:date:message-id:reply-to; bh=0JMUfZBMiwS7h8SkyJXelSbyt0kNIF09ORWakTWFmr8=; b=hFHlDd6bqvwsX1qRHHihGuDd71rbxbZ1Gv/x7iTdyjzXTONSuhpSoaWAmTbGPtUqER zgEoFi0BRBcm2ydOMl7HebzMoCORFrdqbmNtiMZ1+inh66+Rp8Mx5LU4mJ2UlatbtJqh UXzGnf0lKOlRalg1S4LrwOcOG5PB8sDIZ/u58SPY3qwG3bOWFJ23MZrV9n67Crh0PODw nmzJvaHR78WoDQNcmf//Wq9w9dBDLrfLBFXnOwW3IjA10MI6ktfFCr6/zFUuSiLqGlmD LzSOmjb9ToIbFZnloD02TCSIr/dkAb+YncnQ2kVHlXaeCratwOA0CkzByh8sZYqSmnt6 1tig== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1730759571; x=1731364371; h=cc:to:subject:message-id:date:from:in-reply-to:references :mime-version:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=0JMUfZBMiwS7h8SkyJXelSbyt0kNIF09ORWakTWFmr8=; b=D5TgGvqiCma42wTxuBQ8bDlUfs91JmORem9rwUXdNaxkrBYx3nVhWtXjjyXLcbsk4W OCjd8HtfjJkvWKFwTKxy6jMTzmgtdvEUrErucP59Z2uB+1YTt7gWgNVeOITAQQdV27IH N0BJVsPTCahArOTNrbPzsRLBSP6+QFPy96a2nfqSMrk8j7YWlriSi6155OJgxZjNo2BS vxIdWXNB/jWK0yp1849XPqawX+l6/j1xmOnY2NpasG0ReyyVJAJOv5dderKJxgFm4pUC GznbdeuxfPWw8s32e6Mws6qP7gK7EMTrqMby+9I9YBjg+/M/Tn7n/hI5eKERrPBdO5Qa 61tg== X-Forwarded-Encrypted: i=1; AJvYcCVz0lPYrbACqytNsHMw4VXstudk/wMQ4TRTEvgYlcHDpJMTckQS2zINp2uDzjQUaVSu6uCFz3PeZWsT/A==@gcc.gnu.org X-Gm-Message-State: AOJu0YwLlpHH1ZjPWfok06F0pQIaOFxw7qe1/P0iOHeGg0CEaDuSAy6X ts+yQM812mK5/WeQqouxTmVCBCNudSERlcqu52ZdMFNx/Iv5o134fD1g+1XxEpK3rbxeH0L/xlS a85r0MK1bZ9NWgeVLfIWeqcS3gfs= X-Google-Smtp-Source: AGHT+IEbpO4FnnFSAjsFNH321lw4b8zsi/oJ+vSmWmTmHUl+A3DZA4EVE9AHWcSqCxsVmO3Ico64+uQGdztImYfvpK0= X-Received: by 2002:a05:690c:d18:b0:6db:d02f:b2c4 with SMTP id 00721157ae682-6ea64308628mr112076017b3.7.1730759571416; Mon, 04 Nov 2024 14:32:51 -0800 (PST) MIME-Version: 1.0 References: <87r07v6bf9.fsf@gentoo.org> <179b4892-9669-44ea-925b-7489d04f8153@gmail.com> In-Reply-To: <179b4892-9669-44ea-925b-7489d04f8153@gmail.com> From: "H.J. Lu" Date: Tue, 5 Nov 2024 06:32:15 +0800 Message-ID: Subject: [PATCH] simulate-thread tests: Silence gdb debuginfod warning To: Jeff Law Cc: Sam James , Mike Stump , GCC Patches , Andrew Pinski X-BeenThere: gcc-patches@gcc.gnu.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gcc-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gcc-patches-bounces~incoming=patchwork.ozlabs.org@gcc.gnu.org On Mon, Nov 4, 2024 at 10:01 PM Jeff Law wrote: > > > > On 10/31/24 6:59 PM, H.J. Lu wrote: > > On Fri, Nov 1, 2024 at 8:32 AM Sam James wrote: > >> > >> "H.J. Lu" writes: > >> > >>> When gdb defaults to use debuginfod, gdb warns guality tests: > >>> > >>> Spawning: gdb -nx -nw -quiet -batch -x pr36728-2.gdb ./pr36728-2.exe > >>> spawn gdb -nx -nw -quiet -batch -x pr36728-2.gdb ./pr36728-2.exe > >>> Breakpoint 1 at 0x4004ba: file /export/gnu/import/git/gitlab/x86-gcc/gcc/testsui > >>> te/gcc.dg/guality/pr36728-2.c, line 18. > >>> > >>> This GDB supports auto-downloading debuginfo from the following URLs: > >>> > >>> Enable debuginfod for this session? (y or [n]) [answered N; input not from termi > >>> nal] > >>> Debuginfod has been disabled. > >>> To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit. > >>> > >>> After 'set debuginfod enabled off' is added to ~/.gdbinit, gdb warning > >>> doesn't go away since -nx option ignores ~/.gdbinit. Silence gdb warning > >>> by setting DEBUGINFOD_URLS to "" and restore if it exists. > >>> > >>> PR testsuite/117300 > >>> * g++.dg/guality/guality.exp: Set DEBUGINFOD_URLS to "" and > >>> restore it if it exists. > >>> * gcc.dg/guality/guality.exp: Likewise. > >>> * gfortran.dg/guality/guality.exp: Likewise. > >>> > >>> Co-authored-by: Andrew Pinski > >>> Signed-off-by: H.J. Lu > >> > >> I can't approve it but it looks right to me. > > > > Hi Mike, > > > > Is this patch > > > > https://gcc.gnu.org/pipermail/gcc-patches/2024-October/666594.html > > > > OK? > OK > jeff > simulate-thread tests have the same issue. Here is a patch. OK to install? When gdb defaults to use debuginfod, gdb warns simulate-thread tests: spawn gdb -nx -nw -batch -x /export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/ gcc.dg/simulate-thread/simulate-thread.gdb ./atomic-load-int.exe Breakpoint 1 at 0x4005cc: file /export/gnu/import/git/gitlab/x86-gcc/gcc/testsui te/gcc.dg/simulate-thread/atomic-load-int.c, line 97. This GDB supports auto-downloading debuginfo from the following URLs: Enable debuginfod for this session? (y or [n]) [answered N; input not from termi nal] Debuginfod has been disabled. To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit. Silence gdb warning by setting DEBUGINFOD_URLS to "" and restore it if it exists. PR testsuite/117300 * g++.dg/simulate-thread/simulate-thread.exp: Set DEBUGINFOD_URLS to "" and restore it if it exists. * gcc.dg/simulate-thread/simulate-thread.exp: Likewise. From 058d50e7e732ad7df772f3f16d76cd7903be5481 Mon Sep 17 00:00:00 2001 From: "H.J. Lu" Date: Tue, 5 Nov 2024 06:22:00 +0800 Subject: [PATCH] simulate-thread tests: Silence gdb debuginfod warning When gdb defaults to use debuginfod, gdb warns simulate-thread tests: spawn gdb -nx -nw -batch -x /export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/gcc.dg/simulate-thread/simulate-thread.gdb ./atomic-load-int.exe Breakpoint 1 at 0x4005cc: file /export/gnu/import/git/gitlab/x86-gcc/gcc/testsuite/gcc.dg/simulate-thread/atomic-load-int.c, line 97. This GDB supports auto-downloading debuginfo from the following URLs: Enable debuginfod for this session? (y or [n]) [answered N; input not from terminal] Debuginfod has been disabled. To make this setting permanent, add 'set debuginfod enabled off' to .gdbinit. Silence gdb warning by setting DEBUGINFOD_URLS to "" and restore it if it exists. PR testsuite/117300 * g++.dg/simulate-thread/simulate-thread.exp: Set DEBUGINFOD_URLS to "" and restore it if it exists. * gcc.dg/simulate-thread/simulate-thread.exp: Likewise. Signed-off-by: H.J. Lu --- gcc/testsuite/g++.dg/simulate-thread/simulate-thread.exp | 9 +++++++++ gcc/testsuite/gcc.dg/simulate-thread/simulate-thread.exp | 9 +++++++++ 2 files changed, 18 insertions(+) diff --git a/gcc/testsuite/g++.dg/simulate-thread/simulate-thread.exp b/gcc/testsuite/g++.dg/simulate-thread/simulate-thread.exp index 35a111cfd13..ad428c148ec 100644 --- a/gcc/testsuite/g++.dg/simulate-thread/simulate-thread.exp +++ b/gcc/testsuite/g++.dg/simulate-thread/simulate-thread.exp @@ -30,10 +30,19 @@ set-torture-options [list \ { -O3 -g -std=c++11 } \ { -Os -g } ] +if [info exists ::env(DEBUGINFOD_URLS)] { + set orig_debuginfod_urls "$::env(DEBUGINFOD_URLS)" + setenv DEBUGINFOD_URLS "" +} + if [gdb-exists] { gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.C]] "" "" gcc-dg-runtest [lsort [glob $srcdir/c-c++-common/simulate-thread/*.c]] "" "" } +if [info exists ::env(DEBUGINFOD_URLS)] { + setenv DEBUGINFOD_URLS "$orig_debuginfod_urls" +} + torture-finish dg-finish diff --git a/gcc/testsuite/gcc.dg/simulate-thread/simulate-thread.exp b/gcc/testsuite/gcc.dg/simulate-thread/simulate-thread.exp index 8983cc76605..7a8178f5f67 100644 --- a/gcc/testsuite/gcc.dg/simulate-thread/simulate-thread.exp +++ b/gcc/testsuite/gcc.dg/simulate-thread/simulate-thread.exp @@ -32,10 +32,19 @@ set-torture-options [list \ { -O2 -g } \ { -O3 -g } ] +if [info exists ::env(DEBUGINFOD_URLS)] { + set orig_debuginfod_urls "$::env(DEBUGINFOD_URLS)" + setenv DEBUGINFOD_URLS "" +} + if [gdb-exists] { gcc-dg-runtest [lsort [glob -nocomplain $srcdir/$subdir/*.c]] "" "" gcc-dg-runtest [lsort [glob $srcdir/c-c++-common/simulate-thread/*.c]] "" "" } +if [info exists ::env(DEBUGINFOD_URLS)] { + setenv DEBUGINFOD_URLS "$orig_debuginfod_urls" +} + torture-finish dg-finish -- 2.47.0