Index: gdb/testsuite/gdb.python/py-mi.exp |
diff --git a/gdb/testsuite/gdb.python/py-mi.exp b/gdb/testsuite/gdb.python/py-mi.exp |
index 8d54a8d58425c685e327e756889f44a6ec9a4ca9..e7034a1517a6d2fd1b57c6cab37dc99698dc3239 100644 |
--- a/gdb/testsuite/gdb.python/py-mi.exp |
+++ b/gdb/testsuite/gdb.python/py-mi.exp |
@@ -24,9 +24,7 @@ if [mi_gdb_start] { |
continue |
} |
-set testfile "py-mi" |
-set srcfile py-prettyprint.c |
-set binfile ${objdir}/${subdir}/${testfile} |
+standard_testfile py-prettyprint.c |
set pyfile py-prettyprint.py |
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}" executable {debug additional_flags=-DMI}] != "" } { |
untested ${testfile}.exp |
@@ -291,6 +289,10 @@ mi_gdb_test "-var-evaluate-expression me" \ |
"\\^done,value=\"<error reading variable: Cannot access memory.>.*\"" \ |
"evaluate me varobj" |
+# Regression test for python/14836. |
+mi_create_dynamic_varobj children_as_list children_as_list \ |
+ "printer whose children are returned as a list" |
+ |
# C++ MI tests |
gdb_exit |
if { [gdb_compile "${srcdir}/${subdir}/${srcfile}" "${binfile}-cxx" \ |