This is the mail archive of the binutils@sourceware.org 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]

[PATCH] Parsing IEEE-695 files for Renesas mcu


[Please CC me, I'm not on the list]

Hi,
the attached patch is necessary to parse the debug information generated by the Renesas development kit for R8C mcus. I added the undocumented 'v' (void) type and I had to call debug_set_filename in case it wasn't set. Patch is trivial, apply at will.



Regards, Sebastian

Index: binutils/ieee.c
===================================================================
RCS file: /cvs/src/src/binutils/ieee.c,v
retrieving revision 1.21
diff -u -r1.21 ieee.c
--- binutils/ieee.c	7 Jul 2008 00:44:41 -0000	1.21
+++ binutils/ieee.c	19 Feb 2009 20:41:45 -0000
@@ -1069,6 +1069,16 @@
 	      break;
 	  }
 
+	if (! info->saw_filename)
+	  {
+	    namcopy = savestring (name, namlen);
+	    if (namcopy == NULL)
+	      return FALSE;
+	    if (! debug_set_filename (info->dhandle, namcopy))
+	      return FALSE;
+	    info->saw_filename = TRUE;
+	  }
+
 	namcopy = savestring (name, namlen);
 	if (namcopy == NULL)
 	  return FALSE;
@@ -1786,6 +1796,7 @@
       break;
 
     case 'V':
+    case 'v':
       /* Void.  This is not documented, but the MRI compiler emits it.  */
       type = debug_make_void_type (dhandle);
       break;

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