This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]
Other format: [Raw text]

PATCH: PR 1000: [Regression]: "nm -l" no longer works on assembly file


On Wed, Jun 08, 2005 at 06:15:09PM -0700, H. J. Lu wrote:
> FYI, it is
> 
> http://sources.redhat.com/bugzilla/show_bug.cgi?id=1000
> 

This patch fixes the regression. Function info pointer NULL means
there is no match in function table. It is a match in line info table.


H.J.
---
2005-06-08  H.J. Lu  <hongjiu.lu@intel.com>

	PR 1000
	* dwarf2.c (lookup_address_in_line_info_table): Match if there
	is function info pointer is NULL.

--- bfd/dwarf2.c.bad	2005-04-09 12:02:56.000000000 -0700
+++ bfd/dwarf2.c	2005-06-08 22:55:34.000000000 -0700
@@ -1235,6 +1235,11 @@ lookup_address_in_line_info_table (struc
 		  *linenumber_ptr = each_line->line;
 		}
 	    }
+	  else
+	    {
+	      *filename_ptr = each_line->filename;
+	      *linenumber_ptr = each_line->line;
+	    }
 	}
 
       if (addr_match && !each_line->end_sequence)


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]