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]

GAS .debug_abbrev fix


Hi there,

GNU as generates invalid abbreviation table when given the
--gdwarf2 option. This patch fixes it.

Regards,
-velco

2001-02-01  Momchil Velikov  <velco@fadata.bg>

        * dwarf2dbg.c (out_debug_abbrev): Terminate the abbreviations
for
        the compilation unit with a zero byte.

--- dwarf2dbg.c.orig    Thu Feb  1 17:01:27 2001
+++ dwarf2dbg.c Thu Feb  1 17:06:02 2001
@@ -1099,6 +1099,7 @@
   out_abbrev (DW_AT_producer, DW_FORM_string);
   out_abbrev (DW_AT_language, DW_FORM_data2);
   out_abbrev (0, 0);
+  out_byte (0);
 }
 
 /* Emit a description of this compilation unit for .debug_info.  */

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