aboutsummaryrefslogtreecommitdiff
path: root/gdb/auto-load.c
diff options
context:
space:
mode:
authorJan Kratochvil <jan.kratochvil@redhat.com>2013-10-09 13:22:36 +0000
committerJan Kratochvil <jan.kratochvil@redhat.com>2013-10-09 13:22:36 +0000
commit40135bb14bb9d40c0ae29cc17c8632b81ee145ed (patch)
treeedb761b37cb3d820b22695159d88e31768d01dff /gdb/auto-load.c
parent86879d8871ccd9ffae0011c9288667e4c7ba1ed9 (diff)
downloadgdb-40135bb14bb9d40c0ae29cc17c8632b81ee145ed.zip
gdb-40135bb14bb9d40c0ae29cc17c8632b81ee145ed.tar.gz
gdb-40135bb14bb9d40c0ae29cc17c8632b81ee145ed.tar.bz2
New flag OBJF_NOT_FILENAME
gdb/ 2013-10-09 Jan Kratochvil <jan.kratochvil@redhat.com> New flag OBJF_NOT_FILENAME. * auto-load.c (auto_load_objfile_script): Check also OBJF_NOT_FILENAME. * jit.c (jit_object_close_impl): Use OBJF_NOT_FILENAME for allocate_objfile. (jit_bfd_try_read_symtab): Use OBJF_NOT_FILENAME for symbol_file_add_from_bfd. * jv-lang.c (get_dynamics_objfile): Use OBJF_NOT_FILENAME for allocate_objfile. * objfiles.c (allocate_objfile): Assert OBJF_NOT_FILENAME if NAME is NULL. * objfiles.h (OBJF_NOT_FILENAME): New.
Diffstat (limited to 'gdb/auto-load.c')
-rw-r--r--gdb/auto-load.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/gdb/auto-load.c b/gdb/auto-load.c
index 6d0d6d9..4eb7cdd 100644
--- a/gdb/auto-load.c
+++ b/gdb/auto-load.c
@@ -840,7 +840,7 @@ auto_load_objfile_script (struct objfile *objfile,
void
load_auto_scripts_for_objfile (struct objfile *objfile)
{
- if (!global_auto_load)
+ if (!global_auto_load || (objfile->flags & OBJF_NOT_FILENAME) != 0)
return;
if (auto_load_gdb_scripts)