diff options
author | Tom Tromey <tromey@redhat.com> | 2010-06-25 18:15:18 +0000 |
---|---|---|
committer | Tom Tromey <tromey@redhat.com> | 2010-06-25 18:15:18 +0000 |
commit | bc9f0842f1f46aa754b20c5f2e12e2fa035041e3 (patch) | |
tree | 738e98334da63119066ee4dff2f1cf386a4e2df0 /gdb/testsuite/gdb.python | |
parent | 099ef718e3aaecb6668e206fd9110ab57ae5cc45 (diff) | |
download | gdb-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/gdb.python')
-rw-r--r-- | gdb/testsuite/gdb.python/python.exp | 4 |
1 files changed, 4 insertions, 0 deletions
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" |