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/python/py-auto-load.c | |
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/python/py-auto-load.c')
-rw-r--r-- | gdb/python/py-auto-load.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/gdb/python/py-auto-load.c b/gdb/python/py-auto-load.c index 75fa041..2a17ed0 100644 --- a/gdb/python/py-auto-load.c +++ b/gdb/python/py-auto-load.c @@ -312,7 +312,7 @@ Use `info auto-load-scripts [REGEXP]' to list them."), { /* If this file is not currently loaded, load it. */ if (! in_hash_table) - source_python_script_for_objfile (objfile, stream, file); + source_python_script_for_objfile (objfile, full_path); fclose (stream); free (full_path); } @@ -431,7 +431,7 @@ auto_load_objfile_script (struct objfile *objfile, const char *suffix) It's highly unlikely that we'd ever load it twice, and these scripts are required to be idempotent under multiple loads anyway. */ - source_python_script_for_objfile (objfile, input, debugfile); + source_python_script_for_objfile (objfile, debugfile); fclose (input); } |