2009-12-03 Tristan Gingold <gingold@adacore.com>
authorTristan Gingold <gingold@adacore.com>
Wed, 9 Dec 2009 14:53:25 +0000 (14:53 +0000)
committerTristan Gingold <gingold@adacore.com>
Wed, 9 Dec 2009 14:53:25 +0000 (14:53 +0000)
* machoread.c (macho_symfile_read): Use symbol_file_add_separate
to add dsym files.

gdb/ChangeLog
gdb/machoread.c

index e1c1e093d30697eb2bad9c650efb2d64d81d6204..f2f4f83916d4c4e9efaaf9027a60fe3c764d0489 100644 (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.
index 5763cef06cf9376c4cd64cefc995f8686a81ea2c..d7d53bb92434d0d26a79840104864c9830de6bb4 100644 (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;
        }
     }