mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-02 02:35:00 +08:00
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.
This commit is contained in:
@ -289,6 +289,7 @@ allocate_objfile (bfd *abfd, const char *name, int flags)
|
||||
if (name == NULL)
|
||||
{
|
||||
gdb_assert (abfd == NULL);
|
||||
gdb_assert ((flags & OBJF_NOT_FILENAME) != 0);
|
||||
name = "<<anonymous objfile>>";
|
||||
}
|
||||
objfile->original_name = obstack_copy0 (&objfile->objfile_obstack, name,
|
||||
|
Reference in New Issue
Block a user