aboutsummaryrefslogtreecommitdiff
path: root/gdb/jit.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/jit.c
parentbfd/ChangeLog (diff)
downloadbinutils-gdb-40135bb14bb9d40c0ae29cc17c8632b81ee145ed.tar.gz
binutils-gdb-40135bb14bb9d40c0ae29cc17c8632b81ee145ed.tar.bz2
binutils-gdb-40135bb14bb9d40c0ae29cc17c8632b81ee145ed.zip
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/jit.c')
-rw-r--r--gdb/jit.c5
1 files changed, 3 insertions, 2 deletions
diff --git a/gdb/jit.c b/gdb/jit.c
index c7edd4a3273..ba0be5e440e 100644
--- a/gdb/jit.c
+++ b/gdb/jit.c
@@ -785,7 +785,8 @@ jit_object_close_impl (struct gdb_symbol_callbacks *cb,
priv_data = cb->priv_data;
- objfile = allocate_objfile (NULL, "<< JIT compiled code >>", 0);
+ objfile = allocate_objfile (NULL, "<< JIT compiled code >>",
+ OBJF_NOT_FILENAME);
objfile->per_bfd->gdbarch = target_gdbarch ();
terminate_minimal_symbol_table (objfile);
@@ -926,7 +927,7 @@ JITed symbol file is not an object file, ignoring it.\n"));
/* This call does not take ownership of SAI. */
make_cleanup_bfd_unref (nbfd);
objfile = symbol_file_add_from_bfd (nbfd, bfd_get_filename (nbfd), 0, sai,
- OBJF_SHARED, NULL);
+ OBJF_SHARED | OBJF_NOT_FILENAME, NULL);
do_cleanups (old_cleanups);
add_objfile_entry (objfile, entry_addr);