From patchwork Mon Jun 5 09:11:06 2023 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Andrew Burgess X-Patchwork-Id: 55814 Return-Path: X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 39653385C6F1 for ; Mon, 5 Jun 2023 09:11:40 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 39653385C6F1 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685956300; bh=OGwIaH+QFnzDyvXed8eAtL9tqoMaik+XYnarZAT3IGY=; h=To:Cc:Subject:Date:List-Id:List-Unsubscribe:List-Archive: List-Post:List-Help:List-Subscribe:From:Reply-To:From; b=H7OMNsAea6B2yEhe0Z+1cZdQnO1OPsABR2ptAvzPdqe7qARqRAZXlqFeG/hMQN8Ct +umA1xu11x3hfcl9TX1P15pt9vZ86T1miRnQb1m+gBG69ehSVjxLTfF4c0mT+cyX6L ihZ6lfUAZf/f7Nw0mMU0kN4dpX+ZFihazrWIHNug= X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org 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 276D43858D37 for ; Mon, 5 Jun 2023 09:11:15 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 276D43858D37 Received: from mail-wm1-f69.google.com (mail-wm1-f69.google.com [209.85.128.69]) by relay.mimecast.com with ESMTP with STARTTLS (version=TLSv1.3, cipher=TLS_AES_256_GCM_SHA384) id us-mta-557-IiNSZGunNBmmnKC_isJLtw-1; Mon, 05 Jun 2023 05:11:13 -0400 X-MC-Unique: IiNSZGunNBmmnKC_isJLtw-1 Received: by mail-wm1-f69.google.com with SMTP id 5b1f17b1804b1-3f772115352so3980415e9.0 for ; Mon, 05 Jun 2023 02:11:13 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20221208; t=1685956272; x=1688548272; h=content-transfer-encoding:mime-version:message-id:date:subject:cc :to:from:x-gm-message-state:from:to:cc:subject:date:message-id :reply-to; bh=OGwIaH+QFnzDyvXed8eAtL9tqoMaik+XYnarZAT3IGY=; b=Ab9/DMfqmSlbmjnUHr96U6UpRdW2QU3wAWm6SpO1Mwafi5v449dDDETIBdSj18pIKK FQR3gCFnbGIHISXYm0UrIzqZqbDAE5qQ20GQZe4eofMB0HhzSpbzisbT1+xUfqssODhc +/ozCo4ryJfazYGzrfsuPbWEcKm9STnWH8h4YaJLRFbYaQgeJ2UwD5alnlVA1BJFPskh hU1MIUmqDtiHcvnr5w5DQVeQUx7O+z5zbngvfecmmtOAZ9Bn9QUnk8B/SYDAb4MN3D3/ QqNjzb0jTwdnnzwGZV3oEttMp0FD8rxeYJvLDV4wZqJM5qqODUHiFEUrlqSzF2vAjp1H Dfcg== X-Gm-Message-State: AC+VfDzn9I3y8CpRh4Li4MFCNDmnUT9JIH1hCxSpjivTiJ8pKcD0ZK2D vepQu8hZYrgWuye9W1le6dLj1R+LKqJDfpTot+ppLTZulaMhp7mLUihNYE53wH45Kr2GRWjREHF nbtaFd1zDY0lBfyvpvx8/I3fHQMo3/ANPqWnSnEuoUYMlfvxm37j2Z4XNZit4i0O0A04DDgC7ME 6iGWIOyA== X-Received: by 2002:a1c:ed03:0:b0:3f4:1ce0:a606 with SMTP id l3-20020a1ced03000000b003f41ce0a606mr7392726wmh.1.1685956272560; Mon, 05 Jun 2023 02:11:12 -0700 (PDT) X-Google-Smtp-Source: ACHHUZ5DyrW7C7UxVsIHfeJ7ufli1Wf3WDcU2nSxS/POwd7Hg0Q3UYPsvXCXxnzUIpan6rc6Z/zk+A== X-Received: by 2002:a1c:ed03:0:b0:3f4:1ce0:a606 with SMTP id l3-20020a1ced03000000b003f41ce0a606mr7392705wmh.1.1685956272208; Mon, 05 Jun 2023 02:11:12 -0700 (PDT) Received: from localhost (11.72.115.87.dyn.plus.net. [87.115.72.11]) by smtp.gmail.com with ESMTPSA id c8-20020a7bc848000000b003f72468833esm10060444wml.26.2023.06.05.02.11.11 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Mon, 05 Jun 2023 02:11:11 -0700 (PDT) To: gdb-patches@sourceware.org Cc: Andrew Burgess Subject: [PATCH 0/3] Improve vmcore loading Date: Mon, 5 Jun 2023 10:11:06 +0100 Message-Id: X-Mailer: git-send-email 2.25.4 MIME-Version: 1.0 X-Mimecast-Spam-Score: 0 X-Mimecast-Originator: redhat.com 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, SPF_HELO_NONE, SPF_NONE, TXREP, T_SCC_BODY_TEXT_LINE autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) 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-Patchwork-Original-From: Andrew Burgess via Gdb-patches From: Andrew Burgess Reply-To: Andrew Burgess Errors-To: gdb-patches-bounces+patchwork=sourceware.org@sourceware.org Sender: "Gdb-patches" This patch started as a proposal to upstream a test from the Fedora GDB tree (patch #2), however, as I started looking into the test a little more I realised that there was scope for further improvements to GDB (patch #3). Patch #1 is a small cleanup/refactor. This patch is all about loading vmcore files -- that is core files generated by the Linux kernel. See the commit messages on patches #2 and #3 for more details. Thanks, Andrew --- Andrew Burgess (3): gdb: split inferior and thread setup when opening a core file gdb/testsuite: add test for core file with a 0 pid gdb: handle core files with .reg/0 section names gdb/corelow.c | 212 +++++++++++++++--- gdb/testsuite/gdb.arch/core-file-pid0.exp | 73 ++++++ .../gdb.arch/core-file-pid0.x86-64.core.bz2 | Bin 0 -> 750 bytes 3 files changed, 252 insertions(+), 33 deletions(-) create mode 100644 gdb/testsuite/gdb.arch/core-file-pid0.exp create mode 100644 gdb/testsuite/gdb.arch/core-file-pid0.x86-64.core.bz2 base-commit: e9683acf5e51c2bac8aa68d30d9ac3683dddcc7d