This is the mail archive of the binutils@sources.redhat.com mailing list for the binutils project.


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

GAS: Have mn10300 backend use dwarf2_generate_asm_lineno


Hi Guys,

  When I checked in the patch to add the dwarf2_generate_asm_lineno
  function to dwarf2dbg.c I missed converting tc-mn10300.c.  This
  patch takes care of that.

Cheers
	Nick

2000-11-02  Nick Clifton  <nickc@redhat.com>

	* config/tc-mn10300.c (debug_line): Remove this static
	variable.
	(md_assemble): Call dwarf2_generate_asm_lineno instead of
	dwarf2_where and dwarf2_gen_line_info.


Index: gas/config/tc-mn10300.c
===================================================================
RCS file: /cvs/src//src/gas/config/tc-mn10300.c,v
retrieving revision 1.13
diff -p -r1.13 tc-mn10300.c
*** tc-mn10300.c	2000/11/01 00:54:00	1.13
--- tc-mn10300.c	2000/11/02 19:12:25
*************** struct reg_name
*** 32,39 ****
    int value;
  };
  
- struct dwarf2_line_info debug_line;
- 
  /* Generic assembler global variables which must be defined by all
     targets.  */
  
--- 32,37 ----
*************** keep_going:
*** 1792,1810 ****
      }
  
    if (debug_type == DEBUG_DWARF2)
!     {
!       bfd_vma addr;
! 
!       /* 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 () - real_size;
! 
!       /* And record the information.  */
!       dwarf2_gen_line_info (addr, &debug_line);
!     }
  }
  
  /* If while processing a fixup, a reloc really needs to be created
--- 1790,1796 ----
      }
  
    if (debug_type == DEBUG_DWARF2)
!     dwarf2_generate_asm_lineno (real_size);
  }
  
  /* If while processing a fixup, a reloc really needs to be created

Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]