mirror of
https://github.com/espressif/binutils-gdb.git
synced 2025-08-06 06:45:56 +08:00
* defs.h (enum language): Add language_java.
* java-exp.y, java-lang.c, java-lang.h, java-valprint.c: New files. * Makefile.in: Upadte for new files. * objfiles.c (allocate_objfile): Allow NULL bfd argument. * symfile.c (deduce_language_from_filename): Recognize .java.
This commit is contained in:
@ -130,6 +130,7 @@ allocate_objfile (abfd, mapped)
|
||||
mapped |= mapped_symbol_files;
|
||||
|
||||
#if !defined(NO_MMALLOC) && defined(HAVE_MMAP)
|
||||
if (abfd != NULL)
|
||||
{
|
||||
|
||||
/* If we can support mapped symbol files, try to open/reopen the
|
||||
@ -254,15 +255,18 @@ allocate_objfile (abfd, mapped)
|
||||
{
|
||||
mfree (objfile -> md, objfile -> name);
|
||||
}
|
||||
objfile -> name = mstrsave (objfile -> md, bfd_get_filename (abfd));
|
||||
objfile -> mtime = bfd_get_mtime (abfd);
|
||||
|
||||
/* Build section table. */
|
||||
|
||||
if (build_objfile_section_table (objfile))
|
||||
if (abfd != NULL)
|
||||
{
|
||||
error ("Can't find the file sections in `%s': %s",
|
||||
objfile -> name, bfd_errmsg (bfd_get_error ()));
|
||||
objfile -> name = mstrsave (objfile -> md, bfd_get_filename (abfd));
|
||||
objfile -> mtime = bfd_get_mtime (abfd);
|
||||
|
||||
/* Build section table. */
|
||||
|
||||
if (build_objfile_section_table (objfile))
|
||||
{
|
||||
error ("Can't find the file sections in `%s': %s",
|
||||
objfile -> name, bfd_errmsg (bfd_get_error ()));
|
||||
}
|
||||
}
|
||||
|
||||
/* Add this file onto the tail of the linked list of other such files. */
|
||||
|
Reference in New Issue
Block a user