public inbox for gcc-cvs@sourceware.org
help / color / mirror / Atom feed
* [gcc r14-4318] libstdc++: Show full Python stack on error
@ 2023-09-28 20:56 Tom Tromey
  0 siblings, 0 replies; only message in thread
From: Tom Tromey @ 2023-09-28 20:56 UTC (permalink / raw)
  To: gcc-cvs, libstdc++-cvs

https://gcc.gnu.org/g:98db58eb0b8e78708af0770bac1053fa4fcbc5f4

commit r14-4318-g98db58eb0b8e78708af0770bac1053fa4fcbc5f4
Author: Tom Tromey <tromey@adacore.com>
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)"

^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2023-09-28 20:56 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-09-28 20:56 [gcc r14-4318] libstdc++: Show full Python stack on error Tom Tromey

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).