aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorDoug Evans <xdje42@gmail.com>2014-03-22 02:44:39 -0400
committerDoug Evans <xdje42@gmail.com>2014-03-22 02:44:39 -0400
commitfeef67abfaf328082c445b9d25696d44551478d1 (patch)
treea5e609759679711611a336ac269232e5e2b13023 /gdb/testsuite
parentecebef6a9acbca2f98e1ed64b986d792c6933ec5 (diff)
downloadgdb-feef67abfaf328082c445b9d25696d44551478d1.zip
gdb-feef67abfaf328082c445b9d25696d44551478d1.tar.gz
gdb-feef67abfaf328082c445b9d25696d44551478d1.tar.bz2
* 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.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.python/python.exp7
2 files changed, 12 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index aad07fd..f1f0679 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2014-03-22 Doug Evans <xdje42@gmail.com>
+
+ * gdb.python/python.exp (python not supported): Verify multi-line
+ python command issues an error.
+
2014-03-21 Maciej W. Rozycki <macro@codesourcery.com>
* gdb.threads/thread-specific.exp: Handle the lack of usable
diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp
index a470427..5b8d34a 100644
--- a/gdb/testsuite/gdb.python/python.exp
+++ b/gdb/testsuite/gdb.python/python.exp
@@ -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 $" {}