Changeset d6681d in git for Singular/cntrlc.cc
- Timestamp:
- Oct 26, 1999, 5:06:13 PM (25 years ago)
- Branches:
- (u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
- Children:
- 49f0894e4677acc5c2de4645efa374c1f901dbe7
- Parents:
- 3ce7b66ce4f4c6aa1846f4edb90839c950a9c891
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/cntrlc.cc
r3ce7b6 rd6681d 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: cntrlc.cc,v 1.2 5 1999-09-20 18:03:43obachman Exp $ */4 /* $Id: cntrlc.cc,v 1.26 1999-10-26 15:06:10 obachman Exp $ */ 5 5 /* 6 6 * ABSTRACT - interupt handling … … 23 23 #endif 24 24 25 /* undef, if you don't want GDB to come up on error */ 26 /* #define CALL_GDB */ 27 28 #if defined(__OPTIMIZE__) && defined(CALL_GDB) 29 #undef CALL_GDB 30 #endif 31 25 32 #ifdef unix 26 33 #ifndef hpux … … 46 53 #define INTERACTIVE 0 47 54 #define STACK_TRACE 1 48 #if ndef __OPTIMIZE__55 #ifdef __CALL_GDB__ 49 56 static void debug (int); 50 57 static void debug_stop (char **); 58 #endif 59 #ifndef __OPTIMIZE__ 51 60 static void stack_trace (char **); 52 61 static void stack_trace_sigchld (int); … … 124 133 } 125 134 #endif 126 #if ndef __OPTIMIZE__135 #ifdef CALL_GDB 127 136 if (sig!=SIGINT) debug(INTERACTIVE); 128 137 #endif … … 231 240 } 232 241 #endif 233 #if ndef __OPTIMIZE__242 #ifdef CALL_GDB 234 243 if (sig!=SIGINT) debug(STACK_TRACE); 235 244 #endif … … 278 287 #ifndef hpux 279 288 /* debug(..) does not work under HPUX (because ptrace does not work..) */ 280 #if ndef __OPTIMIZE__289 #ifdef CALL_GDB 281 290 #ifndef MSDOS 282 291 if (sig!=SIGINT) debug(STACK_TRACE); … … 439 448 #ifndef MSDOS 440 449 int si_stop_stack_trace_x; 441 450 #ifdef CALL_GDB 442 451 static void debug (int method) 443 452 { … … 481 490 _exit (0); 482 491 } 492 #endif 483 493 484 494 static int stack_trace_done;
Note: See TracChangeset
for help on using the changeset viewer.