aboutsummaryrefslogtreecommitdiff
path: root/gdb/testsuite
diff options
context:
space:
mode:
authorTom Tromey <tromey@redhat.com>2010-06-25 18:15:18 +0000
committerTom Tromey <tromey@redhat.com>2010-06-25 18:15:18 +0000
commitbc9f0842f1f46aa754b20c5f2e12e2fa035041e3 (patch)
tree738e98334da63119066ee4dff2f1cf386a4e2df0 /gdb/testsuite
parent099ef718e3aaecb6668e206fd9110ab57ae5cc45 (diff)
downloadgdb-bc9f0842f1f46aa754b20c5f2e12e2fa035041e3.zip
gdb-bc9f0842f1f46aa754b20c5f2e12e2fa035041e3.tar.gz
gdb-bc9f0842f1f46aa754b20c5f2e12e2fa035041e3.tar.bz2
gdb
PR python/10808: * python/python.c (execute_gdb_command): Add keywords. Accept "to_string" argument. (struct restore_ui_file_closure): New. (restore_ui_file): New function. (make_cleanup_restore_ui_file): Likewise. (GdbMethods) <execute>: Update. gdb/doc PR python/10808: * gdb.texinfo (Basic Python): Document new gdb.execute argument. gdb/testsuite PR python/10808: * gdb.python/python.exp: Add new tests.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r--gdb/testsuite/ChangeLog5
-rw-r--r--gdb/testsuite/gdb.python/python.exp4
2 files changed, 9 insertions, 0 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog
index 7bfcec3..0fcea16 100644
--- a/gdb/testsuite/ChangeLog
+++ b/gdb/testsuite/ChangeLog
@@ -1,3 +1,8 @@
+2010-06-25 Tom Tromey <tromey@redhat.com>
+
+ PR python/10808:
+ * gdb.python/python.exp: Add new tests.
+
2010-06-25 Sami Wagiaalla <swagiaal@redhat.com>
* gdb.cp/operator.cc: Created an import loop.
diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp
index 185f45d..d0e6c63 100644
--- a/gdb/testsuite/gdb.python/python.exp
+++ b/gdb/testsuite/gdb.python/python.exp
@@ -83,3 +83,7 @@ gdb_test "python print gdb.objfiles()" "\\\[\\\]"
# Test http://bugs.python.org/issue4434 workaround in configure.ac
gdb_test "python import itertools; print 'IMPOR'+'TED'" "IMPORTED" "pythonX.Y/lib-dynload/*.so"
+
+gdb_test_no_output \
+ "python x = gdb.execute('printf \"%d\", 23', to_string = True)"
+gdb_test "python print x" "23"