mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-06-04 05:48:20 +08:00
* 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.
This commit is contained in:
@ -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()" "\\\[\\\]"
|
||||
|
||||
|
Reference in New Issue
Block a user