This is the mail archive of the
binutils@sources.redhat.com
mailing list for the binutils project.
SPARC debug_line support
- To: binutils at sources dot redhat dot com
- Subject: SPARC debug_line support
- From: Jakub Jelinek <jakub at redhat dot com>
- Date: Tue, 21 Nov 2000 13:44:00 +0100
- Reply-To: Jakub Jelinek <jakub at redhat dot com>
Hi!
So that we don't leave SPARC behind, I've commited:
2000-11-21 Jakub Jelinek <jakub@redhat.com>
* config/tc-sparc.c (md_pseudo_table): Add .file and .loc.
(output_insn): Call dwarf2_emit_insn.
--- gas/config/tc-sparc.c 2000/10/20 10:38:46 1.24
+++ gas/config/tc-sparc.c 2000/11/21 12:37:07
@@ -28,6 +28,7 @@
#ifdef OBJ_ELF
#include "elf/sparc.h"
+#include "dwarf2dbg.h"
#endif
static struct sparc_arch *lookup_arch PARAMS ((char *));
@@ -151,6 +152,8 @@ const pseudo_typeS md_pseudo_table[] =
{"uaword", s_uacons, 4},
{"uaxword", s_uacons, 8},
#ifdef OBJ_ELF
+ {"file", dwarf2_directive_file, 0},
+ {"loc", dwarf2_directive_loc, 0},
/* These are specific to sparc/svr4. */
{"2byte", s_uacons, 2},
{"4byte", s_uacons, 4},
@@ -2769,6 +2772,10 @@ output_insn (insn, the_insn)
last_insn = insn;
last_opcode = the_insn->opcode;
+
+#ifdef OBJ_ELF
+ dwarf2_emit_insn (4);
+#endif
}
/* This is identical to the md_atof in m68k.c. I think this is right,
Jakub