* rdcoff.c: New file.
* rddbg.c (read_debugging_info): Read COFF symbols if COFF flavour and no stabs were found. * budbg.h (parse_coff): Declare. * Makefile.in: Rebuild dependencies. (CFILES): Add rdcoff.c. (DEBUG_OBJS): Add rdcoff.o.
This commit is contained in:
parent
a2d914e15e
commit
f32fb3fd1f
5 changed files with 921 additions and 14 deletions
|
@ -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",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue