From 85a396941012a60ef70ccc3de7de675e67d31325 Mon Sep 17 00:00:00 2001 From: Nick Clifton Date: Wed, 25 Oct 2000 19:15:34 +0000 Subject: Add --gdwarf2 support to ARM toolchain --- gas/dwarf2dbg.c | 22 ++++++++++++++++++++++ 1 file changed, 22 insertions(+) (limited to 'gas/dwarf2dbg.c') 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); +} + -- cgit v1.1