This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
gas/cgen.c patch for dwarf2 assembly-level debugging
- To: cgen at sources dot redhat dot com, binutils at sources dot redhat dot com
- Subject: gas/cgen.c patch for dwarf2 assembly-level debugging
- From: "Frank Ch. Eigler" <fche at redhat dot com>
- Date: Thu, 11 Jan 2001 17:38:56 -0500
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