aboutsummaryrefslogtreecommitdiff
path: root/gas/dwarf2dbg.h
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/dwarf2dbg.h
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/dwarf2dbg.h')
-rw-r--r--gas/dwarf2dbg.h4
1 files changed, 4 insertions, 0 deletions
diff --git a/gas/dwarf2dbg.h b/gas/dwarf2dbg.h
index be220f4..55836cc 100644
--- a/gas/dwarf2dbg.h
+++ b/gas/dwarf2dbg.h
@@ -72,6 +72,10 @@ extern void dwarf2_gen_line_info (addressT addr, struct dwarf2_line_info *l);
/* Must be called for each generated instruction. */
extern void dwarf2_emit_insn (int);
+/* Reset the state of the line number information to reflect that
+ it has been used. */
+extern void dwarf2_consume_line_info (void);
+
/* Should be called for each code label. */
extern void dwarf2_emit_label (symbolS *);