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 E35FE3864842 for ; Fri, 25 Mar 2022 03:44:17 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.1 sourceware.org E35FE3864842 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-349-0Hh1B8hlMHywDmI-AhpaQQ-1; Thu, 24 Mar 2022 23:44:16 -0400 X-MC-Unique: 0Hh1B8hlMHywDmI-AhpaQQ-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 D6A8F802809; Fri, 25 Mar 2022 03:44:15 +0000 (UTC) Received: from f35-1.lan (unknown [10.2.16.88]) by smtp.corp.redhat.com (Postfix) with ESMTP id 6A02042B937; Fri, 25 Mar 2022 03:44:15 +0000 (UTC) From: Kevin Buettner To: gdb-patches@sourceware.org Subject: [PATCH v2 0/2] [symtab/27831] Fix OBJF_MAINLINE assert Date: Thu, 24 Mar 2022 20:42:52 -0700 Message-Id: <20220325034253.2639930-1-kevinb@redhat.com> MIME-Version: 1.0 X-Scanned-By: MIMEDefang 2.85 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=-5.0 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, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.4 X-Spam-Checker-Version: SpamAssassin 3.4.4 (2020-01-24) 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: Fri, 25 Mar 2022 03:44:19 -0000 This is a new version of a patch from nearly a year ago. The actual fix is now mostly Simon's work, though most of the text for the commit log is still mine. I've also split out the test case to be a separate commit and have added and updated comments in the .exp file. 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 | 11 ++- gdb/symtab.h | 19 ++-- .../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.35.1