From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from us-smtp-1.mimecast.com (us-smtp-delivery-1.mimecast.com [207.211.31.120]) by sourceware.org (Postfix) with ESMTP id 0DA68386F83E for ; Sun, 17 May 2020 18:04:55 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.3.2 sourceware.org 0DA68386F83E Received: from mimecast-mx01.redhat.com (mimecast-mx01.redhat.com [209.132.183.4]) (Using TLS) by relay.mimecast.com with ESMTP id us-mta-459-s1x865MaNQeUj5bnJ9f6Ww-1; Sun, 17 May 2020 14:04:52 -0400 X-MC-Unique: s1x865MaNQeUj5bnJ9f6Ww-1 Received: from smtp.corp.redhat.com (int-mx03.intmail.prod.int.phx2.redhat.com [10.5.11.13]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx01.redhat.com (Postfix) with ESMTPS id 07C561800704 for ; Sun, 17 May 2020 18:04:52 +0000 (UTC) Received: from cascais.Home (ovpn04.gateway.prod.ext.ams2.redhat.com [10.39.146.4]) by smtp.corp.redhat.com (Postfix) with ESMTP id 9B1F682A0B for ; Sun, 17 May 2020 18:04:51 +0000 (UTC) From: Pedro Alves To: gdb-patches@sourceware.org Subject: [PATCH 0/3] Make exec-file-mismatch compare build IDs Date: Sun, 17 May 2020 19:04:47 +0100 Message-Id: <20200517180450.14925-1-palves@redhat.com> X-Scanned-By: MIMEDefang 2.79 on 10.5.11.13 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com Content-Type: text/plain; charset=US-ASCII X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00, DKIMWL_WL_HIGH, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, RCVD_IN_DNSWL_NONE, SPF_HELO_NONE, SPF_PASS, TXREP autolearn=ham autolearn_force=no version=3.4.2 X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on server2.sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.29 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Sun, 17 May 2020 18:04:56 -0000 The patch series makes GDB first try exec-file-mismatch validation via build IDs, and then if that isn't possible, fallback to validating using the old method of comparing filenames. I'd argue that we should remove the filename validation for causing too many false positives, though. See full details on patch #3. Patches #1 and #2 and simple preparatory patches. Patch #3 contains manual and NEWS changes. Pedro Alves (3): Default gdb_bfd_open's fd parameter to -1 Eliminate target_fileio_open_warn_if_slow Make exec-file-mismatch compare build IDs gdb/doc/gdb.texinfo | 23 ++++++++++++---------- gdb/NEWS | 15 +++++++------- gdb/build-id.c | 2 +- gdb/compile/compile-object-load.c | 2 +- gdb/dwarf2/read.c | 4 ++-- gdb/exec.c | 41 +++++++++++++++++++++++++++++++++++++-- gdb/gdb_bfd.c | 28 ++++++++++++++++---------- gdb/gdb_bfd.h | 7 +++++-- gdb/machoread.c | 4 ++-- gdb/solib-darwin.c | 2 +- gdb/symfile.c | 6 +++--- gdb/target.c | 33 +++++-------------------------- gdb/target.h | 20 +++++++------------ gdb/windows-nat.c | 2 +- gdb/windows-tdep.c | 2 +- 15 files changed, 106 insertions(+), 85 deletions(-) base-commit: 7cfd74cfc6e14034779e6cc048c68877b7a08f88 -- 2.14.5