diff options
author | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-09-22 19:59:15 +0000 |
---|---|---|
committer | Jan Kratochvil <jan.kratochvil@redhat.com> | 2010-09-22 19:59:15 +0000 |
commit | 7f6130ff859e3676d0d27a3db5a42c0233dd93ec (patch) | |
tree | 2da3440e0fc18212d123e7ec51f1a6b51e251cf8 | |
parent | c2b0a2291a7d54a96c2f7a7b17b917902f5b64e0 (diff) | |
download | binutils-7f6130ff859e3676d0d27a3db5a42c0233dd93ec.zip binutils-7f6130ff859e3676d0d27a3db5a42c0233dd93ec.tar.gz binutils-7f6130ff859e3676d0d27a3db5a42c0233dd93ec.tar.bz2 |
gdb/
* main.c: Include objfiles.h.
(captured_main): New variable objfile. Call
load_auto_scripts_for_objfile for ALL_OBJFILES.
-rw-r--r-- | gdb/ChangeLog | 6 | ||||
-rw-r--r-- | gdb/main.c | 6 |
2 files changed, 10 insertions, 2 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog index d19c709..8505e8b 100644 --- a/gdb/ChangeLog +++ b/gdb/ChangeLog @@ -1,5 +1,11 @@ 2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com> + * main.c: Include objfiles.h. + (captured_main): New variable objfile. Call + load_auto_scripts_for_objfile for ALL_OBJFILES. + +2010-09-22 Jan Kratochvil <jan.kratochvil@redhat.com> + * dwarf2read.c (die_needs_namespace) <DW_TAG_variable>: Add also DW_TAG_constant. @@ -42,6 +42,7 @@ #include "source.h" #include "cli/cli-cmds.h" #include "python/python.h" +#include "objfiles.h" /* The selected interpreter. This will be used as a set command variable, so it should always be malloc'ed - since @@ -290,6 +291,7 @@ captured_main (void *data) int i; int save_auto_load; + struct objfile *objfile; struct cleanup *pre_stat_chain = make_command_stats_cleanup (0); @@ -875,8 +877,8 @@ Can't attach to process and specify a core file at the same time.")); We wait until now because it is common to add to the source search path in local_gdbinit. */ gdbpy_global_auto_load = save_auto_load; - if (symfile_objfile != NULL) - load_auto_scripts_for_objfile (symfile_objfile); + ALL_OBJFILES (objfile) + load_auto_scripts_for_objfile (objfile); for (i = 0; i < ncmd; i++) { |