summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorTristan Gingold <gingold@adacore.com>2008-08-28 16:05:03 +0000
committerTristan Gingold <gingold@adacore.com>2008-08-28 16:05:03 +0000
commit6dedc61574b2855375ef8eeedc9780dbf338cdb6 (patch)
tree81921896d12e720ae9c9dea0dd7514c7da0947b0
parent76c9aa4a92046ac2504e7b570a2b4da3ae2c2edb (diff)
downloadbinutils-redhat-6dedc61574b2855375ef8eeedc9780dbf338cdb6.tar.gz
2008-08-28 Tristan Gingold <gingold@adacore.com>
* objdump.c (dump_stabs): Add sections for Darwin.
-rw-r--r--binutils/ChangeLog4
-rw-r--r--binutils/objdump.c4
2 files changed, 8 insertions, 0 deletions
diff --git a/binutils/ChangeLog b/binutils/ChangeLog
index ff79e20e77..525dbe2287 100644
--- a/binutils/ChangeLog
+++ b/binutils/ChangeLog
@@ -1,3 +1,7 @@
+2008-08-28 Tristan Gingold <gingold@adacore.com>
+
+ * objdump.c (dump_stabs): Add sections for Darwin.
+
2008-08-25 Alan Modra <amodra@bigpond.net.au>
* sysdep.h: Include "binary-io.h".
diff --git a/binutils/objdump.c b/binutils/objdump.c
index d4c32c03a2..5fad8ddcce 100644
--- a/binutils/objdump.c
+++ b/binutils/objdump.c
@@ -2474,6 +2474,10 @@ dump_stabs (bfd *abfd)
dump_stabs_section (abfd, ".stab", ".stabstr");
dump_stabs_section (abfd, ".stab.excl", ".stab.exclstr");
dump_stabs_section (abfd, ".stab.index", ".stab.indexstr");
+
+ /* For Darwin. */
+ dump_stabs_section (abfd, "LC_SYMTAB.stabs", "LC_SYMTAB.stabstr");
+
dump_stabs_section (abfd, "$GDB_SYMBOLS$", "$GDB_STRINGS$");
}