From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id F/GPD8mmfWS8bx4AWB0awg (envelope-from ) for ; Mon, 05 Jun 2023 05:11:37 -0400 Received: by simark.ca (Postfix, from userid 112) id 363421E11E; Mon, 5 Jun 2023 05:11:37 -0400 (EDT) Authentication-Results: simark.ca; dkim=pass (1024-bit key; secure) header.d=sourceware.org header.i=@sourceware.org header.a=rsa-sha256 header.s=default header.b=xVxw5tji; dkim-atps=neutral X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-8.0 required=5.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI,RCVD_IN_DNSWL_HI, URIBL_BLOCKED autolearn=ham autolearn_force=no version=3.4.6 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 448671E0D6 for ; Mon, 5 Jun 2023 05:11:36 -0400 (EDT) Received: from server2.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id BF0CB385C6D9 for ; Mon, 5 Jun 2023 09:11:35 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org BF0CB385C6D9 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=sourceware.org; s=default; t=1685956295; 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=xVxw5tjie0IcgCUBxp+6BiHf5Z6E2c7J9yyTBKt+8ayf0uoS+bJwwCYkU3d4qMS28 OIc2HgIfkHaiQfdkhW/kWE6KYALoQNA8lN1CbYyrRP1xotSw5OQU26nq1AIGjqfzRA sybHQNm0W3lRoZLHWPor9urne9Nx3u6/lV+bqhHc= 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 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: Andrew Burgess via Gdb-patches Reply-To: Andrew Burgess Errors-To: gdb-patches-bounces+public-inbox=simark.ca@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 -- 2.25.4