diff options
Diffstat (limited to 'gdb/objfiles.c')
-rw-r--r-- | gdb/objfiles.c | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/gdb/objfiles.c b/gdb/objfiles.c index a10540a..d1f3121 100644 --- a/gdb/objfiles.c +++ b/gdb/objfiles.c @@ -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, |