2009-12-03 Tristan Gingold <gingold@adacore.com>

* machoread.c (macho_symfile_read): Use symbol_file_add_separate
	to add dsym files.
This commit is contained in:
Tristan Gingold 2009-12-09 14:53:25 +00:00
parent 9cce227f8c
commit 2480cfa040
2 changed files with 8 additions and 3 deletions

View File

@ -1,3 +1,8 @@
2009-12-03 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_symfile_read): Use symbol_file_add_separate
to add dsym files.
2009-12-09 Tristan Gingold <gingold@adacore.com>
* symfile.h (symbol_file_add_separate): New prototype.

View File

@ -641,11 +641,11 @@ macho_symfile_read (struct objfile *objfile, int symfile_flags)
VEC_free (oso_el, oso_vector);
oso_vector = NULL;
/* Now recurse: read dwarf from dsym. */
symbol_file_add_from_bfd (dsym_bfd, 0, NULL, 0);
/* Add the dsym file as a separate file. */
symbol_file_add_separate (dsym_bfd, symfile_flags, objfile);
/* Don't try to read dwarf2 from main file or shared libraries. */
return;
return;
}
}