This is the mail archive of the
gdb-patches@sourceware.org
mailing list for the GDB project.
[RFC] Darwin: Handle dsym files as separate debug files
- From: Tristan Gingold <gingold at adacore dot com>
- To: gdb-patches at sourceware dot org
- Date: Fri, 4 Dec 2009 13:50:55 +0100
- Subject: [RFC] Darwin: Handle dsym files as separate debug files
Hi,
aim of this patch serie: makes Darwin handle dsym files like elf handles
separate debug file. This fix re-reads for dsym files.
Tristan.
2009-12-03 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_symfile_read): Use symbol_file_add_separate
to add dsym files.
---
gdb/machoread.c | 6 +++---
1 files changed, 3 insertions(+), 3 deletions(-)
diff --git a/gdb/machoread.c b/gdb/machoread.c
index 5763cef..d7d53bb 100644
--- a/gdb/machoread.c
+++ b/gdb/machoread.c
@@ -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;
}
}
--
1.6.2