aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorPhil Muldoon <pmuldoon@redhat.com>2011-07-11 13:07:38 +0000
committerPhil Muldoon <pmuldoon@redhat.com>2011-07-11 13:07:38 +0000
commit713389e0245333ded5b75dc90583570f8446f508 (patch)
treef2c78bad420b06a050fe66304b34efa0a93d3e8a /gdb/testsuite/gdb.python/py-function.exp
parent2011-07-11 Phil Muldoon <pmuldoon@redhat.com> (diff)
downloadbinutils-gdb-713389e0245333ded5b75dc90583570f8446f508.tar.gz
binutils-gdb-713389e0245333ded5b75dc90583570f8446f508.tar.bz2
binutils-gdb-713389e0245333ded5b75dc90583570f8446f508.zip
2011-07-11 Phil Muldoon <pmuldoon@redhat.com>
PR python/12438 * python/python.c: Set gdbpy_should_print_stack default to off. (set_python): Deprecate maint set python print-stack to class_deprecate. (_initialize_python): Deprecate maint set/show python print-stack. Add new prefix command, python. Add new setting, print-backtrace. * NEWS: Document set python print-stack. Document default change. 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> PR python/12438 * gdb.texinfo (Python Commands): Add deprecate note to maint set/show python print-stack. Document set/show python print-backtrace. 2011-07-11 Phil Muldoon <pmuldoon@redhat.com> PR python/12438 * gdb.python/python.exp: Add maint set/show python print-stack deprecated tests. Add set/show python print-backtrace tests.
Diffstat (limited to 'gdb/testsuite/gdb.python/py-function.exp')
-rw-r--r--gdb/testsuite/gdb.python/py-function.exp1
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/testsuite/gdb.python/py-function.exp b/gdb/testsuite/gdb.python/py-function.exp
index ffadb5b2423..d57943525af 100644
--- a/gdb/testsuite/gdb.python/py-function.exp
+++ b/gdb/testsuite/gdb.python/py-function.exp
@@ -93,6 +93,7 @@ gdb_py_test_multiple "Test Normal Error" \
"NormalError ()" "" \
"end" ""
+gdb_test_no_output "set python print-stack on"
gdb_test "print \$normalerror()" "Traceback.*File.*line 5.*in invoke.*RuntimeError.*This is a Normal Error.*" \
"Test a Runtime error. There should be a stack trace."