diff options
author | Richard Henderson <rth@redhat.com> | 2000-11-29 21:42:41 +0000 |
---|---|---|
committer | Richard Henderson <rth@redhat.com> | 2000-11-29 21:42:41 +0000 |
commit | 220e750f6ff8264ad573f43c0883ece78f53642f (patch) | |
tree | 15bd4b7605aaf794ca598ba141fa1164b044c763 /gas/dwarf2dbg.h | |
parent | b13291a97978585d2167e4bb047493c34f3df5ca (diff) | |
download | binutils-gdb-220e750f6ff8264ad573f43c0883ece78f53642f.tar.gz |
* dwarf2dbg.c: Rewrite from scratch. Queue all debugging output
until dwarf2_finish; use relaxation to get cross-fragment offsets;
thread multiple subsegments properly; handle multiple code
sections properly; emit proper compilation unit info for assembler
generated debugging.
* as.h (enum _relax_state): Add rs_dwarf2dbg.
* dwarf2dbg.h (struct dwarf2_line_info): Remove filename.
(dwarf2dbg_estimate_size_before_relax): Declare.
(dwarf2dbg_relax_frag, dwarf2dbg_convert_frag): Declare.
* write.c: Include dwarf2dbg.h.
(cvt_frag_to_fill): Handle rs_dwarf2dbg.
(relax_segment): Likewise.
Diffstat (limited to 'gas/dwarf2dbg.h')
-rw-r--r-- | gas/dwarf2dbg.h | 10 |
1 files changed, 6 insertions, 4 deletions
diff --git a/gas/dwarf2dbg.h b/gas/dwarf2dbg.h index e97635c235a..cdb76ab5f73 100644 --- a/gas/dwarf2dbg.h +++ b/gas/dwarf2dbg.h @@ -27,7 +27,6 @@ #define DWARF2_FLAG_BEGIN_BLOCK (1 << 1) /* beginning of basic block */ struct dwarf2_line_info { - char *filename; unsigned int filenum; unsigned int line; unsigned int column; @@ -61,10 +60,13 @@ extern void dwarf2_where PARAMS ((struct dwarf2_line_info *l)); extern void dwarf2_gen_line_info PARAMS ((addressT addr, struct dwarf2_line_info *l)); -/* Must be called after all other input is processed to finish up the - .debug_line section. */ +/* Must be called for each generated instruction. */ +extern void dwarf2_emit_insn PARAMS ((int)); + extern void dwarf2_finish PARAMS ((void)); -extern void dwarf2_emit_insn PARAMS ((int)); +extern int dwarf2dbg_estimate_size_before_relax PARAMS ((fragS *)); +extern int dwarf2dbg_relax_frag PARAMS ((fragS *)); +extern void dwarf2dbg_convert_frag PARAMS ((fragS *)); #endif /* AS_DWARF2DBG_H */ |