aboutsummaryrefslogtreecommitdiff
path: root/gdb
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2009-12-09 14:53:25 +0000
committerTristan Gingold <gingold@adacore.com>2009-12-09 14:53:25 +0000
commit2480cfa0400ce5cc1d7fe3d811e8e3288c22f78f (patch)
treefd80326a571834d5e06546807649653b4140ecb5 /gdb
parent9cce227f8cd3081662b208e0067b23547afa5a83 (diff)
downloadgdb-2480cfa0400ce5cc1d7fe3d811e8e3288c22f78f.zip
gdb-2480cfa0400ce5cc1d7fe3d811e8e3288c22f78f.tar.gz
gdb-2480cfa0400ce5cc1d7fe3d811e8e3288c22f78f.tar.bz2
2009-12-03 Tristan Gingold <gingold@adacore.com>
* machoread.c (macho_symfile_read): Use symbol_file_add_separate to add dsym files.
Diffstat (limited to 'gdb')
-rw-r--r--gdb/ChangeLog5
-rw-r--r--gdb/machoread.c6
2 files changed, 8 insertions, 3 deletions
diff --git a/gdb/ChangeLog b/gdb/ChangeLog
index e1c1e09..f2f4f83 100644
--- a/gdb/ChangeLog
+++ b/gdb/ChangeLog
@@ -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.
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;
}
}