Changeset d6681d in git for Singular/cntrlc.cc


Ignore:
Timestamp:
Oct 26, 1999, 5:06:13 PM (25 years ago)
Author:
Olaf Bachmann <obachman@…>
Branches:
(u'spielwiese', 'fe61d9c35bf7c61f2b6cbf1b56e25e2f08d536cc')
Children:
49f0894e4677acc5c2de4645efa374c1f901dbe7
Parents:
3ce7b66ce4f4c6aa1846f4edb90839c950a9c891
Message:
* automatic_gc


git-svn-id: file:///usr/local/Singular/svn/trunk@3795 2c84dea3-7e68-4137-9b89-c4e89433aadc
File:
1 edited

Legend:

Unmodified
Added
Removed
  • Singular/cntrlc.cc

    r3ce7b6 rd6681d  
    22*  Computer Algebra System SINGULAR     *
    33****************************************/
    4 /* $Id: cntrlc.cc,v 1.25 1999-09-20 18:03:43 obachman Exp $ */
     4/* $Id: cntrlc.cc,v 1.26 1999-10-26 15:06:10 obachman Exp $ */
    55/*
    66* ABSTRACT - interupt handling
     
    2323#endif
    2424
     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
    2532#ifdef unix
    2633#ifndef hpux
     
    4653#define INTERACTIVE 0
    4754#define STACK_TRACE 1
    48 #ifndef __OPTIMIZE__
     55#ifdef __CALL_GDB__
    4956static void debug (int);
    5057static void debug_stop (char **);
     58#endif
     59#ifndef __OPTIMIZE__
    5160static void stack_trace (char **);
    5261static void stack_trace_sigchld (int);
     
    124133  }
    125134#endif
    126 #ifndef __OPTIMIZE__
     135#ifdef CALL_GDB
    127136  if (sig!=SIGINT) debug(INTERACTIVE);
    128137#endif
     
    231240  }
    232241#endif
    233 #ifndef __OPTIMIZE__
     242#ifdef CALL_GDB
    234243  if (sig!=SIGINT) debug(STACK_TRACE);
    235244#endif
     
    278287#ifndef hpux
    279288/* debug(..) does not work under HPUX (because ptrace does not work..) */
    280 #ifndef __OPTIMIZE__
     289#ifdef CALL_GDB
    281290#ifndef MSDOS
    282291  if (sig!=SIGINT) debug(STACK_TRACE);
     
    439448#ifndef MSDOS
    440449int si_stop_stack_trace_x;
    441 
     450#ifdef CALL_GDB
    442451static void debug (int method)
    443452{
     
    481490  _exit (0);
    482491}
     492#endif
    483493
    484494static int stack_trace_done;
Note: See TracChangeset for help on using the changeset viewer.