* dwarf2.c (decode_line_info): Cope with an initially empty
authorNathan Sidwell <nathan@codesourcery.com>
Fri, 19 Sep 2003 09:01:53 +0000 (09:01 +0000)
committerNathan Sidwell <nathan@codesourcery.com>
Fri, 19 Sep 2003 09:01:53 +0000 (09:01 +0000)
filename table.

bfd/ChangeLog
bfd/dwarf2.c

index 4ca0009ce72c2a6b247b54fd88b03d3d261e4023..6af4a6a1b92a9caf6a9170ccf58a36cea40bd1e7 100644 (file)
@@ -1,3 +1,8 @@
+2003-09-19  Nathan Sidwell  <nathan@codesourcery.com>
+
+       * dwarf2.c (decode_line_info): Cope with an initially empty
+       filename table.
+
 2003-09-18  H.J. Lu  <hongjiu.lu@intel.com>
 
        * acinclude.m4: Include ../config/accross.m4.
index 7a9e5b00e31e1c63ccb4cb5e1737296f826356c1..a5976c34d86642eef517918189141d0748aedf1d 100644 (file)
@@ -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;