From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from simark.ca by simark.ca with LMTP id CXAvIfu7RGrPxyAAWB0awg (envelope-from ) for ; Wed, 01 Jul 2026 03:04:27 -0400 Authentication-Results: simark.ca; dkim=pass (2048-bit key; unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=NsStmKAh; dkim-atps=neutral Received: by simark.ca (Postfix, from userid 112) id 830B51E098; Wed, 01 Jul 2026 03:04:27 -0400 (EDT) X-Spam-Checker-Version: SpamAssassin 4.0.1 (2024-03-25) on simark.ca X-Spam-Level: X-Spam-Status: No, score=-6.4 required=5.0 tests=ARC_SIGNED,ARC_VALID,BAYES_00, DKIMWL_WL_HIGH,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,MAILING_LIST_MULTI, RCVD_IN_DNSWL_MED autolearn=ham autolearn_force=no version=4.0.1 Received: from vm01.sourceware.org (vm01.sourceware.org [IPv6:2620:52:6:3111::32]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange x25519 server-signature ECDSA (prime256v1) server-digest SHA256) (No client certificate requested) by simark.ca (Postfix) with ESMTPS id 7D9B11E070 for ; Wed, 01 Jul 2026 03:04:26 -0400 (EDT) Received: from vm01.sourceware.org (localhost [IPv6:::1]) by sourceware.org (Postfix) with ESMTP id 3C48D4BA23DE for ; Wed, 1 Jul 2026 07:04:25 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org 3C48D4BA23DE Authentication-Results: sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=NsStmKAh Received: from mgamail.intel.com (mgamail.intel.com [198.175.65.14]) by sourceware.org (Postfix) with ESMTPS id B3B144BA2E12 for ; Wed, 1 Jul 2026 07:03:33 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org B3B144BA2E12 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=intel.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=intel.com ARC-Filter: OpenARC Filter v1.0.0 sourceware.org B3B144BA2E12 Authentication-Results: sourceware.org; arc=none smtp.remote-ip=198.175.65.14 ARC-Seal: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1782889414; cv=none; b=lLUMw5PFm1luNxYyk7Nk40hRE7DDvzbYTDzqMQp7XKonlkfk1TdjQ8tJZJSqLrCreUjfYcjMr29qUKHagkCp2VhQxjcqJprFuABQq/8Uq5cJdynX0HFW4nUUkwCWk7dKXK8p2/cAQENqsrpHwg/EtpfhXYcuog+/Dt+DoSRtOj4= ARC-Message-Signature: i=1; a=rsa-sha256; d=sourceware.org; s=key; t=1782889414; c=relaxed/simple; bh=eiOfsenZ8M0a0Fu4KFIURIPjYUamElwIvkrMpR2tDuE=; h=DKIM-Signature:From:To:Subject:Date:Message-ID:MIME-Version; b=hHLWNtnYNkbuxfY5XUHGYSFudZz6lq13aHYDz5mAMC+lkuSPCp2ry1QyCIZsshyK3YPKUy71p58TbAx9hKqYUGE5JuyqNh5vY7zfAWinFkO6LP4Iy55bqWjCUvO6nVrCFctKtLnqQ5JP6zZGneZZYGOJlM1JFB8DyvPwhKC2IqI= ARC-Authentication-Results: i=1; sourceware.org; dkim=pass (2048-bit key, unprotected) header.d=intel.com header.i=@intel.com header.a=rsa-sha256 header.s=Intel header.b=NsStmKAh DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org B3B144BA2E12 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=intel.com; i=@intel.com; q=dns/txt; s=Intel; t=1782889414; x=1814425414; h=from:to:subject:date:message-id:mime-version: content-transfer-encoding; bh=eiOfsenZ8M0a0Fu4KFIURIPjYUamElwIvkrMpR2tDuE=; b=NsStmKAhxRNEtxntk/tVKmY/Eaou77Yv4yDMN2ULdcK89IjYv15w9Yys 6VDyEDVDps52GMfBm9wGfjD6kYeLebHuvwYOhCNfaewcNalJwYDOi8Sy7 2EBvY7LxZIfNoXZKYgy5M3trwv3kaE8hpnfZbVANXW+yU79t97rcj2Ok0 DahwN1uvcjiYhaxP7hOpFmaaEhLiRsn0lBiseetluJasUOgLn36pDRNs7 3u161hbTAVpUl2H2ixqap+hQanpf+xJrp1MsPsmo+eBeCPICByDFvtq6Z mcvTEh9/nzknG7oWRt2D/CFSo2xe0Wj8aonScQWKFnQH9wkkuIWoCgDjG Q==; X-CSE-ConnectionGUID: En+/OYBlQw+uUWkcacbEHQ== X-CSE-MsgGUID: 6ghP6SoqTnGctH1U5CkYcQ== X-IronPort-AV: E=McAfee;i="6800,10657,11833"; a="87525437" X-IronPort-AV: E=Sophos;i="6.24,235,1774335600"; d="scan'208";a="87525437" Received: from orviesa007.jf.intel.com ([10.64.159.147]) by orvoesa106.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2026 00:03:33 -0700 X-CSE-ConnectionGUID: BvDPmKdZTJGr/b3EIPoJtQ== X-CSE-MsgGUID: j2GvfW98RiaP1M39fQI/uQ== X-ExtLoop1: 1 X-IronPort-AV: E=Sophos;i="6.24,235,1774335600"; d="scan'208";a="252611478" Received: from dut1048pvc.igk.intel.com (HELO localhost) ([10.211.177.228]) by orviesa007-auth.jf.intel.com with ESMTP/TLS/ECDHE-RSA-AES256-GCM-SHA384; 01 Jul 2026 00:03:32 -0700 From: Stephan Rohr To: gdb-patches@sourceware.org Subject: [PATCH 0/1] gdb: disable pagination during inferior creation Date: Wed, 1 Jul 2026 07:03:23 +0000 Message-ID: <20260701070324.36461-1-stephan.rohr@intel.com> X-Mailer: git-send-email 2.43.0 MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit X-BeenThere: gdb-patches@sourceware.org X-Mailman-Version: 2.1.30 Precedence: list List-Id: Gdb-patches mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: gdb-patches-bounces~public-inbox=simark.ca@sourceware.org From: "Rohr, Stephan" Hello all, I came accross a bug that triggered an assertion if adding a new inferior causes pagintion and I hit 'quit' instead of 'Return' or 'continue'. A minimal reproducer is (gdb) set width 10 (gdb) set height 1 (gdb) add-inferior -exec Send quit when prompted for pagination. A subsequent command that switches inferiors, e.g., 'info inferiors', hits an assertion as the inferior's pspace is not initialized. Fix this by temporarily disabling pagination when setting up a new inferior. I appreciate your feedback. Thanks Stephan Rohr, Stephan (1): gdb: disable pagination during inferior creation gdb/inferior.c | 7 ++ gdb/remote.c | 6 ++ .../gdb.base/add-inferior-paginate.exp | 67 +++++++++++++++++++ 3 files changed, 80 insertions(+) create mode 100644 gdb/testsuite/gdb.base/add-inferior-paginate.exp -- 2.43.0 Intel Deutschland GmbH Registered Address: Dornacher Strasse 1, 85622 Feldkirchen, Germany Tel: +49 89 991 430, www.intel.de Managing Directors: Harry Demas, Jeffrey Schneiderman, Yin Chong Sorrell Chairperson of the Supervisory Board: Nicole Lau Registered Seat: Munich Commercial Register: Amtsgericht Muenchen HRB 186928