* extension.c (eval_ext_lang_from_control_command): Avoid dereferencing

NULL pointer.

	testsuite/
	* gdb.python/python.exp (python not supported): Verify multi-line
	python command issues an error.
This commit is contained in:
Doug Evans
2014-03-22 02:44:39 -04:00
parent ecebef6a9a
commit feef67abfa
4 changed files with 19 additions and 1 deletions

View File

@ -41,6 +41,13 @@ gdb_test_multiple "python print (23)" "verify python support" {
gdb_test "source $srcdir/$subdir/source2.py" \
"Error in sourced command file:.*" \
"source source2.py when python disabled"
# Verify multi-line python commands cause an error.
gdb_py_test_multiple "multi-line python command" \
"python" "" \
"print (23)" "" \
"end" "not supported.*"
return -1
}
-re "$gdb_prompt $" {}