]> git.ipfire.org Git - thirdparty/binutils-gdb.git/commitdiff
* config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
authorAndreas Schwab <schwab@linux-m68k.org>
Sat, 21 Jul 2001 13:43:26 +0000 (13:43 +0000)
committerAndreas Schwab <schwab@linux-m68k.org>
Sat, 21 Jul 2001 13:43:26 +0000 (13:43 +0000)
.loc.
(md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
insn.
* config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.

gas/ChangeLog
gas/config/tc-m68k.c
gas/config/tc-m68k.h

index e33b133a8681e67b595caf5180edb606b3eed621..2e6860112440ec9bafb4ddaa9c179895bd8c75dd 100644 (file)
@@ -1,3 +1,11 @@
+2001-07-21  Andreas Schwab  <schwab@suse.de>
+
+       * config/tc-m68k.c (md_pseudo_table) [OBJ_ELF]: Add .file and
+       .loc.
+       (md_assemble) [OBJ_ELF]: Call dwarf2_emit_insn before emitting
+       insn.
+       * config/tc-m68k.h (DWARF2_LINE_MIN_INSN_LENGTH): Define.
+
 2001-07-14  matthew green  <mrg@eterna.com.au>
 
        * configure.in (i386-*-netbsdelf*): New target.
index 0d4cd23d4d6f21a03d44d987738406523a88a89e..53d92dcccdc811d764473a5c4f30b320202c4a97 100644 (file)
@@ -558,6 +558,12 @@ const pseudo_typeS md_pseudo_table[] =
   {"extend", float_cons, 'x'},
   {"ldouble", float_cons, 'x'},
 
+#ifdef OBJ_ELF
+  /* Dwarf2 support for Gcc.  */
+  {"file", dwarf2_directive_file, 0},
+  {"loc", dwarf2_directive_loc, 0},
+#endif
+
   /* The following pseudo-ops are supported for MRI compatibility.  */
   {"chip", s_chip, 0},
   {"comline", s_space, 1},
@@ -3611,6 +3617,11 @@ md_assemble (str)
       current_label = NULL;
     }
 
+#ifdef OBJ_ELF
+  /* Tie dwarf2 debug info to the address at the start of the insn.  */
+  dwarf2_emit_insn (0);
+#endif
+
   if (the_ins.nfrag == 0)
     {
       /* No frag hacking involved; just put it out */
index 1631e537ecdc1e6de4bd5a666850424e898e845d..56879d2b6a8b49ca7a179e69900a1c809517a712 100644 (file)
@@ -233,3 +233,5 @@ extern struct relax_type md_relax_table[];
   if (aim==0 && this_state== 4) { /* hard encoded from tc-m68k.c */ \
     aim=this_type->rlx_forward+1; /* Force relaxation into word mode */ \
   }
+
+#define DWARF2_LINE_MIN_INSN_LENGTH 2