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]
Other format: [Raw text]

Add support for .file and .loc to xstormy16-elf-gas


Hi Guys,

  The patch below adds support for the .file and .loc pseudo ops used
  by gcc to generate dwarf2 line number information.

Cheers
        Nick

2003-05-20  Nick Clifton  <nickc@redhat.com>

	* config/tc-xstormy16.c: Include dwarf2dbg.h.
	(md_pseudo_table): Add entries for .loc and .line.

Index: tc-xstormy16.c
===================================================================
RCS file: /cvs/src/src/gas/config/tc-xstormy16.c,v
retrieving revision 1.11
diff -c -3 -p -w -r1.11 tc-xstormy16.c
*** tc-xstormy16.c	12 May 2003 09:09:11 -0000	1.11
--- tc-xstormy16.c	20 May 2003 11:51:58 -0000
***************
*** 25,30 ****
--- 25,31 ----
  #include "opcodes/xstormy16-desc.h"
  #include "opcodes/xstormy16-opc.h"
  #include "cgen.h"
+ #include "dwarf2dbg.h"
  
  /* Structure to hold all of the different components describing
     an individual instruction.  */
*************** md_show_usage (stream)
*** 84,89 ****
--- 85,92 ----
  const pseudo_typeS md_pseudo_table[] =
  {
    { "word",	cons,		4 },
+   { "file",     (void (*) PARAMS ((int))) dwarf2_directive_file, 0 },
+   { "loc",      dwarf2_directive_loc,  0 },
    { NULL, 	NULL, 		0 }
  };
  


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