* Add dwarf2 support in Xtensa port of gas
@ 2003-11-19 23:57 Bob Wilson
0 siblings, 0 replies; only message in thread
From: Bob Wilson @ 2003-11-19 23:57 UTC (permalink / raw)
To: binutils
[-- Attachment #1: Type: text/plain, Size: 409 bytes --]
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.
[-- Attachment #2: gas-xtensa-dwarf.diff --]
[-- Type: text/x-diff, Size: 649 bytes --]
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)
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2003-11-19 23:57 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-11-19 23:57 Add dwarf2 support in Xtensa port of gas Bob Wilson
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).