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]
Other format: [Raw text]

s390-linux-gnu: gas fails to emit dwarf2 debugging info


The assembler didn't get debugging information through from the
assembly output of the compiler to object files.  This patch fixes
this problem.  No testsuite failures in binutils after the patch, and
infinitely better results in the gdb testsuite.  Ok to install?

Index: gas/ChangeLog
from  Alexandre Oliva  <aoliva@redhat.com>

	* config/tc-s390.c (md_gather_operands): Emit dwarf2 line-number
	information for instructions.

Index: gas/config/tc-s390.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-s390.c,v
retrieving revision 1.16
diff -u -p -r1.16 tc-s390.c
--- gas/config/tc-s390.c 28 Apr 2002 12:34:02 -0000 1.16
+++ gas/config/tc-s390.c 2 May 2002 19:43:16 -0000
@@ -1227,6 +1227,7 @@ md_gather_operands (str, insn, opcode)
   /* Write out the instruction.  */
   f = frag_more (opcode->oplen);
   memcpy (f, insn, opcode->oplen);
+  dwarf2_emit_insn (opcode->oplen);
 
   /* Create any fixups.  At this point we do not use a
      bfd_reloc_code_real_type, but instead just use the

-- 
Alexandre Oliva   Enjoy Guarana', see http://www.ic.unicamp.br/~oliva/
Red Hat GCC Developer                  aoliva@{cygnus.com, redhat.com}
CS PhD student at IC-Unicamp        oliva@{lsd.ic.unicamp.br, gnu.org}
Free Software Evangelist                Professional serial bug killer

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