From 8bfd78b3d0e6ac77b921bdfbf2198088d240a50f Mon Sep 17 00:00:00 2001 From: Nathan Sidwell Date: Fri, 19 Sep 2003 09:01:53 +0000 Subject: [PATCH] * dwarf2.c (decode_line_info): Cope with an initially empty filename table. --- bfd/ChangeLog | 5 +++++ bfd/dwarf2.c | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/bfd/ChangeLog b/bfd/ChangeLog index 4ca0009ce7..6af4a6a1b9 100644 --- a/bfd/ChangeLog +++ b/bfd/ChangeLog @@ -1,3 +1,8 @@ +2003-09-19 Nathan Sidwell + + * dwarf2.c (decode_line_info): Cope with an initially empty + filename table. + 2003-09-18 H.J. Lu * acinclude.m4: Include ../config/accross.m4. diff --git a/bfd/dwarf2.c b/bfd/dwarf2.c index 7a9e5b00e3..a5976c34d8 100644 --- a/bfd/dwarf2.c +++ b/bfd/dwarf2.c @@ -1168,7 +1168,7 @@ decode_line_info (unit, stash) { /* State machine registers. */ bfd_vma address = 0; - char * filename = concat_filename (table, 1); + char * filename = table->num_files ? concat_filename (table, 1) : NULL; unsigned int line = 1; unsigned int column = 0; int is_stmt = lh.default_is_stmt; -- 2.34.1