+2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
+
+ * src/SDCCmain.c: signal handling is switched off by --debug
+
2003-02-08 Bernhard Held <bernhard@bernhardheld.de>
* device/lib/_mulint.c: small fix for large/ds390 --int-long-reent resp. --stack-auto
sig_string = "Unknown?";
break;
}
- fprintf (stderr, "Catched signal %d: %s\n", signal, sig_string);
+ fprintf (stderr, "Caught signal %d: %s\n", signal, sig_string);
exit (1);
}
/* install atexit handler */
atexit(rm_tmpfiles);
- /* install signal handler;
- it's only purpuse is to call exit() to remove temp files */
- signal (SIGABRT, sig_handler);
- signal (SIGTERM, sig_handler);
- signal (SIGINT , sig_handler);
- signal (SIGSEGV, sig_handler);
-
/* Before parsing the command line options, do a
* search for the port and processor and initialize
* them if they're found. (We can't gurantee that these
#endif
parseCmdLine (argc, argv);
+ /* install signal handler;
+ it's only purpuse is to call exit() to remove temp files */
+ if (!options.debug)
+ {
+ signal (SIGABRT, sig_handler);
+ signal (SIGTERM, sig_handler);
+ signal (SIGINT , sig_handler);
+ signal (SIGSEGV, sig_handler);
+ }
+
/* if no input then printUsage & exit */
if ((!options.c1mode && !fullSrcFileName && !nrelFiles) ||
(options.c1mode && !fullSrcFileName))