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]

Add dwarf2 support in Xtensa port of gas


This patch adds support for dwarf2 line number information in the Xtensa port 
of gas.  I built the xtensa-elf target, ran the gas testsuite and verified 
that I could single-step by assembly source lines in gdb.  Committed on the 
mainline.

2003-11-19  Bob Wilson  <bob.wilson@acm.org>

        * config/tc-xtensa.c (xg_emit_insn): Include "dwarf2dbg.h" and add
        call to dwarf2_emit_insn.

Index: config/tc-xtensa.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-xtensa.c,v
retrieving revision 1.6
diff -u -r1.6 tc-xtensa.c
--- config/tc-xtensa.c	14 Oct 2003 22:28:28 -0000	1.6
+++ config/tc-xtensa.c	19 Nov 2003 23:51:47 -0000
@@ -27,6 +27,7 @@
 #include "subsegs.h"
 #include "xtensa-relax.h"
 #include "xtensa-istack.h"
+#include "dwarf2dbg.h"
 #include "struc-symbol.h"
 #include "xtensa-config.h"
 
@@ -3928,6 +3929,8 @@
     }
 
   xtensa_insnbuf_to_chars (isa, insnbuf, f);
+
+  dwarf2_emit_insn (byte_count);
 
   /* Now spit out the opcode fixup.... */
   if (!has_fixup)

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