diff options
author | Nick Clifton <nickc@redhat.com> | 2000-10-25 19:15:34 +0000 |
---|---|---|
committer | Nick Clifton <nickc@redhat.com> | 2000-10-25 19:15:34 +0000 |
commit | 85a396941012a60ef70ccc3de7de675e67d31325 (patch) | |
tree | af0e619c9cf2363b2065956934e1b8ff390f93e8 /gas/dwarf2dbg.c | |
parent | c56a7a95d19613c5111a365a0733d4a35bfbdbf6 (diff) | |
download | gdb-85a396941012a60ef70ccc3de7de675e67d31325.zip gdb-85a396941012a60ef70ccc3de7de675e67d31325.tar.gz gdb-85a396941012a60ef70ccc3de7de675e67d31325.tar.bz2 |
Add --gdwarf2 support to ARM toolchain
Diffstat (limited to 'gas/dwarf2dbg.c')
-rw-r--r-- | gas/dwarf2dbg.c | 22 |
1 files changed, 22 insertions, 0 deletions
diff --git a/gas/dwarf2dbg.c b/gas/dwarf2dbg.c index 4c8da79..bcf1c27 100644 --- a/gas/dwarf2dbg.c +++ b/gas/dwarf2dbg.c @@ -772,3 +772,25 @@ dwarf2_where (line) line->flags = DWARF2_FLAG_BEGIN_STMT; } } + +/* Generate a DWARF2 line statement for an + instruction of SIZE bytes in length. */ + +void +dwarf2_generate_asm_lineno (size) + int size; +{ + bfd_vma addr; + static struct dwarf2_line_info debug_line; + + /* First update the notion of the current source line. */ + dwarf2_where (& debug_line); + + /* We want the offset of the start of this + instruction within the the current frag. */ + addr = frag_now->fr_address + frag_now_fix () - size; + + /* And record the information. */ + dwarf2_gen_line_info (addr, & debug_line); +} + |