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.129.124]) by sourceware.org (Postfix) with ESMTPS id 5BA723858D32 for ; Sun, 13 Aug 2023 04:00:19 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5BA723858D32 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=redhat.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=redhat.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=redhat.com; s=mimecast20190719; t=1691899218; 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; bh=ylJid1E+xh7Mn5W+MfCCkdt+fjWbyufU67PP0DmeF3o=; b=QNVpC2l8dqOlFzpWhchiRJCjTrAfIYggC1hzgjkRD9WUN8RZPDkYdcFsTFGzH53ITxWw1E DimIs5xh6Ma/eKNRNDY+V8sdVTgIKIgdraBINljMjRhTFff/vIlieiR5DvHJtiIMXLjRWN TQCo81VuOtHNaeVtEb21y32/BPdHn+Q= Received: from mimecast-mx02.redhat.com (mimecast-mx02.redhat.com [66.187.233.88]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.2, cipher=TLS_ECDHE_RSA_WITH_AES_256_GCM_SHA384) id us-mta-627-SlBhM_0uNj6_95SkpVYkSw-1; Sun, 13 Aug 2023 00:00:05 -0400 X-MC-Unique: SlBhM_0uNj6_95SkpVYkSw-1 Received: from smtp.corp.redhat.com (int-mx09.intmail.prod.int.rdu2.redhat.com [10.11.54.9]) (using TLSv1.2 with cipher AECDH-AES256-SHA (256/256 bits)) (No client certificate requested) by mimecast-mx02.redhat.com (Postfix) with ESMTPS id 2D9DA810C2B for ; Sun, 13 Aug 2023 04:00:05 +0000 (UTC) Received: from f38-1.lan (unknown [10.22.32.15]) by smtp.corp.redhat.com (Postfix) with ESMTP id CCF66492B0F; Sun, 13 Aug 2023 04:00:04 +0000 (UTC) From: Kevin Buettner To: gdb-patches@sourceware.org Cc: Kevin Buettner Subject: [PATCH v3 0/2] [symtab/27831] Fix OBJF_MAINLINE assert Date: Sat, 12 Aug 2023 20:48:51 -0700 Message-ID: <20230813035925.3344167-1-kevinb@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 3.1 on 10.11.54.9 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=-4.6 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: This is a slightly modified version of a two-part series from over a year ago. As noted then, the fix is mostly Simon's work, though the text of the commit log is still mine. Also, it required a rebase, so that work is mine as well. I've also updated copyright dates as well as the commit log for the fix to reflect the fact that macros are no longers used in the affected code. I've tested on Fedora 38 for both x86_64 and aarch64 - no regressions. Moreover, I've observed that the new test case is still relevant, i.e. the bug hasn't been fixed by some other means in the interim. Kevin Buettner (2): [symtab/27831] Fix OBJF_MAINLINE assert [symtab/27831] New test case: gdb.base/add-symbol-file-attach.exp gdb/elfread.c | 8 +- gdb/symtab.c | 13 ++- gdb/symtab.h | 17 ++-- .../gdb.base/add-symbol-file-attach.c | 28 ++++++ .../gdb.base/add-symbol-file-attach.exp | 88 +++++++++++++++++++ 5 files changed, 137 insertions(+), 17 deletions(-) create mode 100644 gdb/testsuite/gdb.base/add-symbol-file-attach.c create mode 100644 gdb/testsuite/gdb.base/add-symbol-file-attach.exp -- 2.41.0