2000-11-02 Theo Honohan <th@futuretv.com>
[deliverable/binutils-gdb.git] / gas / dwarf2dbg.c
index 4c8da79e92b0265559f83d86844733e5ee180331..bcf1c27e3b6550ccdeb9ee270200dbdf8e8ab9bf 100644 (file)
@@ -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);
+}
+
This page took 0.02266 seconds and 4 git commands to generate.