Path: utzoo!attcan!uunet!husc6!uwvax!rutgers!bellcore!texbell!sugar!karl From: karl@sugar.uu.net (Karl Lehenbauer) Newsgroups: comp.sys.amiga.tech Subject: signals, cleaning up and using sdb under Aztec C 3.6a Message-ID: <3021@sugar.uu.net> Date: 25 Nov 88 17:35:15 GMT Organization: Sugar Land Unix - Houston, TX Lines: 16 Under Aztec 3.6a, the ability to trap certain errors via a Unix-like "signal" mechanism is provided. Currently, illegal instruction, odd address and divide by zero are supported. I have tested these and they work. A cool thing about using them is that you can execute your cleanup routines, thus turning what would be a visit to the guru into a well-behaved exit -- usually. There's no guarantee that your rogue program hasn't trashed something important prior to trapping. Anyway, also, using signals seems to interfere with SDB. I suppose SDB makes use of illegal instructions for breakpoints and such. The behavior is that sdb says "program terminated normally" as soon as you return to sdb after executing the signal init stuff. -- -- "We've been following your progress with considerable interest, not to say -- contempt." -- Zaphod Beeblebrox IV -- uunet!sugar!karl, Unix BBS (713) 438-5018