+2007-11-17 Raphael Neider <rneider AT web.de>
+
+ * src/pic/main.c (_asmCmd): include debug arguments (-g as $3)
+ * src/pic/glue.c (picglue): emit .file if --debug is given
+
2007-11-17 Raphael Neider <rneider AT web.de>
* src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
pic14initialComments (asmFile);
/* print module name */
- fprintf (asmFile, ";\t.module %s\n", moduleName);
+ fprintf (asmFile, "%s\t.file\t\"%s\"\n",
+ options.debug ? "" : ";", fullSrcFileName);
/* Let the port generate any global directives, etc. */
if (port->genAssemblerPreamble)
static const char *_asmCmd[] =
{
- "gpasm", "$l", "-c", "\"$1.asm\"", NULL
+ "gpasm", "$l", "$3", "-c", "\"$1.asm\"", NULL
};
{
_asmCmd,
NULL,
- NULL,
- NULL,
+ "-g", /* options with --debug */
+ NULL, /* options without --debug */
//"-plosgffc", /* Options with debug */
//"-plosgff", /* Options without debug */
0,