From: tecodev Date: Sat, 17 Nov 2007 19:02:22 +0000 (+0000) Subject: * src/pic/main.c (_asmCmd): include debug arguments (-g as $3) X-Git-Url: https://git.gag.com/?a=commitdiff_plain;h=e8f5b32348af1956ac58b77ee26b0b12c9965941;p=fw%2Fsdcc * src/pic/main.c (_asmCmd): include debug arguments (-g as $3) * 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 --- diff --git a/ChangeLog b/ChangeLog index 41376c96..8c2c58d1 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,3 +1,8 @@ +2007-11-17 Raphael Neider + + * 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 * src/pic16/genarith.c (pic16_genPlus, pic16_genMinus): take special diff --git a/src/pic/glue.c b/src/pic/glue.c index f769c654..f912ec7f 100644 --- a/src/pic/glue.c +++ b/src/pic/glue.c @@ -1457,7 +1457,8 @@ picglue () 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) diff --git a/src/pic/main.c b/src/pic/main.c index 74b79ca3..7e87781b 100644 --- a/src/pic/main.c +++ b/src/pic/main.c @@ -358,7 +358,7 @@ static const char *_linkCmd[] = static const char *_asmCmd[] = { - "gpasm", "$l", "-c", "\"$1.asm\"", NULL + "gpasm", "$l", "$3", "-c", "\"$1.asm\"", NULL }; @@ -448,8 +448,8 @@ PORT pic_port = { _asmCmd, NULL, - NULL, - NULL, + "-g", /* options with --debug */ + NULL, /* options without --debug */ //"-plosgffc", /* Options with debug */ //"-plosgff", /* Options without debug */ 0,