| Message ID | 20260723175131.266112-1-pedro@palves.net |
|---|---|
| Headers |
Return-Path: <gdb-patches-bounces~patchwork=sourceware.org@sourceware.org> X-Original-To: patchwork@sourceware.org Delivered-To: patchwork@sourceware.org Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 797814BA7990 for <patchwork@sourceware.org>; Thu, 23 Jul 2026 17:52:15 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 797814BA7990 Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=palves.net header.i=@palves.net header.a=rsa-sha256 header.s=dreamhost header.b=tllSppWU X-Original-To: gdb-patches@sourceware.org Delivered-To: gdb-patches@sourceware.org Received: from lightblue.cherry.relay.mailchannels.net (lightblue.cherry.relay.mailchannels.net [23.83.223.104]) by sourceware.org (Postfix) with ESMTPS id 2AFF44BA2E07 for <gdb-patches@sourceware.org>; Thu, 23 Jul 2026 17:51:39 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 2AFF44BA2E07 Authentication-Results: sourceware.org; dmarc=none (p=none dis=none) header.from=palves.net Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=palves.net ARC-Filter: OpenARC Filter v1.0.0 sourceware.org 2AFF44BA2E07 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=23.83.223.104 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784829099; cv=none; b=jLcn7FmiuyVe1wZJoOqA7/rWP8beYRBkSP6JxQn0BeL8RHfPjpdyVzij9WjEectPu2IJspWdICji/tNQYnUlvUD9TSro42LRhslBafAkCsc+Gm4duWo9Guew1moMfAo8bYhBvvkQjpDf36duCeuui4luooqnLg/o9QaveIPZbaI= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1784829099; c=relaxed/simple; bh=I3Vqf+GCYYhXnlTsm8k8UPnGD97ipnO1v04xSzMT1f8=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=IKO4/Rx7T1VbY+iX2+ym3aZWYnhQ781/b8fixn6VuNE5IPtGZ/aK4CRhR3dOnj2gBRvZ9ibPpHsOa2gDAu/JNRYCynENnSJMRHVljcRdekOihInemVIiz4f6khhGBg3Ux/hhuIZIABxPRN4sdSSKyc7T7zKLauURVjnOKsD+U9A= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=palves.net header.i=@palves.net header.a=rsa-sha256 header.s=dreamhost header.b=tllSppWU DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 2AFF44BA2E07 X-Sender-Id: dreamhost|x-authsender|pedro@palves.net Received: from relay.mailchannels.net (localhost [127.0.0.1]) by relay.mailchannels.net (Postfix) with ESMTP id 176DA4C04CF for <gdb-patches@sourceware.org>; Thu, 23 Jul 2026 17:51:38 +0000 (UTC) Received: from pdx1-sub0-mail-a242.dreamhost.com (100-104-242-227.trex-nlb.outbound.svc.cluster.local [100.104.242.227]) (Authenticated sender: dreamhost) by relay.mailchannels.net (Postfix) with ESMTPA id B6DF14C0D50 for <gdb-patches@sourceware.org>; Thu, 23 Jul 2026 17:51:37 +0000 (UTC) X-Sender-Id: dreamhost|x-authsender|pedro@palves.net X-MC-Relay: Good X-MailChannels-SenderId: dreamhost|x-authsender|pedro@palves.net X-MailChannels-Auth-Id: dreamhost X-Whimsical-Minister: 560b3d756cf72800_1784829097966_3765672765 X-MC-Loop-Signature: 1784829097966:3160183158 X-MC-Ingress-Time: 1784829097966 Received: from pdx1-sub0-mail-a242.dreamhost.com (pop.dreamhost.com [64.90.62.162]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384) by 100.104.242.227 (trex/8.0.2); Thu, 23 Jul 2026 17:51:37 +0000 Received: from localhost (bl20-181-64.dsl.telepac.pt [2.81.181.64]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange ECDHE (P-256) server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) (Authenticated sender: pedro@palves.net) by pdx1-sub0-mail-a242.dreamhost.com (Postfix) with ESMTPSA id 4h5dwT1WqLz103y for <gdb-patches@sourceware.org>; Thu, 23 Jul 2026 10:51:37 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=palves.net; s=dreamhost; t=1784829097; bh=tq2p211Ch30vVnkbR8KOlBUcVZog8Is9j6igzuHU3WM=; h=From:To:Subject:Date:Content-Transfer-Encoding; b=tllSppWURsrdocuyZ7X4O4x+aiIO51WpxYQHiHJ8Cp8M5amTP3vy8Poa0jqCzIdkz vfASc9P3vfkpIp6yoPX8R5aERF85TkTTHowfnEkF2EkBTzCA/876SV5xEJQtL7LyGj h7mnQlUQQuyA5GZLNXGolMedJzXfyrBTJDveUqr7JOx0rsvZwEVGbaGAECHvb3z9m2 Vl1KPQ1j2tFRv/qQFLlQi1IP1F6VjxUnpRLiu5aoApDvTh9dzPlAvKac0RL4kaRO18 wT92BRtdxlSHJC+H4WiqQ+ruuKgd6zrW3MPGV99dG/ZO628Mn+HkcaKR94Rn1w+viP Qel9+uEtPBXeQ== From: Pedro Alves <pedro@palves.net> To: gdb-patches@sourceware.org Subject: [PATCH 0/4] Avoid command-line length limit combining test results Date: Thu, 23 Jul 2026 18:51:27 +0100 Message-ID: <20260723175131.266112-1-pedro@palves.net> X-Mailer: git-send-email 2.54.0 MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-1.9 required=5.0 tests=BAYES_00, DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, DKIM_VALID_EF, POISEN_SPAM_PILL, POISEN_SPAM_PILL_1, POISEN_SPAM_PILL_3, RCVD_IN_BARRACUDACENTRAL, RCVD_IN_DNSWL_NONE, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL, RCVD_IN_PBL, SPF_HELO_NONE, SPF_PASS, TXREP shortcircuit=no autolearn=no autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on sourceware.org X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list <gdb-patches.sourceware.org> List-Unsubscribe: <https://sourceware.org/mailman/options/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=unsubscribe> List-Archive: <https://sourceware.org/pipermail/gdb-patches/> List-Post: <mailto:gdb-patches@sourceware.org> List-Help: <mailto:gdb-patches-request@sourceware.org?subject=help> List-Subscribe: <https://sourceware.org/mailman/listinfo/gdb-patches>, <mailto:gdb-patches-request@sourceware.org?subject=subscribe> Errors-To: gdb-patches-bounces~patchwork=sourceware.org@sourceware.org |
| Series |
Avoid command-line length limit combining test results
|
|
Message
Pedro Alves
July 23, 2026, 5:51 p.m. UTC
On Windows, "make check-parallel" dies when combining the per-test
gdb.sum / gdb.log files into the final combined pair:
$ find outputs/ -name gdb.sum | wc -l
2657
.../dg-extract-results.sh: line 39: /ucrt64/bin/python3: Argument list too long
make: *** [Makefile:274: check-parallel] Error 2
The testsuite Makefile passes the whole file list to
contrib/dg-extract-results.sh on the command line, expanded from a
find(1) backtick. GDB's parallel harness writes one gdb.sum (and one
gdb.log) per test script, so on a full run that list holds thousands
of paths, which overflows the Windows command-line length limit
(~32 KB).
This series teaches dg-extract-results to read the file list from
stdin (or a file) instead, and has the Makefile pipe the find output
straight in, so the length limit no longer applies regardless of the
host.
The first patch touches contrib/dg-extract-results.{sh,py}, which are
shared with GCC, so I plan to submit that one to GCC as well.
The two middle patches (factoring out the combine recipe, and adding
the extract-results target) are pure GDB and can go in at any time.
Only the last patch depends on the new -f option added by the first
patch.
Pedro Alves (4):
dg-extract-results.{sh,py}: Optionally read file list from stdin/file
gdb/testsuite: Factor out dg-extract-results.sh calls
gdb/testsuite: Add extract-results make target
gdb/testsuite: Pipe the dg-extract-results file list via stdin
contrib/dg-extract-results.py | 30 +++++++++++++++++++---
contrib/dg-extract-results.sh | 17 +++++++++++--
gdb/testsuite/Makefile.in | 47 ++++++++++++++++++++++++-----------
3 files changed, 74 insertions(+), 20 deletions(-)
base-commit: 39fc0cc4aa6f82a73b9eac6b8739895484ab269f
Comments
On 2026-07-23 18:51, Pedro Alves wrote: > This series teaches dg-extract-results to read the file list from > stdin (or a file) instead, and has the Makefile pipe the find output > straight in, so the length limit no longer applies regardless of the > host. > > The first patch touches contrib/dg-extract-results.{sh,py}, which are > shared with GCC, so I plan to submit that one to GCC as well. This is now merged in both GCC and GDB. I've gone ahead and merged the rest of the series to GDB. Pedro Alves