* src/pic/glue.c (picglue): emit .file if --debug is given
git-svn-id: https://sdcc.svn.sourceforge.net/svnroot/sdcc/trunk/sdcc@4969
4a8a32a2-be11-0410-ad9d-
d568d2c75423
+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
2007-11-17 Raphael Neider <rneider AT web.de>
* src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special
pic14initialComments (asmFile);
/* print module name */
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)
/* Let the port generate any global directives, etc. */
if (port->genAssemblerPreamble)
static const char *_asmCmd[] =
{
static const char *_asmCmd[] =
{
- "gpasm", "$l", "-c", "\"$1.asm\"", NULL
+ "gpasm", "$l", "$3", "-c", "\"$1.asm\"", NULL
+ "-g", /* options with --debug */
+ NULL, /* options without --debug */
//"-plosgffc", /* Options with debug */
//"-plosgff", /* Options without debug */
0,
//"-plosgffc", /* Options with debug */
//"-plosgff", /* Options without debug */
0,