aboutsummaryrefslogtreecommitdiff
path: root/gas/config/tc-ia64.c
diff options
context:
space:
mode:
authorBob Wilson <bob.wilson@acm.org>2007-11-19 18:15:53 +0000
committerBob Wilson <bob.wilson@acm.org>2007-11-19 18:15:53 +0000
commit661ba50f530d936e1e9b260f0c4424d92ce9076f (patch)
tree3d598855ac24b49e4ddcc635441232f7565a79a2 /gas/config/tc-ia64.c
parent3e0873ac4fa365e8c170adcb8b9e1fd727ed16c3 (diff)
downloadgdb-661ba50f530d936e1e9b260f0c4424d92ce9076f.zip
gdb-661ba50f530d936e1e9b260f0c4424d92ce9076f.tar.gz
gdb-661ba50f530d936e1e9b260f0c4424d92ce9076f.tar.bz2
* dwarf2dbg.c (dwarf2_consume_line_info): New.
(dwarf2_emit_insn): Use it here. (dwarf2_directive_loc): Fix check for consecutive .loc directives when debug_type is DEBUG_DWARF2. * dwarf2dbg.h (dwarf2_consume_line_info): New prototype. * config/tc-ia64.c (ia64_flush_insns): Call dwarf2_consume_line_info. (md_assemble): Likewise. testsuite/ * gas/lns/lns.exp: Run lns-common-1 with alternate source for ia64. * gas/lns/lns-common-1-ia64.s: New file.
Diffstat (limited to 'gas/config/tc-ia64.c')
-rw-r--r--gas/config/tc-ia64.c2
1 files changed, 2 insertions, 0 deletions
diff --git a/gas/config/tc-ia64.c b/gas/config/tc-ia64.c
index 2e0f86c..263374b 100644
--- a/gas/config/tc-ia64.c
+++ b/gas/config/tc-ia64.c
@@ -1132,6 +1132,7 @@ ia64_flush_insns ()
dwarf2_where (&CURR_SLOT.debug_line);
CURR_SLOT.debug_line.flags |= DWARF2_FLAG_BASIC_BLOCK;
dwarf2_gen_line_info (frag_now_fix (), &CURR_SLOT.debug_line);
+ dwarf2_consume_line_info ();
}
CURR_SLOT.label_fixups = 0;
@@ -10968,6 +10969,7 @@ md_assemble (str)
CURR_SLOT.idesc = idesc;
as_where (&CURR_SLOT.src_file, &CURR_SLOT.src_line);
dwarf2_where (&CURR_SLOT.debug_line);
+ dwarf2_consume_line_info ();
/* Add unwind entries, if there are any. */
if (unwind.current_entry)