summaryrefslogtreecommitdiff
path: root/gdb/python/python.h
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2012-09-17 18:26:06 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2012-09-17 18:26:06 +0000
commit9a950c7c83c510ecf83511ac460b8c6afe4d37fb (patch)
treec37eb7fde6249da14779ca1abfd856b60c6fddf6 /gdb/python/python.h
parent5ec61378372b535bfadce78ffa5832623b2ac99c (diff)
gdb/
Implement auto-load user conveniences suggested by Doug Evans. * auto-load.c: Include top.h. (file_is_auto_load_safe): New variable advice_printed. Print advice. (_initialize_auto_load): New variable scripts_directory_help. Mention GDBPY_AUTO_FILE_NAME and GDB_AUTO_FILE_NAME for set auto-load scripts-directory. Document in online help one can use also files for set auto-load safe-path. * python/py-auto-load.c: (GDBPY_AUTO_FILE_NAME): Move it from here ... * python/python.h (GDBPY_AUTO_FILE_NAME): ... to here.
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 dd7066f322..0d072712af 100644
--- a/gdb/python/python.h
+++ b/gdb/python/python.h
@@ -24,6 +24,10 @@
struct breakpoint_object;
+/* The suffix of per-objfile scripts to auto-load.
+ E.g. When the program loads libfoo.so, look for libfoo-gdb.py. */
+#define GDBPY_AUTO_FILE_NAME "-gdb.py"
+
extern void finish_python_initialization (void);
void eval_python_from_control_command (struct command_line *);