diff options
author | Doug Evans <dje@google.com> | 2011-10-27 15:46:11 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2011-10-27 15:46:11 +0000 |
commit | d234ef5c0cca9ae4737cfcd833555db14dc0ead0 (patch) | |
tree | bf0ed9a7ba656b0baae5d48d400f04007b890da3 /gdb/testsuite | |
parent | a08fc94222d1b5be7ecbf52d4d41fa6da1d71f18 (diff) | |
download | gdb-d234ef5c0cca9ae4737cfcd833555db14dc0ead0.zip gdb-d234ef5c0cca9ae4737cfcd833555db14dc0ead0.tar.gz gdb-d234ef5c0cca9ae4737cfcd833555db14dc0ead0.tar.bz2 |
* cli/cli-cmds.c (source_script_with_search): Pass full path to
source_script_from_stream if it may have been found on the search path.
* python/py-auto-load.c (source_section_scripts): Pass full path to
source_python_script_for_objfile.
* python/python.c (source_python_script): Delete stream parameter.
All callers updated.
(source_python_script_for_objfile): Ditto.
* python/python-internal.h (source_python_script_for_objfile): Update.
* python/python.h (source_python_script): Update.
testsuite/
* gdb.python/python.exp: Test source -s.
Diffstat (limited to 'gdb/testsuite')
-rw-r--r-- | gdb/testsuite/ChangeLog | 8 | ||||
-rw-r--r-- | gdb/testsuite/gdb.python/python.exp | 2 |
2 files changed, 8 insertions, 2 deletions
diff --git a/gdb/testsuite/ChangeLog b/gdb/testsuite/ChangeLog index 00d2161..5bb77c2 100644 --- a/gdb/testsuite/ChangeLog +++ b/gdb/testsuite/ChangeLog @@ -1,12 +1,16 @@ +2011-10-27 Doug Evans <dje@google.com> + + * gdb.python/python.exp: Test source -s. + 2011-10-26 Paul Koning <paul_koning@dell.com> * gdb.python/lib-types.cc (struct A): New structure. * gdb.python/lib-types.exp (deepitems): New tests. - + 2011-10-25 Paul Koning <paul_koning@dell.com> PR python/13327 - + * gdb.python/py-value.exp: Add testcases for is_lazy attribute, fetch_lazy method. diff --git a/gdb/testsuite/gdb.python/python.exp b/gdb/testsuite/gdb.python/python.exp index ea8a4d5..94d6d0d 100644 --- a/gdb/testsuite/gdb.python/python.exp +++ b/gdb/testsuite/gdb.python/python.exp @@ -77,6 +77,8 @@ gdb_py_test_multiple "indented multi-line python command" \ gdb_test "source $srcdir/$subdir/source2.py" "yes" "source source2.py" +gdb_test "source -s source2.py" "yes" "source -s source2.py" + gdb_test "python print gdb.current_objfile()" "None" gdb_test "python print gdb.objfiles()" "\\\[\\\]" |