* ldmain.c (main): Error if --gc-sections and
[deliverable/binutils-gdb.git] / binutils / rddbg.c
index d42d04863eda71df2a0af18501c852993368edd0..b2602af4c6e98dd30e8a08367d77da47deb3d24c 100644 (file)
@@ -54,8 +54,6 @@ read_debugging_info (abfd, syms, symcount)
   if (dhandle == NULL)
     return NULL;
 
-  /* All we know about right now is stabs.  */
-
   if (! read_section_stabs_debugging_info (abfd, syms, symcount, dhandle,
                                           &found))
     return NULL;
@@ -73,6 +71,17 @@ read_debugging_info (abfd, syms, symcount)
        return NULL;
     }
 
+  /* Try reading the COFF symbols if we didn't find any stabs in COFF
+     sections.  */
+  if (! found
+      && bfd_get_flavour (abfd) == bfd_target_coff_flavour
+      && symcount > 0)
+    {
+      if (! parse_coff (abfd, syms, symcount, dhandle))
+       return NULL;
+      found = true;
+    }
+
   if (! found)
     {
       fprintf (stderr, "%s: no recognized debugging information\n",
This page took 0.022882 seconds and 4 git commands to generate.