Article View: comp.sys.amiga.tech
Article #10369signals, cleaning up and using sdb under Aztec C 3.6a
From: Karl Lehenbauer
Date: Fri, 25 Nov 1988 17:35
Date: Fri, 25 Nov 1988 17:35
16 lines
1258 bytes
1258 bytes
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
Technical Details
Message-ID:
<3021@sugar.uu.net>Path:
arc1-ca.pugleaf.net!utzoo!attcan!uunet!husc6!uwvax!rutgers!bellcore!texbell!sugar!karlShow Full Headers
Complete Article Headers
Path: arc1-ca.pugleaf.net!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