aboutsummaryrefslogtreecommitdiff
path: root/gas/cgen.c
diff options
context:
space:
mode:
authorFrank Ch. Eigler <fche@redhat.com>2001-01-12 23:34:43 +0000
committerFrank Ch. Eigler <fche@redhat.com>2001-01-12 23:34:43 +0000
commit272d76e0cbba693781509c939ddfda5941a50e9d (patch)
treec0592ea4a2f6b37f76d57bf7f87271a300929994 /gas/cgen.c
parent7036d6ce0eefad78c871da51e41533a45daaa331 (diff)
downloadgdb-272d76e0cbba693781509c939ddfda5941a50e9d.zip
gdb-272d76e0cbba693781509c939ddfda5941a50e9d.tar.gz
gdb-272d76e0cbba693781509c939ddfda5941a50e9d.tar.bz2
* gas/cgen feature
2001-01-12 Frank Ch. Eigler <fche@redhat.com> * cgen.c (gas_cgen_finish_insn): Call dwarf2_emit_insn.
Diffstat (limited to 'gas/cgen.c')
-rw-r--r--gas/cgen.c6
1 files changed, 5 insertions, 1 deletions
diff --git a/gas/cgen.c b/gas/cgen.c
index e3cb1c8..271d391 100644
--- a/gas/cgen.c
+++ b/gas/cgen.c
@@ -1,5 +1,5 @@
/* GAS interface for targets using CGEN: Cpu tools GENerator.
- Copyright (C) 1996, 1997, 1998, 1999, 2000 Free Software Foundation, Inc.
+ Copyright (C) 1996, 1997, 1998, 1999, 2000, 2001 Free Software Foundation, Inc.
This file is part of GAS, the GNU Assembler.
@@ -26,6 +26,7 @@ Foundation, 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA. */
#include "as.h"
#include "subsegs.h"
#include "cgen.h"
+#include "dwarf2dbg.h"
/* Opcode table descriptor, must be set by md_begin. */
@@ -445,6 +446,9 @@ gas_cgen_finish_insn (insn, buf, length, relax_p, result)
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)
{