+2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
+
+ * src/SDCCmain.c: signal handling is switched off by SDCC_LEAVE_SIGNALS
+
2003-02-09 Bernhard Held <bernhard@bernhardheld.de>
* src/SDCCmain.c: signal handling is switched off by --debug
/* install atexit handler */
atexit(rm_tmpfiles);
+ /* install signal handler;
+ it's only purpuse is to call exit() to remove temp files */
+ if (!getenv("SDCC_LEAVE_SIGNALS"))
+ {
+ 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))