summaryrefslogtreecommitdiff
path: root/gdb/python/python.h
diff options
context:
space:
mode:
authorDoug Evans <dje@google.com>2010-04-23 18:09:16 +0000
committerDoug Evans <dje@google.com>2010-04-23 18:09:16 +0000
commit88a1906b0da33e2905cce61e133b67cdde314847 (patch)
tree8aad3a1bd84d470955e81b5eb1c79efc3ff1f7dd /gdb/python/python.h
parent66d0954266e5613064244015f3963ea617463ecf (diff)
* configure.ac (CONFIG_SRCS): Add py-auto-load.o even if not using
python. * configure: Regenerate. * main.c: #include "python/python.h". (captured_main): Defer loading auto-loaded scripts until after local_gdbinit has been sourced. * python/py-auto-load.c (gdbpy_global_auto_load): New global. (load_auto_scripts_for_objfile): New function. (auto_load_new_objfile): Call it. * python/python.h (gdbpy_global_auto_load): Declare. (load_auto_scripts_for_objfile): Declare.
Diffstat (limited to 'gdb/python/python.h')
-rw-r--r--gdb/python/python.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gdb/python/python.h b/gdb/python/python.h
index b2a96314c4..ae808c0c82 100644
--- a/gdb/python/python.h
+++ b/gdb/python/python.h
@@ -22,6 +22,8 @@
#include "value.h"
+extern int gdbpy_global_auto_load;
+
void eval_python_from_control_command (struct command_line *);
void source_python_script (FILE *stream, const char *file);
@@ -34,4 +36,6 @@ int apply_val_pretty_printer (struct type *type, const gdb_byte *valaddr,
void preserve_python_values (struct objfile *objfile, htab_t copied_types);
+void load_auto_scripts_for_objfile (struct objfile *objfile);
+
#endif /* GDB_PYTHON_H */