aboutsummaryrefslogtreecommitdiff
path: root/bfd/dwarf2.c
diff options
context:
space:
mode:
authorH.J. Lu <hjl.tools@gmail.com>2006-03-11 15:01:18 +0000
committerH.J. Lu <hjl.tools@gmail.com>2006-03-11 15:01:18 +0000
commit75a657ba49ae3a3b74b9216ba54d01538e2a0c90 (patch)
treef098694cc5069e7e39d81b6a9edbcab2731ddd18 /bfd/dwarf2.c
parent253d272cfc1e9202d6aaf12a3bf8ede88f1d37c1 (diff)
downloadgdb-75a657ba49ae3a3b74b9216ba54d01538e2a0c90.zip
gdb-75a657ba49ae3a3b74b9216ba54d01538e2a0c90.tar.gz
gdb-75a657ba49ae3a3b74b9216ba54d01538e2a0c90.tar.bz2
2006-03-11 H.J. Lu <hongjiu.lu@intel.com>
PR ld/2443 * dwarf2.c (concat_filename): Don't issue an error if file is 0.
Diffstat (limited to 'bfd/dwarf2.c')
-rw-r--r--bfd/dwarf2.c6
1 files changed, 4 insertions, 2 deletions
diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c
index 5bc5871..ae68d18 100644
--- a/bfd/dwarf2.c
+++ b/bfd/dwarf2.c
@@ -865,8 +865,10 @@ concat_filename (struct line_info_table *table, unsigned int file)
if (file - 1 >= table->num_files)
{
- (*_bfd_error_handler)
- (_("Dwarf Error: mangled line number section (bad file number)."));
+ /* FILE == 0 means unknown. */
+ if (file)
+ (*_bfd_error_handler)
+ (_("Dwarf Error: mangled line number section (bad file number)."));
return strdup ("<unknown>");
}