coffgen.c:coff_find_nearest_line ?
Mark E.
snowball3@bigfoot.com
Thu Jan 25 13:09:00 GMT 2001
> However, when I look at _bfd_stab_section_find_nearest_line, I think
> it returns false on error, or true on non-error. Whether it found any
> debugging information is determined, if it returned true, by whether
> *pfound was set.
Ok, maybe I'm the one a bit off then. Then shouldn't the 'if (found)' part be moved up
a bit? If so, would someone please apply this patch?
bfd/ChangeLog:
2001-01-25 Mark Elbrecht <snowball3@bigfoot.com>
* coffgen.c (coff_find_nearest_line): If stabs information was
found, return true immediately.
Index: src/bfd/coffgen.c
===================================================================
RCS file: /cvs/src/src/bfd/coffgen.c,v
retrieving revision 1.18
diff -c -p -r1.18 coffgen.c
*** coffgen.c 2001/01/23 11:45:52 1.18
--- coffgen.c 2001/01/25 21:02:58
*************** coff_find_nearest_line (abfd, section, s
*** 2188,2201 ****
&coff_data(abfd)->line_info))
return false;
/* Also try examining DWARF2 debugging information. */
if (_bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset,
filename_ptr, functionname_ptr,
line_ptr, 0,
&coff_data(abfd)->dwarf2_find_line_info))
- return true;
-
- if (found)
return true;
*filename_ptr = 0;
--- 2188,2201 ----
&coff_data(abfd)->line_info))
return false;
+ if (found)
+ return true;
+
/* Also try examining DWARF2 debugging information. */
if (_bfd_dwarf2_find_nearest_line (abfd, section, symbols, offset,
filename_ptr, functionname_ptr,
line_ptr, 0,
&coff_data(abfd)->dwarf2_find_line_info))
return true;
*filename_ptr = 0;
More information about the Binutils
mailing list