This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
Add dwarf2 support in Xtensa port of gas
- From: Bob Wilson <bwilson at tensilica dot com>
- To: binutils at sources dot redhat dot com
- Date: Wed, 19 Nov 2003 16:02:21 -0800
- Subject: Add dwarf2 support in Xtensa port of gas
- Organization: Tensilica, Inc.
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)