From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: from mail-il1-x12b.google.com (mail-il1-x12b.google.com [IPv6:2607:f8b0:4864:20::12b]) by sourceware.org (Postfix) with ESMTPS id 5FD653858413 for ; Thu, 28 Sep 2023 17:46:42 +0000 (GMT) DMARC-Filter: OpenDMARC Filter v1.4.2 sourceware.org 5FD653858413 Authentication-Results: sourceware.org; dmarc=pass (p=none dis=none) header.from=adacore.com Authentication-Results: sourceware.org; spf=pass smtp.mailfrom=adacore.com Received: by mail-il1-x12b.google.com with SMTP id e9e14a558f8ab-3511d2f6130so37044955ab.1 for ; Thu, 28 Sep 2023 10:46:42 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=adacore.com; s=google; t=1695923201; x=1696528001; darn=gcc.gnu.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=Wkx5TAFMXgHmrNT4Ym/GBEV6jN5nNGT4eiyT0cvi1pA=; b=VF/YIHJVdHW+9L/66GBsLlMio3uxzSHrN+QDAJ4+xeTlAzJ6UffMa2IBYcz2y2+8YM HT7+193UmDCwPitZgDosz9t9r0H4RBw+d4rrVtb4LV5XZSPqgYg0ypJ2vHyP7MjD8TJF cunvENbXYdSWc8pWh5nAVDJTh5rTXpG0v3r6PGBgsGDi7u8I1TYmAk9wlkys0VUpaP34 tjcLbsMc8z8l16rE8FLAL6zKnIquaCM6C+M09XN6fcCECvYonURSi1HqVmdomovxh3gE syMsVLElJ3MCRPYohODh2Egs18dfn8gNOQdm4ltvb8talTDENE97pyYHT44a5W9OVbzc kZRg== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1695923201; x=1696528001; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=Wkx5TAFMXgHmrNT4Ym/GBEV6jN5nNGT4eiyT0cvi1pA=; b=Og5q3k+VO0Cf4jaIZQHX+6q1pN2fozgt80qy+MkF7xQJ2ge2S2QXpzVlHbSOjvg7fC Zwx0fMypsZhkpxcoksjfZMkGM46aqaVJfdGOH0YbrdA3aHNWDfZa+SYOpRo5XaJcH0fr zPQjgnT7bFsmJ7p651nFzs0jNIVANnUB/G1Ug79TRtGvGsIhRALkHZbwimVme7ZjqfMl fMOyUk9n1c6cZrVoOcvMbUSAqVZ6PUGe3oukyHTbi9l4b78lPRncsGbCAWySMPJDbJkB lzE3NqE7YaiLxMiUCXdnhx1Z69Yv6fZSA5hC5bNtAZoC4PiAJAjj+7N+XioI77dSJmVR 45Nw== X-Gm-Message-State: AOJu0Ywg1SJ5+4uN7vqmL8STR01TCocnGXy40snjWh0rpprEF868IqWu ke7cyeMmhPM2D5eFxL7h2Coajg== X-Google-Smtp-Source: AGHT+IEB+zgFr8Utixb/khqaCAz2TyTZzhPKLMtNOMU3jv/wbETi2py6O7tnut+5q2Gd/GVxheVx0g== X-Received: by 2002:a05:6e02:1112:b0:351:80c:bc29 with SMTP id u18-20020a056e02111200b00351080cbc29mr1740324ilk.17.1695923201626; Thu, 28 Sep 2023 10:46:41 -0700 (PDT) Received: from localhost.localdomain (71-211-130-31.hlrn.qwest.net. [71.211.130.31]) by smtp.gmail.com with ESMTPSA id p6-20020a92d486000000b0034fc8c1c24fsm3450963ilg.54.2023.09.28.10.46.40 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 28 Sep 2023 10:46:41 -0700 (PDT) From: Tom Tromey To: gcc-patches@gcc.gnu.org Cc: libstdc++@gcc.gnu.org, Tom Tromey Subject: [PATCH 1/7] libstdc++: Show full Python stack on error Date: Thu, 28 Sep 2023 11:46:24 -0600 Message-Id: <20230928174630.4004388-2-tromey@adacore.com> X-Mailer: git-send-email 2.40.1 In-Reply-To: <20230928174630.4004388-1-tromey@adacore.com> References: <20230928174630.4004388-1-tromey@adacore.com> MIME-Version: 1.0 Content-Transfer-Encoding: 8bit X-Spam-Status: No, score=-11.5 required=5.0 tests=BAYES_00,DKIM_SIGNED,DKIM_VALID,DKIM_VALID_AU,DKIM_VALID_EF,GIT_PATCH_0,RCVD_IN_DNSWL_NONE,SPF_HELO_NONE,SPF_PASS,TXREP autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on server2.sourceware.org List-Id: This changes the libstdc++ test suite to arrange for gdb to show the full Python stack if any sort of Python exception occurs. This makes debugging the printers a little simpler. libstdc++-v3/ChangeLog: * testsuite/lib/gdb-test.exp (gdb-test): Enable Python stack traces from gdb. --- libstdc++-v3/testsuite/lib/gdb-test.exp | 2 ++ 1 file changed, 2 insertions(+) diff --git a/libstdc++-v3/testsuite/lib/gdb-test.exp b/libstdc++-v3/testsuite/lib/gdb-test.exp index d8e572ef7b3..af7d970d388 100644 --- a/libstdc++-v3/testsuite/lib/gdb-test.exp +++ b/libstdc++-v3/testsuite/lib/gdb-test.exp @@ -141,6 +141,8 @@ proc gdb-test { marker {selector {}} {load_xmethods 0} } { puts $fd "set auto-load no" # Now that we've disabled auto-load, it's safe to set the target file puts $fd "file ./$output_file" + # See the full backtrace of any failures. + puts $fd "set python print-stack full" # Load & register *our* copy of the pretty-printers puts $fd "source $printer_code" puts $fd "python register_libstdcxx_printers(None)" -- 2.40.1