1
0
mirror of https://github.com/cc65/cc65.git synced 2025-01-12 02:30:44 +00:00

Removed the -Lp switch, place --dbgfile into help screen

git-svn-id: svn://svn.cc65.org/cc65/trunk@2318 b7a2c559-68d2-44c3-8de9-860c34a00d81
This commit is contained in:
cuz 2003-08-15 09:19:57 +00:00
parent ccdd31b51e
commit 5422c6924a
4 changed files with 8 additions and 27 deletions

View File

@ -6,9 +6,9 @@
/* */ /* */
/* */ /* */
/* */ /* */
/* (C) 1998-2002 Ullrich von Bassewitz */ /* (C) 1998-2003 Ullrich von Bassewitz */
/* Wacholderweg 14 */ /* Römerstrasse 52 */
/* D-70597 Stuttgart */ /* D-70794 Filderstadt */
/* EMail: uz@cc65.org */ /* EMail: uz@cc65.org */
/* */ /* */
/* */ /* */
@ -55,7 +55,6 @@ unsigned char VerboseMap = 0; /* Verbose map file */
const char* MapFileName = 0; /* Name of the map file */ const char* MapFileName = 0; /* Name of the map file */
const char* LabelFileName = 0; /* Name of the label file */ const char* LabelFileName = 0; /* Name of the label file */
const char* DbgFileName = 0; /* Name of the debug file */ const char* DbgFileName = 0; /* Name of the debug file */
unsigned char WProtSegs = 0; /* Mark write protected segments */

View File

@ -6,9 +6,9 @@
/* */ /* */
/* */ /* */
/* */ /* */
/* (C) 1998-2002 Ullrich von Bassewitz */ /* (C) 1998-2003 Ullrich von Bassewitz */
/* Wacholderweg 14 */ /* Römerstrasse 52 */
/* D-70597 Stuttgart */ /* D-70794 Filderstadt */
/* EMail: uz@cc65.org */ /* EMail: uz@cc65.org */
/* */ /* */
/* */ /* */
@ -55,7 +55,6 @@ extern unsigned char VerboseMap; /* Verbose map file */
extern const char* MapFileName; /* Name of the map file */ extern const char* MapFileName; /* Name of the map file */
extern const char* LabelFileName; /* Name of the label file */ extern const char* LabelFileName; /* Name of the label file */
extern const char* DbgFileName; /* Name of the debug file */ extern const char* DbgFileName; /* Name of the debug file */
extern unsigned char WProtSegs; /* Mark write protected segments */

View File

@ -94,7 +94,6 @@ static void Usage (void)
" -C name\t\tUse linker config file\n" " -C name\t\tUse linker config file\n"
" -L path\t\tSpecify a library search path\n" " -L path\t\tSpecify a library search path\n"
" -Ln name\t\tCreate a VICE label file\n" " -Ln name\t\tCreate a VICE label file\n"
" -Lp\t\t\tMark write protected segments as such (VICE)\n"
" -S addr\t\tSet the default start address\n" " -S addr\t\tSet the default start address\n"
" -V\t\t\tPrint the linker version\n" " -V\t\t\tPrint the linker version\n"
" -h\t\t\tHelp (this text)\n" " -h\t\t\tHelp (this text)\n"
@ -107,6 +106,7 @@ static void Usage (void)
"Long options:\n" "Long options:\n"
" --cfg-path path\tSpecify a config file search path\n" " --cfg-path path\tSpecify a config file search path\n"
" --config name\t\tUse linker config file\n" " --config name\t\tUse linker config file\n"
" --dbgfile name\t\tGenerate debug information\n"
" --dump-config name\tDump a builtin configuration\n" " --dump-config name\tDump a builtin configuration\n"
" --help\t\tHelp (this text)\n" " --help\t\tHelp (this text)\n"
" --lib file\t\tLink this library\n" " --lib file\t\tLink this library\n"
@ -459,9 +459,8 @@ int main (int argc, char* argv [])
case 'L': case 'L':
switch (Arg [2]) { switch (Arg [2]) {
/* ## The first two are obsolete and will go */ /* ## The first one is obsolete and will go */
case 'n': LabelFileName = GetArg (&I, 3); break; case 'n': LabelFileName = GetArg (&I, 3); break;
case 'p': WProtSegs = 1; break;
default: OptLibPath (Arg, GetArg (&I, 2)); break; default: OptLibPath (Arg, GetArg (&I, 2)); break;
} }
break; break;

View File

@ -147,22 +147,6 @@ void CreateLabelFile (void)
PrintDbgSymLabels (O, F); PrintDbgSymLabels (O, F);
} }
/* If we should mark write protected areas as such, do it */
if (WProtSegs) {
SegDesc* S = SegDescList;
while (S) {
/* Is this segment write protected and contains data? */
if (S->Flags & SF_WPROT && S->Seg->Size > 0) {
/* Write protect the memory area in VICE */
fprintf (F, "wp %04lX %04lX\n",
S->Seg->PC,
S->Seg->PC + S->Seg->Size - 1);
}
/* Next segment */
S = S->Next;
}
}
/* Close the file */ /* Close the file */
if (fclose (F) != 0) { if (fclose (F) != 0) {
Error ("Error closing map file `%s': %s", LabelFileName, strerror (errno)); Error ("Error closing map file `%s': %s", LabelFileName, strerror (errno));