summaryrefslogtreecommitdiff
path: root/gas
diff options
context:
space:
mode:
authorPaul Brook <paul@codesourcery.com>2006-03-20 15:14:49 +0000
committerPaul Brook <paul@codesourcery.com>2006-03-20 15:14:49 +0000
commit4952b1a92bdb2d7cdd800415b3d19dd1f07fb57d (patch)
treecc4432f83b06259e3b10f50a0e054a5f06f82585 /gas
parent88128b79a56be13c63e281409710c59099782fff (diff)
downloadbinutils-redhat-4952b1a92bdb2d7cdd800415b3d19dd1f07fb57d.tar.gz
2006-03-20 Paul Brook <paul@codesourcery.com>
* config/tc-arm.c (output_relax_insn): Call dwarf2_emit_insn before outputting the insn.
Diffstat (limited to 'gas')
-rw-r--r--gas/ChangeLog5
-rw-r--r--gas/config/tc-arm.c10
2 files changed, 11 insertions, 4 deletions
diff --git a/gas/ChangeLog b/gas/ChangeLog
index 5754263a0e..7ea4f29f4c 100644
--- a/gas/ChangeLog
+++ b/gas/ChangeLog
@@ -1,3 +1,8 @@
+2006-03-20 Paul Brook <paul@codesourcery.com>
+
+ * config/tc-arm.c (output_relax_insn): Call dwarf2_emit_insn before
+ outputting the insn.
+
2006-03-18 Jan-Benedict Glaw <jbglaw@lug-owl.de>
* config/tc-vax.c: Update copyright year.
diff --git a/gas/config/tc-arm.c b/gas/config/tc-arm.c
index 573c1227b9..01b49e3e32 100644
--- a/gas/config/tc-arm.c
+++ b/gas/config/tc-arm.c
@@ -7982,6 +7982,12 @@ output_relax_insn (void)
symbolS *sym;
int offset;
+#ifdef OBJ_ELF
+ /* The size of the instruction is unknown, so tie the debug info to the
+ start of the instruction. */
+ dwarf2_emit_insn (0);
+#endif
+
switch (inst.reloc.exp.X_op)
{
case O_symbol:
@@ -8000,10 +8006,6 @@ output_relax_insn (void)
to = frag_var (rs_machine_dependent, INSN_SIZE, THUMB_SIZE,
inst.relax, sym, offset, NULL/*offset, opcode*/);
md_number_to_chars (to, inst.instruction, THUMB_SIZE);
-
-#ifdef OBJ_ELF
- dwarf2_emit_insn (INSN_SIZE);
-#endif
}
/* Write a 32-bit thumb instruction to buf. */