- Timestamp:
- Dec 18, 2007, 11:27:06 AM (16 years ago)
- Branches:
- (u'fieker-DuVal', '117eb8c30fc9e991c4decca4832b1d19036c4c65')(u'spielwiese', 'c5facdfddea2addfd91babd8b9019161dea4b695')
- Children:
- 90dd0dbd83ae9914c956eaedd64595c13d0b94eb
- Parents:
- 3b8b19f46828b935a75f3812d5297470f2f8431b
- File:
-
- 1 edited
Legend:
- Unmodified
- Added
- Removed
-
Singular/cntrlc.cc
r3b8b19f rc7a653 2 2 * Computer Algebra System SINGULAR * 3 3 ****************************************/ 4 /* $Id: cntrlc.cc,v 1.5 4 2007-12-14 15:26:28Singular Exp $ */4 /* $Id: cntrlc.cc,v 1.55 2007-12-18 10:27:06 Singular Exp $ */ 5 5 /* 6 6 * ABSTRACT - interupt handling … … 88 88 * 89 89 *---------------------------------------------------------------------*/ 90 #ifndef MSDOS91 /* signals are not implemented in DJGCC */92 90 void sigint_handler(int sig); 93 #endif /* MSDOS */94 91 95 92 si_hdl_typ si_set_signal ( int sig, si_hdl_typ signal_handler); … … 125 122 #if defined(ix86_Linux) 126 123 #if !defined(HAVE_SIGCONTEXT) && !defined(HAVE_ASM_SIGCONTEXT_H) 124 // we need the following structure sigcontext_struct. 125 // if configure finds asm/singcontext.h we assume 126 // that this file contains the structure and is included 127 // via signal.h 127 128 struct sigcontext_struct { 128 129 unsigned short gs, __gsh; … … 175 176 fprintf(stderr,"Segment fault/Bus error occurred at %lx because of %lx (r:%d)\n" 176 177 "please inform the authors\n", 177 178 #ifdef __i386__ 178 179 (long)s.eip, 179 180 #else /* x86_64*/ 180 181 (long)s.rip, 181 182 182 #endif 183 (long)s.cr2,siRandomStart); 183 184 } 184 185 #ifdef __OPTIMIZE__ … … 316 317 /* debug(..) does not work under HPUX (because ptrace does not work..) */ 317 318 #ifdef CALL_GDB 318 #ifndef MSDOS319 319 if (sig!=SIGINT) debug(STACK_TRACE); 320 #endif /* MSDOS */321 320 #endif /* CALL_GDB */ 322 321 #endif /* unix */ … … 329 328 void init_signals() 330 329 { 331 #ifndef MSDOS332 /* signals are not implemented in DJGCC */333 330 /*4 signal handler:*/ 334 331 si_set_signal(SIGSEGV,(void (*) (int))sigsegv_handler); … … 352 349 si_set_signal(SIGCHLD, (void (*)(int))SIG_IGN); 353 350 #endif 354 #endif /* !MSDOS */ 355 } 356 #endif 357 358 359 #ifndef MSDOS 351 } 352 #endif 353 354 360 355 /*2 361 356 * signal handler for SIGINT … … 406 401 } 407 402 } 408 #endif /* !MSDOS */ 409 410 #ifndef MSDOS 403 411 404 //void test_int() 412 405 //{ … … 420 413 // } 421 414 //} 422 #endif /* !MSDOS */423 415 424 416 #ifdef unix 425 417 # ifndef hpux 426 418 # ifndef __OPTIMIZE__ 427 # ifndef MSDOS428 419 int si_stop_stack_trace_x; 429 420 # ifdef CALL_GDB … … 593 584 } 594 585 595 # endif /* !MSDOS */596 586 # endif /* !__OPTIMIZE__ */ 597 587 # endif /* !hpux */
Note: See TracChangeset
for help on using the changeset viewer.