aboutsummaryrefslogtreecommitdiff
path: root/gdb/python/python.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-01-26 21:54:45 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-01-26 21:54:45 +0000
commit4c63965b8a74d9dd3d8ed6fed659c4db977c6ddd (patch)
tree64cf919895461ab530db6372abd54e58e0250428 /gdb/python/python.h
parent88f38a04788e0a788dbc3159c87d4c96c867f681 (diff)
downloadgdb-4c63965b8a74d9dd3d8ed6fed659c4db977c6ddd.zip
gdb-4c63965b8a74d9dd3d8ed6fed659c4db977c6ddd.tar.gz
gdb-4c63965b8a74d9dd3d8ed6fed659c4db977c6ddd.tar.bz2
gdb/
Do not open script filenames twice. * cli/cli-cmds.c (source_script_from_stream): Pass to source_python_script also STREAM. * python/py-auto-load.c (source_section_scripts): Pass to source_python_script_for_objfile also STREAM. (auto_load_objfile_script): Pass to source_python_script_for_objfile also INPUT. * python/python-internal.h (source_python_script_for_objfile): New parameter file, rename parameter file to filename. * python/python.c (python_run_simple_file): Call PyRun_SimpleFile instead if !_WIN32. Update the function comment. (source_python_script, source_python_script_for_objfile) (source_python_script): New parameter file, rename parameter file to filename. Pass FILENAME to python_run_simple_file. * python/python.h (source_python_script): New parameter file, rename parameter file to filename.
Diffstat (limited to 'gdb/python/python.h')
-rw-r--r--gdb/python/python.h2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/python/python.h b/gdb/python/python.h
index 9e461f7..597ed2e 100644
--- a/gdb/python/python.h
+++ b/gdb/python/python.h
@@ -30,7 +30,7 @@ extern void finish_python_initialization (void);
void eval_python_from_control_command (struct command_line *);
-void source_python_script (const char *file);
+void source_python_script (FILE *file, const char *filename);
int apply_val_pretty_printer (struct type *type, const gdb_byte *valaddr,
int embedded_offset, CORE_ADDR address,