gas/cgen.c patch for dwarf2 assembly-level debugging

Frank Ch. Eigler fche@redhat.com
Thu Jan 11 14:39:00 GMT 2001


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)


-- 
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.0.4 (GNU/Linux)
Comment: For info see http://www.gnupg.org

iD8DBQE6XjYAVZbdDOm/ZT0RAq/1AJ9AoVIHZBripW5CYkWYbzRDQp2/hQCfRkoO
KGEyJboRBgxA9FugYPP2jwY=
=y7YX
-----END PGP SIGNATURE-----


More information about the Binutils mailing list