This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
PATCH: PR 1000: [Regression]: "nm -l" no longer works on assembly file
- From: "H. J. Lu" <hjl at lucon dot org>
- To: binutils at sources dot redhat dot com
- Date: Wed, 8 Jun 2005 23:08:50 -0700
- Subject: PATCH: PR 1000: [Regression]: "nm -l" no longer works on assembly file
- References: <20050609011509.GA6303@lucon.org>
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)