* 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:
parent
a08fc94222
commit
d234ef5c0c
8 changed files with 44 additions and 25 deletions
|
@ -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);
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue