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/cgen.c patch for dwarf2 assembly-level debugging


Hi -

May I commit the following one-liner patch?  It aims to enable the
assembler's "--gdwarf2" option en masse for all cgen-based ports.

- FChE


2001-01-11  Frank Ch. Eigler  <fche@redhat.com>

	* cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.


Index: cgen.c
===================================================================
RCS file: /cvs/src/src/gas/cgen.c,v
retrieving revision 1.7
diff -u -r1.7 cgen.c
--- cgen.c	2000/10/11 20:24:32	1.7
+++ cgen.c	2001/01/11 22:35:49
@@ -26,6 +26,7 @@
 #include "as.h"
 #include "subsegs.h"
 #include "cgen.h"
+#include "dwarf2dbg.h"
 
 /* Opcode table descriptor, must be set by md_begin.  */
 
@@ -444,6 +445,9 @@
 #else
   memcpy (f, buf, byte_len);
 #endif
+
+  /* Emit DWARF2 debugging information.  */
+  dwarf2_emit_insn (byte_len);
 
   /* Create any fixups.  */
   for (i = 0; i < num_fixups; ++i)


PGP signature


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