From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-delivery-124.mimecast.com (us-smtp-delivery-124.mimecast.com [170.10.133.124]) by sourceware.org (Postfix) with ESMTPS id DA4F83858D1E for ; Mon, 20 May 2024 13:08:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org DA4F83858D1E 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 DA4F83858D1E 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=1716210515; cv=none; b=ODDtDaesYgoyx+cOlBjMYSJsdcA2j9vdpWxo7qAzUKiLhCgKVe3nMXpVUkLRTUrrzMiExYb+mbVlPonMGQ8CWVmPu+a20ZJXrfBQ9MUxe/QVgUJMbvP0FtTFzfcKA7wu8l5QZHNNzpmLMQa34oczQezSqcrUtaZVpFdC2Kg2ngg= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1716210515; c=relaxed/simple; bh=ArOZ0cRJ/O+04w6FEjvff1oag/W92On0Z57j5MB/bI8=; h=DKIM-Signature:From:To:Subject:Date:Message-Id:MIME-Version; b=Eb+c9rBjhPaghk4nsJps9aoP97O38036BxOOs9HNCb7iQIP1oCOxY7SsMmtiiXBytL/P+3IWEDB2lnO3pLttNdpKvbOGaATB4U18L00Z08e5WFd131UH+Vi8tQoSvbVf9KA9DTLlGBdfJ2zAOdnyB370McbUXY45768kY+arY2s= ARC-Authentication-Results: i=1; server2.sourceware.org DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1716210513; 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=KEY+SJvpVtu9WPlaU+e2vNieIqtKqn76aLGlmorfja0=; b=BREBEupfRbrjrekpw7gNbkEQPZCdECpDfwk018bJ9cHEF9gqoVckNmaw2uCFcI08nlqg3Q yQIYckrHMC10R43767s52UifFS67s/U3FDumeKip/qxtK503Wc6kWIXEpf/U/JOBa7KgnE bgCLF88qZBgc8/BtRDousWOyNVfVEAQ= Received: from mail-ej1-f69.google.com (mail-ej1-f69.google.com [209.85.218.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-266-WXXDD93DP76EpE0VYIg1-Q-1; Mon, 20 May 2024 09:08:32 -0400 X-MC-Unique: WXXDD93DP76EpE0VYIg1-Q-1 Received: by mail-ej1-f69.google.com with SMTP id a640c23a62f3a-a59c942611bso702055866b.0 for ; Mon, 20 May 2024 06:08:32 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1716210511; x=1716815311; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=KEY+SJvpVtu9WPlaU+e2vNieIqtKqn76aLGlmorfja0=; b=rwhmHYCAt3jnzKBEU+wZSaGTjYMqhOQxOBJFa9uupUj0ViOThzCXi+bj+12sv++88P hutcKwTSNOgWVd79qgHbdwX4DqIMbIcVVjH82/C/NkkKUwUqfXgB+itSH6dMntprUBra U3bgQC7yGjDI8z3FGd5NPaMRHv5wchFnHwj/jJp6580UeFo9AMdXBLZ0OU/UR6UK6EbL ST5H/w4MM96OOJAYiUsCh8zUXwFlPCgkN5mi5YI3PrMP4oAQ/Jb8+3TdTxhHUAkdl5KR mBJN9njaIRt7yii5JjB/JmQNTrZCstn5XAIMdGIdhn6XZw5BzRz/45LxrlyDvGDkiPmw yvBA== X-Gm-Message-State: AOJu0YzHK9fovThDuUq7Dt+xu3MRh2Ia9FEJLe10wwnZ7eNyKlCZ/5G2 tcN1O3s7zFEpWBtVI5NRjzh9q7Ldha/8FsBLI47eWhLrRIPEi0OT5dBgkKfRlExPEk4/uX3N2s2 H60JEoesWMftAcYS/YbYhottIWr8fJyDr6z3rl17uGsfNP/oZ4z9PwBpbjtIGfyVuojkJVAR1PW O+iHj4z8GyByjh06b+b6f8FXIY6/a4cPwTXeEpfcMsz74= X-Received: by 2002:a17:906:70d7:b0:a61:e825:8a75 with SMTP id a640c23a62f3a-a61e8258af8mr115568266b.18.1716210510583; Mon, 20 May 2024 06:08:30 -0700 (PDT) X-Google-Smtp-Source: AGHT+IEPxJydMsiXq7Ho2vFBtE/amW13OGndk2jKUmjjKtVsLgpunIorIbOkIB4KxQgF1Aa3rUH8+Q== X-Received: by 2002:a17:906:70d7:b0:a61:e825:8a75 with SMTP id a640c23a62f3a-a61e8258af8mr115566166b.18.1716210509938; Mon, 20 May 2024 06:08:29 -0700 (PDT) Received: from localhost ([31.111.84.240]) by smtp.gmail.com with ESMTPSA id a640c23a62f3a-a5a17b17f2csm1447859866b.197.2024.05.20.06.08.29 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 20 May 2024 06:08:29 -0700 (PDT) From: Andrew Burgess To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCHv2 0/4] More build-id checking when opening core files Date: Mon, 20 May 2024 14:08:23 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 In-Reply-To: References: MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 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.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_H4,RCVD_IN_MSPIKE_WL,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 List-Id: In v2: - Failures were reported in the new tests from Linaro CI testing. Nothing serious; Linaro was seeing some additional output that the regexp I'd written were not accounting for. I've revised the new tests to try and not be too strict, hopefully this should address the issues that were reported. - I've cleaned up some build vs host mistakes I think I made in some remote_exec calls. - And I've run the tests agsint 'make check-all-boards' and resolved some issues that cropped up. Andrew Burgess (4): gdb/corefile: remove unavailable target sections gdb/corefile: improve file backed mapping handling gdb: improve shared library build-id check for core-files gdb: unify build-id to objfile lookup code gdb/build-id.c | 42 +- gdb/build-id.h | 21 +- gdb/corelow.c | 379 ++++++++++++----- gdb/solib-aix.c | 6 + gdb/solib-darwin.c | 6 + gdb/solib-dsbt.c | 6 + gdb/solib-frv.c | 6 + gdb/solib-svr4.c | 10 + gdb/solib-target.c | 6 + gdb/solib.c | 369 ++++++++++++++--- gdb/solib.h | 39 +- gdb/solist.h | 22 + gdb/testsuite/gdb.base/corefile.exp | 39 ++ gdb/testsuite/gdb.base/solib-search.exp | 6 +- .../gdb.debuginfod/corefile-mapped-file-1.c | 24 ++ .../gdb.debuginfod/corefile-mapped-file-2.c | 22 + .../gdb.debuginfod/corefile-mapped-file-3.c | 45 +++ .../gdb.debuginfod/corefile-mapped-file.exp | 380 ++++++++++++++++++ .../gdb.debuginfod/solib-with-soname-1.c | 39 ++ .../gdb.debuginfod/solib-with-soname-2.c | 41 ++ .../gdb.debuginfod/solib-with-soname.exp | 290 +++++++++++++ gdb/testsuite/lib/gdb.exp | 20 +- 22 files changed, 1654 insertions(+), 164 deletions(-) create mode 100644 gdb/testsuite/gdb.debuginfod/corefile-mapped-file-1.c create mode 100644 gdb/testsuite/gdb.debuginfod/corefile-mapped-file-2.c create mode 100644 gdb/testsuite/gdb.debuginfod/corefile-mapped-file-3.c create mode 100644 gdb/testsuite/gdb.debuginfod/corefile-mapped-file.exp create mode 100644 gdb/testsuite/gdb.debuginfod/solib-with-soname-1.c create mode 100644 gdb/testsuite/gdb.debuginfod/solib-with-soname-2.c create mode 100644 gdb/testsuite/gdb.debuginfod/solib-with-soname.exp base-commit: ad666becfe075ca7c831ebbf4b44526994395e97 -- 2.25.4