From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: by sourceware.org (Postfix, from userid 2126) id F3F2C3858402; Thu, 28 Sep 2023 20:56:27 +0000 (GMT) DKIM-Filter: OpenDKIM Filter v2.11.0 sourceware.org F3F2C3858402 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gcc.gnu.org; s=default; t=1695934588; bh=nzMGiZ4f+0Ccbfc8+F2v1uSr865VeXN353Th72Mfo78=; h=From:To:Subject:Date:From; b=ckL5guaWcfrP5OhUm6gyFUVIImfAa4452rgt9AX0VCyvy4ZOBFiotB+BhY7RPYO5y Xh6i5x4LEgPOvU6x/pqC4K+l+SeANhrVw34bEV8phP/8bDXzsWNQn363RJp267NC3n /17NivfWLUOA6w2N4/8/BpI1WxF2eEK8/J5FlFVI= MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Type: text/plain; charset="utf-8" From: Tom Tromey To: gcc-cvs@gcc.gnu.org, libstdc++-cvs@gcc.gnu.org Subject: [gcc r14-4318] libstdc++: Show full Python stack on error X-Act-Checkin: gcc X-Git-Author: Tom Tromey X-Git-Refname: refs/heads/master X-Git-Oldrev: 17d3477fa89466604bee5af2a2caf8de5441aeb5 X-Git-Newrev: 98db58eb0b8e78708af0770bac1053fa4fcbc5f4 Message-Id: <20230928205627.F3F2C3858402@sourceware.org> Date: Thu, 28 Sep 2023 20:56:27 +0000 (GMT) List-Id: https://gcc.gnu.org/g:98db58eb0b8e78708af0770bac1053fa4fcbc5f4 commit r14-4318-g98db58eb0b8e78708af0770bac1053fa4fcbc5f4 Author: Tom Tromey Date: Wed Sep 27 13:49:59 2023 -0600 libstdc++: Show full Python stack on error 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. Diff: --- 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)"