bug-gnu-utils
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: More about my report and possible fix


From: Mark E.
Subject: Re: More about my report and possible fix
Date: Mon, 29 Jan 2001 20:19:11 -0500

address@hidden wrote:

>
>Ok, I have found a fix (not the FIX). There is definitly something wrong
>in coffgen.c. In function coff_find_nearest_line the check for dwarf2
>debugging info is suspicious. Here a simple patch (not right) that does
>fix the problem reported.
>
>What do you think ?
>

Try this one instead:

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/30 01:09:01
*************** 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;

-- 
Mark E.: address@hidden
http://snowball.frogspace.net/



reply via email to

[Prev in Thread] Current Thread [Next in Thread]