From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id tgO6HAU7PWLuCAAAWB0awg (envelope-from ) for ; Thu, 24 Mar 2022 23:46:13 -0400 Received: by simark.ca (Postfix, from userid 112) id 6D6921F3CF; Thu, 24 Mar 2022 23:46:13 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 3.4.2 (2018-09-13) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-3.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,URIBL_BLOCKED autolearn=unavailable autolearn_force=no version=3.4.2 Received: from 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 RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 95EDB1EDF0 for ; Thu, 24 Mar 2022 23:46:12 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id C97BF3857404 for ; Fri, 25 Mar 2022 03:46:11 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org C97BF3857404 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1648179971; bh=S3O41N4a4JeSkzML89J9/x+TMzoL+gUG5eAb1t985f8=; h=To:Subject:Date:List-Id:List-Unsubscribe:List-Archive:List-Post: List-Help:List-Subscribe:From:Reply-To:From; b=V94jGsTvScbvCxjqVos7FAlurxrGiPAN2IJb3XTVSyNmMwpUbI/IFgl2U8NTIOQYN xXjH405gyHqQWBbuZc4dpWwGmCPKmkrr6PBs7kAwsWIRpdUNMgHKUubyPhYa3fZ4FH /nvqC43KzA+hrgGYxKFHmmYUwFpnB4lbFC7kUnGs= 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) 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-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: , From: Kevin Buettner via Gdb-patches Reply-To: Kevin Buettner Errors-To: gdb-patches-bounces+public-inbox=simark.ca@sourceware.org Sender: "Gdb-patches" 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