gdb_test "python gdb.write(\"Normal stream\\n\", stream=gdb.STDOUT)" "Normal stream" "Test stdout write"
gdb_test "python gdb.write(\"Log stream\\n\", stream=gdb.STDLOG)" "Log stream" "Test stdlog write"
-# print-stack
-gdb_test "show python print-stack" \
- "The mode of Python stack printing on error is \"message\".*" \
- "Test print-backtrace show setting. Default is message."
+# Turn on full stack printing for subsequent tests.
gdb_py_test_silent_cmd "set python print-stack full" \
- "Test print-backtrace set setting" 1
-gdb_test "show python print-stack" \
- "The mode of Python stack printing on error is \"full\".*" \
- "Test print-backtrace show setting to full."
+ "Set print-stack full for prompt tests" 1
# Test prompt substituion
# print-stack settings
gdb_test "show python print-stack" \
"The mode of Python stack printing on error is \"message\".*" \
- "Test print-backtrace show setting. Default is message."
+ "Test print-stack show setting. Default is message."
gdb_py_test_silent_cmd "set python print-stack full" \
- "Test print-backtrace set setting" 1
+ "Test print-stack set setting to full" 1
gdb_test "show python print-stack" \
"The mode of Python stack printing on error is \"full\".*" \
- "Test print-backtrace show setting to full."
+ "Test print-stack show setting to full"
gdb_py_test_silent_cmd "set python print-stack none" \
- "Test print-backtrace set setting" 1
+ "Test print-stack set setting to none" 1
gdb_test "show python print-stack" \
"The mode of Python stack printing on error is \"none\".*" \
- "Test print-backtrace show setting to none."
+ "Test print-stack show setting to none"
gdb_py_test_silent_cmd "set python print-stack message" \
- "Test print-backtrace set setting" 1
+ "Test print-stack set setting to message" 1
gdb_py_test_multiple "prompt substitution readline" \
"python" "" \
"set the hook to default" 1
gdb_py_test_silent_cmd "set python print-stack full" \
- "Test print-backtrace set setting" 1
+ "set print-stack full for prompt error test" 1
gdb_test_multiple "python gdb.prompt_hook = error_prompt" "set the hook" {
-re "Traceback.*File.*line.*RuntimeError.*Python exception called.*" {