diff options
author | Tom Tromey <tromey@adacore.com> | 2023-09-27 13:49:59 -0600 |
---|---|---|
committer | Tom Tromey <tromey@adacore.com> | 2023-09-28 14:55:18 -0600 |
commit | 98db58eb0b8e78708af0770bac1053fa4fcbc5f4 (patch) | |
tree | 73f2ff70310068c38751fd3f4ee56c41ee4f178b /libstdc++-v3/testsuite/lib | |
parent | 17d3477fa89466604bee5af2a2caf8de5441aeb5 (diff) | |
download | gcc-98db58eb0b8e78708af0770bac1053fa4fcbc5f4.zip gcc-98db58eb0b8e78708af0770bac1053fa4fcbc5f4.tar.gz gcc-98db58eb0b8e78708af0770bac1053fa4fcbc5f4.tar.bz2 |
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.
Diffstat (limited to 'libstdc++-v3/testsuite/lib')
-rw-r--r-- | libstdc++-v3/testsuite/lib/gdb-test.exp | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/libstdc++-v3/testsuite/lib/gdb-test.exp b/libstdc++-v3/testsuite/lib/gdb-test.exp index d8e572e..af7d970 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)" |