diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-09-17 18:26:00 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2012-09-17 18:26:00 +0000 |
commit | 86635be5fbe89ff6c300de47fac5a70bf01486c1 (patch) | |
tree | 48d6c788ccca20f5edff44d341ae66e644d8ac3e /gdb/python/py-auto-load.c | |
parent | fc6b4bec00d104312d76919b42721034c097c956 (diff) | |
download | gdb-86635be5fbe89ff6c300de47fac5a70bf01486c1.tar.gz |
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/py-auto-load.c')
-rw-r--r-- | gdb/python/py-auto-load.c | 4 |
1 files changed, 0 insertions, 4 deletions
diff --git a/gdb/python/py-auto-load.c b/gdb/python/py-auto-load.c index 8512129c707..a018f5fd68d 100644 --- a/gdb/python/py-auto-load.c +++ b/gdb/python/py-auto-load.c @@ -31,10 +31,6 @@ #include "python-internal.h" -/* 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" - /* The section to look for Python auto-loaded scripts (in file formats that support sections). Each entry in this section is a byte of value 1, and then the nul-terminated |