diff options
author | Doug Evans <dje@google.com> | 2010-04-23 18:09:16 +0000 |
---|---|---|
committer | Doug Evans <dje@google.com> | 2010-04-23 18:09:16 +0000 |
commit | 88a1906b0da33e2905cce61e133b67cdde314847 (patch) | |
tree | 8aad3a1bd84d470955e81b5eb1c79efc3ff1f7dd /gdb/configure | |
parent | 66d0954266e5613064244015f3963ea617463ecf (diff) | |
download | fsf-binutils-gdb-88a1906b0da33e2905cce61e133b67cdde314847.zip fsf-binutils-gdb-88a1906b0da33e2905cce61e133b67cdde314847.tar.gz fsf-binutils-gdb-88a1906b0da33e2905cce61e133b67cdde314847.tar.bz2 |
* 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/configure')
-rwxr-xr-x | gdb/configure | 7 |
1 files changed, 4 insertions, 3 deletions
diff --git a/gdb/configure b/gdb/configure index 0f3d7e6..301394f 100755 --- a/gdb/configure +++ b/gdb/configure @@ -9648,9 +9648,10 @@ $as_echo "${PYTHON_CFLAGS}" >&6; } fi else # Even if Python support is not compiled in, we need to have these files - # included in order to recognize the GDB command "python". - CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o" - CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c python/py-prettyprint.c" + # included. + CONFIG_OBS="$CONFIG_OBS python.o py-value.o py-prettyprint.o py-auto-load.o" + CONFIG_SRCS="$CONFIG_SRCS python/python.c python/py-value.c \ + python/py-prettyprint.c python/py-auto-load.c" fi |